The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. NodeList objects in the DOM are live. The items in the NodeList are accessible via an integral index, starting from 0. |
Default Constructor |
NodeList(GdomeNodeList* = 0) |
Creates a smart pointer for the Gdome element whose pointer is passed as an argument. The user should never pass a non-null pointer to this constructor. |
Copy and Cast Constructors |
NodeList(const
NodeList&)
|
These constructors can be used to copy a smart pointer or to downcast it. If the downcasting is not possible, the resulting smart pointer will be null. |
Copy Operator |
NodeList& operator=(const NodeList&) |
Equality |
bool operator==(const
NodeList&) const
bool operator!=(const NodeList&) const |
Two smart pointers are equal if they point to the same Gdome object. |
Attributes |
unsigned long get_length(void) const |
The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive. |
Methods |
Node item(const unsigned longindex) |
Parameters:
Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null. |