Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Classes | Public Types | Public Member Functions | Static Public Member Functions
MutableNodeRefList Class Reference

Local implementation of MutableNodeRefList. More...

Inheritance diagram for MutableNodeRefList:
NodeRefList NodeRefListBase

List of all members.

Classes

Public Types

Public Member Functions

Static Public Member Functions


Detailed Description

Local implementation of MutableNodeRefList.

This class is for internal use only.


Member Typedef Documentation


Constructor & Destructor Documentation

MutableNodeRefList::MutableNodeRefList ( MemoryManagerType theManager) [explicit]

Construct an empty mutable node list.

MutableNodeRefList::MutableNodeRefList ( const MutableNodeRefList theSource,
MemoryManagerType theManager 
)

Construct a mutable node list from another list.

Parameters:
theSourcesource list
MutableNodeRefList::MutableNodeRefList ( const NodeRefListBase theSource,
MemoryManagerType theManager 
) [explicit]

Construct a mutable node list from another list.

Parameters:
theSourcesource list
virtual MutableNodeRefList::~MutableNodeRefList ( ) [virtual]

Member Function Documentation

void MutableNodeRefList::addNode ( XalanNode n)

Add a node at to the list.

Parameters:
nnode to add
void MutableNodeRefList::addNodeInDocOrder ( XalanNode node,
XPathExecutionContext executionContext 
)

Add a node into list where it should occur in document order.

Parameters:
nodenode object to add
executionContextthe 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.

Parameters:
nodelistnode 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.

Parameters:
nodelistnode list to add
void MutableNodeRefList::addNodesInDocOrder ( const MutableNodeRefList nodelist,
XPathExecutionContext executionContext 
)

Copy NodeList members into this nodelist, adding in document order.

Parameters:
nodelistnode list to add
executionContextthe current execution context
void MutableNodeRefList::addNodesInDocOrder ( const XalanNodeList nodelist,
XPathExecutionContext executionContext 
)

Copy NodeList members into this nodelist, adding in document order.

Parameters:
nodelistnode list to add
executionContextthe current execution context
void MutableNodeRefList::addNodesInDocOrder ( const NodeRefListBase nodelist,
XPathExecutionContext executionContext 
)

Copy NodeList members into this nodelist, adding in document order.

Parameters:
nodelistnode list to add
executionContextthe current execution context
void MutableNodeRefList::clear ( )

Remove all nodes.

void MutableNodeRefList::clearNulls ( )

Clear any null entries in the node list.

static MutableNodeRefList* MutableNodeRefList::create ( MemoryManagerType theManager) [static]
bool MutableNodeRefList::getDocumentOrder ( ) const

See if the order of the nodes is document order.

bool MutableNodeRefList::getReverseDocumentOrder ( ) const

See if the order of the nodes is reverse document order.

bool MutableNodeRefList::getUnknownOrder ( ) const

See if the order of the nodes is an unknown order.

void MutableNodeRefList::insertNode ( XalanNode n,
size_type  pos 
)

Insert a node at a given position.

Parameters:
nnode to insert
posposition 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.

Parameters:
nnode to insert
void MutableNodeRefList::removeNode ( size_type  pos)

Remove a node from the list.

Parameters:
posposition of node in list
void MutableNodeRefList::reserve ( size_type  theCount)

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.

Parameters:
theCountthe number of nodes to reserve space for
void MutableNodeRefList::reverse ( )

Reverse the nodes in the list.

void MutableNodeRefList::setDocumentOrder ( )

Set the known order of the nodes.

This should only be done when the order is known. Otherwise, disaster will ensue.

void MutableNodeRefList::setNode ( size_type  pos,
XalanNode n = 0 
)

Set a item.

Parameters:
posposition of node to modify
nnode to insert, default is empty node
void MutableNodeRefList::setReverseDocumentOrder ( )

Set the known order of the nodes.

This should only be done when the order is known. Otherwise, disaster will ensue.

void MutableNodeRefList::setUnknownOrder ( )
void MutableNodeRefList::swap ( MutableNodeRefList theOther)

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

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo