Xalan-C++ API Reference
1.12.0
|
Local implementation of MutableNodeRefList. More...
#include <xalanc/XPath/MutableNodeRefList.hpp>
Classes | |
class | addNodeInDocOrderFunctor |
Public Types | |
typedef NodeListVectorType::iterator | NodeListIteratorType |
Public Types inherited from xalanc::NodeRefList | |
typedef XalanVector< XalanNode * > | NodeListVectorType |
Public Types inherited from xalanc::NodeRefListBase | |
typedef XalanSize_t | size_type |
Public Member Functions | |
MutableNodeRefList (MemoryManager &theManager) | |
Construct an empty mutable node list. More... | |
MutableNodeRefList (const MutableNodeRefList &theSource, MemoryManager &theManager) | |
Construct a mutable node list from another list. More... | |
MutableNodeRefList (const NodeRefListBase &theSource, MemoryManager &theManager) | |
Construct a mutable node list from another list. More... | |
virtual | ~MutableNodeRefList () |
MutableNodeRefList & | operator= (const MutableNodeRefList &theRHS) |
MutableNodeRefList & | operator= (const NodeRefList &theRHS) |
MutableNodeRefList & | operator= (const NodeRefListBase &theRHS) |
MutableNodeRefList & | operator= (const XalanNodeList *theRHS) |
void | addNode (XalanNode *n) |
Add a node at to the list. More... | |
void | insertNode (XalanNode *n, size_type pos) |
Insert a node at a given position. More... | |
void | removeNode (const XalanNode *n) |
Remove a node from the list. More... | |
void | removeNode (size_type pos) |
Remove a node from the list. More... | |
void | clear () |
Remove all nodes. More... | |
void | setNode (size_type pos, XalanNode *n=0) |
Set a item. More... | |
void | addNodes (const XalanNodeList &nodelist) |
Copy NodeList members into this nodelist, adding in document order. More... | |
void | addNodes (const NodeRefListBase &nodelist) |
Copy NodeList members into this nodelist, adding in document order. More... | |
void | addNodesInDocOrder (const XalanNodeList &nodelist, XPathExecutionContext &executionContext) |
Copy NodeList members into this nodelist, adding in document order. More... | |
void | addNodesInDocOrder (const NodeRefListBase &nodelist, XPathExecutionContext &executionContext) |
Copy NodeList members into this nodelist, adding in document order. More... | |
void | addNodesInDocOrder (const MutableNodeRefList &nodelist, XPathExecutionContext &executionContext) |
Copy NodeList members into this nodelist, adding in document order. More... | |
void | addNodeInDocOrder (XalanNode *node, XPathExecutionContext &executionContext) |
Add a node into list where it should occur in document order. More... | |
void | clearNulls () |
Clear any null entries in the node list. More... | |
void | reverse () |
Reverse the nodes in the list. More... | |
void | reserve (size_type theCount) |
Reserve space for the supplied number of nodes. More... | |
bool | getUnknownOrder () const |
See if the order of the nodes is an unknown order. More... | |
void | setUnknownOrder () |
bool | getDocumentOrder () const |
See if the order of the nodes is document order. More... | |
void | setDocumentOrder () |
Set the known order of the nodes. More... | |
bool | getReverseDocumentOrder () const |
See if the order of the nodes is reverse document order. More... | |
void | setReverseDocumentOrder () |
Set the known order of the nodes. More... | |
void | swap (MutableNodeRefList &theOther) |
Public Member Functions inherited from xalanc::NodeRefList | |
NodeRefList (MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR) | |
NodeRefList (const NodeRefList &theSource, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR) | |
Construct a node list from another. More... | |
MemoryManager & | getMemoryManager () |
NodeRefList (const NodeRefListBase &theSource, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR) | |
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 (MemoryManager &theManager) const |
void | swap (NodeRefList &theOther) |
Public Member Functions inherited from xalanc::NodeRefListBase | |
NodeRefListBase () | |
virtual | ~NodeRefListBase () |
Static Public Member Functions | |
static MutableNodeRefList * | create (MemoryManager &theManager) |
Additional Inherited Members | |
Static Public Attributes inherited from xalanc::NodeRefListBase | |
static const size_type | npos |
Protected Types inherited from xalanc::NodeRefList | |
enum | { eDefaultVectorSize = 100 } |
Protected Member Functions inherited from xalanc::NodeRefList | |
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... | |
Protected Member Functions inherited from xalanc::NodeRefListBase | |
NodeRefListBase (const NodeRefListBase &) | |
NodeRefListBase & | operator= (const NodeRefListBase &) |
Protected Attributes inherited from xalanc::NodeRefList | |
NodeListVectorType | m_nodeList |
Local implementation of MutableNodeRefList.
This class is for internal use only.
Definition at line 46 of file MutableNodeRefList.hpp.
Definition at line 291 of file MutableNodeRefList.hpp.
|
explicit |
Construct an empty mutable node list.
xalanc::MutableNodeRefList::MutableNodeRefList | ( | const MutableNodeRefList & | theSource, |
MemoryManager & | theManager | ||
) |
Construct a mutable node list from another list.
theSource | source list |
|
explicit |
Construct a mutable node list from another list.
theSource | source list |
|
virtual |
void xalanc::MutableNodeRefList::addNode | ( | XalanNode * | n | ) |
Add a node at to the list.
n | node to add |
void xalanc::MutableNodeRefList::addNodeInDocOrder | ( | XalanNode * | node, |
XPathExecutionContext & | executionContext | ||
) |
Add a node into list where it should occur in document order.
node | node object to add |
executionContext | the current execution context |
void xalanc::MutableNodeRefList::addNodes | ( | const NodeRefListBase & | nodelist | ) |
Copy NodeList members into this nodelist, adding in document order.
If a node is null, don't add it.
nodelist | node list to add |
void xalanc::MutableNodeRefList::addNodes | ( | const XalanNodeList & | nodelist | ) |
Copy NodeList members into this nodelist, adding in document order.
If a node is null, don't add it.
nodelist | node list to add |
void xalanc::MutableNodeRefList::addNodesInDocOrder | ( | const MutableNodeRefList & | nodelist, |
XPathExecutionContext & | executionContext | ||
) |
Copy NodeList members into this nodelist, adding in document order.
nodelist | node list to add |
executionContext | the current execution context |
void xalanc::MutableNodeRefList::addNodesInDocOrder | ( | const NodeRefListBase & | nodelist, |
XPathExecutionContext & | executionContext | ||
) |
Copy NodeList members into this nodelist, adding in document order.
nodelist | node list to add |
executionContext | the current execution context |
void xalanc::MutableNodeRefList::addNodesInDocOrder | ( | const XalanNodeList & | nodelist, |
XPathExecutionContext & | executionContext | ||
) |
Copy NodeList members into this nodelist, adding in document order.
nodelist | node list to add |
executionContext | the current execution context |
Referenced by xalanc::XPath::group().
void xalanc::MutableNodeRefList::clear | ( | ) |
Remove all nodes.
void xalanc::MutableNodeRefList::clearNulls | ( | ) |
Clear any null entries in the node list.
|
static |
|
inline |
See if the order of the nodes is document order.
Definition at line 255 of file MutableNodeRefList.hpp.
|
inline |
See if the order of the nodes is reverse document order.
Definition at line 275 of file MutableNodeRefList.hpp.
|
inline |
See if the order of the nodes is an unknown order.
Definition at line 240 of file MutableNodeRefList.hpp.
Insert a node at a given position.
n | node to insert |
pos | position of insertion |
MutableNodeRefList& xalanc::MutableNodeRefList::operator= | ( | const MutableNodeRefList & | theRHS | ) |
MutableNodeRefList& xalanc::MutableNodeRefList::operator= | ( | const NodeRefList & | theRHS | ) |
MutableNodeRefList& xalanc::MutableNodeRefList::operator= | ( | const NodeRefListBase & | theRHS | ) |
MutableNodeRefList& xalanc::MutableNodeRefList::operator= | ( | const XalanNodeList * | theRHS | ) |
void xalanc::MutableNodeRefList::removeNode | ( | const XalanNode * | n | ) |
Remove a node from the list.
n | node to insert |
void xalanc::MutableNodeRefList::removeNode | ( | size_type | pos | ) |
Remove a node from the list.
pos | position of node in list |
|
inline |
Reserve space for the supplied number of nodes.
This is taken as an optimization, and may be ignored. You might want to call this when you know the number of nodes you're about to add to this list.
Remember to take into account the current size of the list when calling this. That means you will probably want to add the result of getLength() to the number of nodes you're planning to add.
theCount | the number of nodes to reserve space for |
Definition at line 231 of file MutableNodeRefList.hpp.
void xalanc::MutableNodeRefList::reverse | ( | ) |
Reverse the nodes in the list.
|
inline |
Set the known order of the nodes.
This should only be done when the order is known. Otherwise, disaster will ensue.
Definition at line 266 of file MutableNodeRefList.hpp.
Referenced by xalanc::XPath::group().
Set a item.
pos | position of node to modify |
n | node to insert, default is empty node |
|
inline |
Set the known order of the nodes.
This should only be done when the order is known. Otherwise, disaster will ensue.
Definition at line 286 of file MutableNodeRefList.hpp.
|
inline |
Definition at line 246 of file MutableNodeRefList.hpp.
|
inline |
Definition at line 319 of file MutableNodeRefList.hpp.
References xalanc::swap().
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:32 for Xalan-C++ API Reference by 1.8.17