|
Xalan-C++ API Reference
1.12.0
|
Go to the documentation of this file.
18 #if !defined(XALAN_COUNTERSTABLE_HEADER_GUARD_1357924680)
19 #define XALAN_COUNTERSTABLE_HEADER_GUARD_1357924680
42 class StylesheetExecutionContext;
88 MemoryManager& theManager,
91 m_countNodesStartCount(0),
92 m_countNodes(countNodes, theManager),
94 m_numberElem(numberElem)
102 m_countNodesStartCount(0),
103 m_countNodes(theManager),
105 m_numberElem(numberElem)
110 m_countNodesStartCount(other.m_countNodesStartCount),
111 m_countNodes(other.m_countNodes, theManager),
112 m_fromNode(other.m_fromNode),
113 m_numberElem(other.m_numberElem)
124 getPreviouslyCounted(
134 return m_countNodes.
empty() ==
true ? 0 : m_countNodes.
back();
172 unsigned long theSize = 0) :
173 m_countersVector(theManager),
174 m_newFound(theManager)
193 m_countersVector.resize(theSize);
219 m_countersVector.clear();
230 ElemCounterVectorVectorType m_countersVector;
236 NodeVectorType m_newFound;
245 #endif // !defined(XALAN_COUNTERSTABLE_HEADER_GUARD_1357924680)
const XalanNode * m_fromNode
The node from where the counting starts.
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Counter::CountType CountType
void reset()
Clear all cached data from the table.
#define XALAN_USES_MEMORY_MANAGER(Type)
CountType m_countNodesStartCount
The start count from where m_countNodes counts from.
void resize(unsigned long theSize)
Resize the table.
Counter(MemoryManager &theManager, const ElemNumber *numberElem, NodeVectorType &countNodes)
Construct a counter object.
ElemCounterVectorVectorTypeDecl ElemCounterVectorVectorType
const ElemNumber * m_numberElem
The owning xsl:number element.
Counter(const Counter &other, MemoryManager &theManager)
CountersTable(MemoryManager &theManager, unsigned long theSize=0)
Construct a CountersTable.
<meta name="usage" content="internal"> A class that does incremental counting for support of xsl:numb...
Counter(MemoryManager &theManager, const ElemNumber *numberElem=0)
Construct a counter object.
CounterVectorTypeDecl CounterVectorType
XalanVector< XalanNode * > NodeVectorType
<meta name="usage" content="internal"> This is a table of counters, keyed by ElemNumber objects,...
XalanNode * getLast() const
Get the last node in the list.
Counter::NodeVectorType NodeVectorType
NodeVectorType m_countNodes
A vector of all nodes counted so far.