Public Methods | |
Constructors and assignment operator | |
DOM_NodeList () | |
DOM_NodeList (const DOM_NodeList &other) | |
DOM_NodeList & | operator= (const DOM_NodeList &other) |
DOM_NodeList & | operator= (const DOM_NullPtr *val) |
Destructor. | |
~DOM_NodeList () | |
Comparison operators. | |
bool | operator== (const DOM_NodeList &other) const |
bool | operator== (const DOM_NullPtr *nullPtr) const |
bool | operator!= (const DOM_NodeList &other) const |
bool | operator!= (const DOM_NullPtr *nullPtr) const |
Get functions. | |
DOM_Node | item (unsigned int index) const |
unsigned int | getLength () const |
Protected Methods | |
DOM_NodeList (NodeListImpl *impl) | |
Friends | |
class | DOM_Document |
class | DOM_Element |
class | DOM_Node |
class | DOM_Entity |
NodeList
interface provides the abstraction of an ordered collection of nodes. NodeLists are created by DOM_Document::getElementsByTagName(), DOM_Node::getChildNodes(),
The items in the NodeList
are accessible via an integral index, starting from 0.
NodeLists are "live", in that any changes to the document tree are immediately reflected in any NodeLists that may have been created for that tree.
|
Default constructor for DOM_NodeList. The resulting object does not refer to an actual NodeList; it will compare == to 0, and is similar to a null object reference variable in Java. It may subsequently be assigned to refer to an actual NodeList. |
|
Copy constructor.
|
|
Destructor for DOM_NodeList. The object being destroyed is the reference object, not the underlying NodeList node itself. Like most other DOM types in this implementation, memory management of Node Lists is automatic. Instances of DOM_NodeList function as references to an underlying heap based implementation object, and should never be explicitly new-ed or deleted in application code, but should appear only as local variables or function parameters. |
|
Returns the number of nodes in the list.
The range of valid child node indices is 0 to |
|
Returns the
If
|
|
Use this comparison operator to test whether a Node List reference is not null.
|
|
Inequality operator. Compares whether two node list variables refer to the same underlying node list. It does not compare the contents of the node lists themselves.
|
|
Assignment operator. This overloaded variant is provided for the sole purpose of setting a DOM_Node reference variable to zero. Nulling out a reference variable in this way will decrement the reference count on the underlying Node object that the variable formerly referenced. This effect is normally obtained when reference variable goes out of scope, but zeroing them can be useful for global instances, or for local instances that will remain in scope for an extended time, when the storage belonging to the underlying node needs to be reclaimed.
|
|
Assignment operator.
|
|
Use this comparison operator to test whether a Node List reference is null.
|
|
Equality operator. Compares whether two node list variables refer to the same underlying node list. It does not compare the contents of the node lists themselves.
|