18 #if !defined(XALAN_COUNTERSTABLE_HEADER_GUARD_1357924680)
19 #define XALAN_COUNTERSTABLE_HEADER_GUARD_1357924680
37 XALAN_CPP_NAMESPACE_BEGIN
88 MemoryManager& theManager,
172 unsigned long theSize = 0) :
173 m_countersVector(theManager),
174 m_newFound(theManager)
193 m_countersVector.resize(theSize);
219 m_countersVector.clear();
225 CountersTable(
const CountersTable&);
230 ElemCounterVectorVectorType m_countersVector;
236 NodeVectorType m_newFound;
241 XALAN_CPP_NAMESPACE_END
245 #endif // !defined(XALAN_COUNTERSTABLE_HEADER_GUARD_1357924680)
ElemCounterVectorVectorTypeDecl ElemCounterVectorVectorType
NodeVectorType m_countNodes
A vector of all nodes counted so far.
CountType m_countNodesStartCount
The start count from where m_countNodes counts from.
<meta name="usage" content="internal"> This is a table of counters, keyed by ElemNumber objects...
const ElemNumber * m_numberElem
The owning xsl:number element.
<meta name="usage" content="internal"> A class that does incremental counting for support of xsl:numb...
CountType getPreviouslyCounted(StylesheetExecutionContext &support, const XalanNode *node) const
Try to find a node that was previously counted.
void reset()
Clear all cached data from the table.
XalanNode * getLast() const
Get the last node in the list.
Counter(MemoryManager &theManager, const ElemNumber *numberElem=0)
Construct a counter object.
CounterVectorTypeDecl CounterVectorType
Counter::NodeVectorType NodeVectorType
XalanVector< XalanNode * > NodeVectorType
CountersTable(MemoryManager &theManager, unsigned long theSize=0)
Construct a CountersTable.
#define XALAN_USES_MEMORY_MANAGER(Type)
void resize(unsigned long theSize)
Resize the table.
Counter(MemoryManager &theManager, const ElemNumber *numberElem, NodeVectorType &countNodes)
Construct a counter object.
Counter(const Counter &other, MemoryManager &theManager)
const XalanNode * m_fromNode
The node from where the counting starts.
Counter::CountType CountType