<meta name="usage" content="internal"> A class that does incremental counting for support of xsl:number. More...
#include <CountersTable.hpp>

<meta name="usage" content="internal"> A class that does incremental counting for support of xsl:number.
This class stores a cache of counted nodes (m_countNodes). It tries to cache the counted nodes in document order... the node count is based on its position in the cache list
Definition at line 53 of file CountersTable.hpp.
| typedef XalanSize_t Counter::CountType |
Definition at line 55 of file CountersTable.hpp.
| typedef XalanVector<XalanNode*> Counter::NodeVectorType |
Definition at line 57 of file CountersTable.hpp.
| Counter::Counter | ( | MemoryManager & | theManager, | |
| const ElemNumber * | numberElem, | |||
| NodeVectorType & | countNodes | |||
| ) | [inline] |
Construct a counter object.
Definition at line 87 of file CountersTable.hpp.
| Counter::Counter | ( | MemoryManager & | theManager, | |
| const ElemNumber * | numberElem = 0 | |||
| ) | [inline] |
Construct a counter object.
Definition at line 101 of file CountersTable.hpp.
| Counter::Counter | ( | const Counter & | other, | |
| MemoryManager & | theManager | |||
| ) | [inline] |
Definition at line 109 of file CountersTable.hpp.
| XalanNode* Counter::getLast | ( | ) | const [inline] |
Get the last node in the list.
Definition at line 132 of file CountersTable.hpp.
| CountType Counter::getPreviouslyCounted | ( | StylesheetExecutionContext & | support, | |
| const XalanNode * | node | |||
| ) | const |
Try to find a node that was previously counted.
If found, return a positive integer that corresponds to the count.
| node | The node to be counted. |
A vector of all nodes counted so far.
Definition at line 70 of file CountersTable.hpp.
The start count from where m_countNodes counts from.
In other words, the count of a given node in the m_countNodes vector is node position + m_countNodesStartCount.
Definition at line 65 of file CountersTable.hpp.
| const XalanNode* Counter::m_fromNode |
The node from where the counting starts.
This is needed to find a counter if the node being counted is not immediatly found in the m_countNodes vector.
Definition at line 77 of file CountersTable.hpp.
| const ElemNumber* Counter::m_numberElem |
The owning xsl:number element.
Definition at line 82 of file CountersTable.hpp.
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
|
Xalan-C++ XSLT Processor Version 1.11 |
|
|