16 #if !defined(XALAN_COUNTERSTABLE_HEADER_GUARD_1357924680)
17 #define XALAN_COUNTERSTABLE_HEADER_GUARD_1357924680
40 XALAN_CPP_NAMESPACE_BEGIN
175 unsigned long theSize = 0) :
176 m_countersVector(theManager),
177 m_newFound(theManager)
196 m_countersVector.resize(theSize);
222 m_countersVector.clear();
228 CountersTable(
const CountersTable&);
233 ElemCounterVectorVectorType m_countersVector;
239 NodeVectorType m_newFound;
244 XALAN_CPP_NAMESPACE_END
248 #endif // !defined(XALAN_COUNTERSTABLE_HEADER_GUARD_1357924680)
ElemCounterVectorVectorTypeDecl ElemCounterVectorVectorType
Definition: CountersTable.hpp:167
NodeVectorType m_countNodes
A vector of all nodes counted so far.
Definition: CountersTable.hpp:73
Counter(MemoryManagerType &theManager, const ElemNumber *numberElem=0)
Construct a counter object.
Definition: CountersTable.hpp:104
Definition: XalanNode.hpp:44
Counter(const Counter &other, MemoryManagerType &theManager)
Definition: CountersTable.hpp:112
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
CountType m_countNodesStartCount
The start count from where m_countNodes counts from.
Definition: CountersTable.hpp:68
This is a table of counters, keyed by ElemNumber objects...
Definition: CountersTable.hpp:160
const ElemNumber * m_numberElem
The owning xsl:number element.
Definition: CountersTable.hpp:85
unsigned long CountType
Definition: CountersTable.hpp:58
A class that does incremental counting for support of xsl:numb...
Definition: CountersTable.hpp:56
CountType getPreviouslyCounted(StylesheetExecutionContext &support, const XalanNode *node) const
Try to find a node that was previously counted.
reference back()
Definition: XalanVector.hpp:673
Definition: StylesheetExecutionContext.hpp:104
CountersTable(MemoryManagerType &theManager, unsigned long theSize=0)
Construct a CountersTable.
Definition: CountersTable.hpp:174
void reset()
Clear all cached data from the table.
Definition: CountersTable.hpp:218
bool empty() const
Definition: XalanVector.hpp:636
XalanNode * getLast() const
Get the last node in the list.
Definition: CountersTable.hpp:135
CounterVectorTypeDecl CounterVectorType
Definition: CountersTable.hpp:166
~CountersTable()
Definition: CountersTable.hpp:182
Counter::NodeVectorType NodeVectorType
Definition: CountersTable.hpp:169
XalanVector< XalanNode * > NodeVectorType
Definition: CountersTable.hpp:60
#define XALAN_USES_MEMORY_MANAGER(Type)
Definition: XalanMemoryManagement.hpp:468
void resize(unsigned long theSize)
Resize the table.
Definition: CountersTable.hpp:194
Definition: ElemNumber.hpp:57
const XalanNode * m_fromNode
The node from where the counting starts.
Definition: CountersTable.hpp:80
Counter(MemoryManagerType &theManager, const ElemNumber *numberElem, NodeVectorType &countNodes)
Construct a counter object.
Definition: CountersTable.hpp:90
Counter::CountType CountType
Definition: CountersTable.hpp:164