Local implementation of NodeRefList. More...
Public Types | |
typedef XalanVector< XalanNode * > | NodeListVectorType |
![]() | |
typedef unsigned int | size_type |
Public Member Functions | |
NodeRefList (MemoryManagerType &theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR) | |
NodeRefList (const NodeRefList &theSource, MemoryManagerType &theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR) | |
Construct a node list from another. More... | |
MemoryManagerType & | getMemoryManager () |
NodeRefList (const NodeRefListBase &theSource, MemoryManagerType &theManager XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR) | |
Construct a node list from another. More... | |
virtual | ~NodeRefList () |
NodeRefList & | operator= (const NodeRefListBase &theRHS) |
NodeRefList & | operator= (const NodeRefList &theRHS) |
bool | empty () const |
virtual XalanNode * | item (size_type index) const |
Returns the index th item in the collection. More... | |
virtual size_type | getLength () const |
Determine the number of nodes in the list. More... | |
virtual size_type | indexOf (const XalanNode *theNode) const |
Retrieve the zero based index of the node in the list. More... | |
bool | checkForDuplicates (MemoryManagerType &theManager) const |
void | swap (NodeRefList &theOther) |
![]() | |
NodeRefListBase () | |
virtual | ~NodeRefListBase () |
Protected Types | |
enum | { eDefaultVectorSize = 100 } |
Protected Member Functions | |
void | ensureAllocation (NodeListVectorType::size_type theSize=0) |
Ensure that an allocation is either the default allocation amount, or the amount specified in the parameter, whichever is larger. More... | |
![]() | |
NodeRefListBase (const NodeRefListBase &) | |
NodeRefListBase & | operator= (const NodeRefListBase &) |
Protected Attributes | |
NodeListVectorType | m_nodeList |
Additional Inherited Members | |
![]() | |
static const size_type | npos |
Local implementation of NodeRefList.
This class is for internal use only.
|
explicit |
NodeRefList::NodeRefList | ( | const NodeRefList & | theSource, |
MemoryManagerType &theManager | XALAN_DEFAULT_CONSTRACTOR_MEMORY_MGR | ||
) |
Construct a node list from another.
theSource | source node list |
|
explicit |
Construct a node list from another.
theSource | source node list |
|
virtual |
bool NodeRefList::checkForDuplicates | ( | MemoryManagerType & | theManager) | const |
bool NodeRefList::empty | ( | ) | const |
|
protected |
Ensure that an allocation is either the default allocation amount, or the amount specified in the parameter, whichever is larger.
theSize | The requested size. |
|
virtual |
Determine the number of nodes in the list.
The range of valid child node indices is 0 to length-1
inclusive.
Implements NodeRefListBase.
MemoryManagerType& NodeRefList::getMemoryManager | ( | ) |
Retrieve the zero based index of the node in the list.
theNode | node whose index to find |
Implements NodeRefListBase.
Returns the index
th item in the collection.
If index
is greater than or equal to the number of nodes in the list, this returns null
.
index | index into the collection |
index
th position in the NodeList
, or null
if that is not a valid index Implements NodeRefListBase.
NodeRefList& NodeRefList::operator= | ( | const NodeRefListBase & | theRHS) |
NodeRefList& NodeRefList::operator= | ( | const NodeRefList & | theRHS) |
void NodeRefList::swap | ( | NodeRefList & | theOther) |
|
protected |
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
![]() |
Xalan-C++ XSLT Processor Version 1.10 |
|