Xalan-C++ API Reference 1.12.0
|
Local implementation of NodeRefList. More...
#include <xalanc/XPath/NodeRefList.hpp>
Public Types | |
typedef XalanVector< XalanNode * > | NodeListVectorType |
![]() | |
typedef XalanSize_t | size_type |
Public Member Functions | |
NodeRefList (MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR) | |
NodeRefList (const NodeRefList &theSource, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR) | |
Construct a node list from another. | |
MemoryManager & | getMemoryManager () |
NodeRefList (const NodeRefListBase &theSource, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR) | |
Construct a node list from another. | |
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. | |
virtual size_type | getLength () const |
Determine the number of nodes in the list. | |
virtual size_type | indexOf (const XalanNode *theNode) const |
Retrieve the zero based index of the node in the list. | |
bool | checkForDuplicates (MemoryManager &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. | |
![]() | |
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.
Definition at line 43 of file NodeRefList.hpp.
Definition at line 107 of file NodeRefList.hpp.
|
protected |
Enumerator | |
---|---|
eDefaultVectorSize |
Definition at line 119 of file NodeRefList.hpp.
|
explicit |
References XALAN_DEFAULT_CONSTRUCTOR_MEMMGR.
Referenced by NodeRefList(), xalanc::MutableNodeRefList::operator=(), operator=(), operator=(), swap(), and ~NodeRefList().
xalanc::NodeRefList::NodeRefList | ( | const NodeRefList & | theSource, |
MemoryManager &theManager | XALAN_DEFAULT_CONSTRUCTOR_MEMMGR ) |
Construct a node list from another.
theSource | source node list |
References NodeRefList(), and XALAN_DEFAULT_CONSTRUCTOR_MEMMGR.
|
explicit |
Construct a node list from another.
theSource | source node list |
References xalanc::NodeRefListBase::NodeRefListBase(), and XALAN_DEFAULT_CONSTRUCTOR_MEMMGR.
|
virtual |
References NodeRefList().
bool xalanc::NodeRefList::checkForDuplicates | ( | MemoryManager & | theManager | ) | const |
|
inline |
Definition at line 85 of file NodeRefList.hpp.
References m_nodeList.
|
inlineprotected |
Ensure that an allocation is either the default allocation amount, or the amount specified in the parameter, whichever is larger.
theSize | The requested size. |
Definition at line 132 of file NodeRefList.hpp.
References eDefaultVectorSize, and m_nodeList.
|
virtual |
Determine the number of nodes in the list.
The range of valid child node indices is 0 to length-1
inclusive.
Implements xalanc::NodeRefListBase.
|
inline |
Definition at line 60 of file NodeRefList.hpp.
References m_nodeList.
Retrieve the zero based index of the node in the list.
theNode | node whose index to find |
Implements xalanc::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 xalanc::NodeRefListBase.
NodeRefList & xalanc::NodeRefList::operator= | ( | const NodeRefList & | theRHS | ) |
References NodeRefList().
NodeRefList & xalanc::NodeRefList::operator= | ( | const NodeRefListBase & | theRHS | ) |
References NodeRefList(), and xalanc::NodeRefListBase::NodeRefListBase().
|
inline |
Definition at line 110 of file NodeRefList.hpp.
References m_nodeList, and NodeRefList().
Referenced by xalanc::MutableNodeRefList::swap().
|
protected |
Definition at line 137 of file NodeRefList.hpp.
Referenced by empty(), ensureAllocation(), getMemoryManager(), xalanc::MutableNodeRefList::reserve(), and swap().
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sat May 17 2025 10:52:04 for Xalan-C++ API Reference by