DOM::NodeList Class Reference
#include <dom_node.h>
Detailed Description
TheNodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.
The items in the NodeList are accessible via an integral index, starting from 0.
Definition at line 897 of file dom_node.h.
Public Member Functions | |
| NodeList () | |
| NodeList (const NodeList &other) | |
| NodeList & | operator= (const NodeList &other) |
| ~NodeList () | |
| unsigned long | length () const |
| Node | item (unsigned long index) const |
| NodeListImpl * | handle () const |
| bool | isNull () const |
Protected Member Functions | |
| NodeList (const NodeListImpl *i) | |
Protected Attributes | |
| NodeListImpl * | impl |
Friends | |
| class | Element |
| class | Node |
| class | Document |
| class | HTMLDocument |
| class | KJS::HTMLDocument |
| class | KJS::Window |
Member Function Documentation
| unsigned long NodeList::length | ( | ) | const |
The number of nodes in the list.
The range of valid child node indices is 0 to length-1 inclusive.
Definition at line 475 of file dom_node.cpp.
| Node NodeList::item | ( | unsigned long | index | ) | const |
Returns the index th item in the collection.
If index is greater than or equal to the number of nodes in the list, this returns null .
- Parameters:
-
index Index into the collection.
- Returns:
- The node at the
indexth position in theNodeList, ornullif that is not a valid index.
Definition at line 469 of file dom_node.cpp.
The documentation for this class was generated from the following files:

