Xalan-C++ API Reference  1.12.0
Public Types | Public Member Functions | List of all members
xalanc::CountersTable Class Reference

<meta name="usage" content="internal"> This is a table of counters, keyed by ElemNumber objects, each of which has a list of Counter objects. More...

#include <xalanc/XSLT/CountersTable.hpp>

Public Types

typedef Counter::CountType CountType
 
typedef CounterVectorTypeDecl CounterVectorType
 
typedef ElemCounterVectorVectorTypeDecl ElemCounterVectorVectorType
 
typedef Counter::NodeVectorType NodeVectorType
 

Public Member Functions

 CountersTable (MemoryManager &theManager, unsigned long theSize=0)
 Construct a CountersTable. More...
 
 ~CountersTable ()
 
void resize (unsigned long theSize)
 Resize the table. More...
 
CountType countNode (StylesheetExecutionContext &executionContext, const ElemNumber &numberElem, XalanNode *node)
 Count forward until the given node is found, or until we have looked to the given amount. More...
 
void reset ()
 Clear all cached data from the table. More...
 

Detailed Description

<meta name="usage" content="internal"> This is a table of counters, keyed by ElemNumber objects, each of which has a list of Counter objects.

This really isn't a true table, it is more like a list of lists (there must be a technical term for that...).

Definition at line 157 of file CountersTable.hpp.

Member Typedef Documentation

◆ CounterVectorType

Definition at line 163 of file CountersTable.hpp.

◆ CountType

Definition at line 161 of file CountersTable.hpp.

◆ ElemCounterVectorVectorType

Definition at line 164 of file CountersTable.hpp.

◆ NodeVectorType

Definition at line 166 of file CountersTable.hpp.

Constructor & Destructor Documentation

◆ CountersTable()

xalanc::CountersTable::CountersTable ( MemoryManager &  theManager,
unsigned long  theSize = 0 
)
inline

Construct a CountersTable.

Definition at line 171 of file CountersTable.hpp.

◆ ~CountersTable()

xalanc::CountersTable::~CountersTable ( )
inline

Definition at line 179 of file CountersTable.hpp.

Member Function Documentation

◆ countNode()

CountType xalanc::CountersTable::countNode ( StylesheetExecutionContext executionContext,
const ElemNumber numberElem,
XalanNode node 
)

Count forward until the given node is found, or until we have looked to the given amount.

@executionContext The current execution context; @numberElem The executing ElemNumber @node The node to count.

Returns
The node count, or 0 if not found.

◆ reset()

void xalanc::CountersTable::reset ( )
inline

Clear all cached data from the table.

Definition at line 215 of file CountersTable.hpp.

◆ resize()

void xalanc::CountersTable::resize ( unsigned long  theSize)
inline

Resize the table.

The must be done prior to using the table, if the size was not past in the constructor.

@theSize The new size

Definition at line 191 of file CountersTable.hpp.


The documentation for this class was generated from the following file: