NodeList

# GdomeSmartDOM::NodeList

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) const
Parameters: index Index into the collection. Description: 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.

This file has been generated automatically on mar apr 9 10:53:25 CEST 2002 as part of GMetaDOM. For more information see the home page of the project, or contact the main author: luca.padovani@cs.unibo.it.