Local implementation of MutableNodeRefList. More...
#include <MutableNodeRefList.hpp>
Inherits NodeRefList.
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.
MutableNodeRefList::MutableNodeRefList | ( | MemoryManager & | theManager | ) | [explicit] |
Construct an empty mutable node list.
MutableNodeRefList::MutableNodeRefList | ( | const MutableNodeRefList & | theSource, | |
MemoryManager & | theManager | |||
) |
Construct a mutable node list from another list.
theSource | source list |
MutableNodeRefList::MutableNodeRefList | ( | const NodeRefListBase & | theSource, | |
MemoryManager & | theManager | |||
) | [explicit] |
Construct a mutable node list from another list.
theSource | source list |
virtual MutableNodeRefList::~MutableNodeRefList | ( | ) | [virtual] |
void MutableNodeRefList::addNode | ( | XalanNode * | n | ) |
Add a node at to the list.
n | node to add |
void 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 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 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 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 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 |
void 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 MutableNodeRefList::clear | ( | ) |
Remove all nodes.
void MutableNodeRefList::clearNulls | ( | ) |
Clear any null entries in the node list.
static MutableNodeRefList* MutableNodeRefList::create | ( | MemoryManager & | theManager | ) | [static] |
bool MutableNodeRefList::getDocumentOrder | ( | ) | const [inline] |
See if the order of the nodes is document order.
Definition at line 255 of file MutableNodeRefList.hpp.
bool MutableNodeRefList::getReverseDocumentOrder | ( | ) | const [inline] |
See if the order of the nodes is reverse document order.
Definition at line 275 of file MutableNodeRefList.hpp.
bool MutableNodeRefList::getUnknownOrder | ( | ) | const [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& MutableNodeRefList::operator= | ( | const XalanNodeList * | theRHS | ) |
MutableNodeRefList& MutableNodeRefList::operator= | ( | const NodeRefListBase & | theRHS | ) |
Reimplemented from NodeRefList.
MutableNodeRefList& MutableNodeRefList::operator= | ( | const MutableNodeRefList & | theRHS | ) |
MutableNodeRefList& MutableNodeRefList::operator= | ( | const NodeRefList & | theRHS | ) |
Reimplemented from NodeRefList.
void MutableNodeRefList::removeNode | ( | const XalanNode * | n | ) |
Remove a node from the list.
n | node to insert |
void MutableNodeRefList::removeNode | ( | size_type | pos | ) |
Remove a node from the list.
pos | position of node in list |
void MutableNodeRefList::reserve | ( | size_type | theCount | ) | [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 MutableNodeRefList::reverse | ( | ) |
Reverse the nodes in the list.
void MutableNodeRefList::setDocumentOrder | ( | ) | [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.
Set a item.
pos | position of node to modify | |
n | node to insert, default is empty node |
void MutableNodeRefList::setReverseDocumentOrder | ( | ) | [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.
void MutableNodeRefList::setUnknownOrder | ( | ) | [inline] |
Definition at line 246 of file MutableNodeRefList.hpp.
void MutableNodeRefList::swap | ( | MutableNodeRefList & | theOther | ) | [inline] |
Definition at line 319 of file MutableNodeRefList.hpp.
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|