KHTML
DOM::NodeList Class Reference
The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.
More...
#include <dom_node.h>
Public Member Functions | |
| NodeListImpl * | handle () const |
| bool | isNull () const |
| Node | item (unsigned long index) const |
| unsigned long | length () const |
| NodeList (const NodeList &other) | |
| NodeList () | |
| NodeList & | operator= (const NodeList &other) |
| ~NodeList () | |
Protected Member Functions | |
| NodeList (const NodeListImpl *i) | |
Protected Attributes | |
| NodeListImpl * | impl |
Detailed Description
The NodeList 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 958 of file dom_node.h.
Constructor & Destructor Documentation
| NodeList::NodeList | ( | ) |
Definition at line 439 of file dom_node.cpp.
| NodeList::NodeList | ( | const NodeList & | other | ) |
Definition at line 444 of file dom_node.cpp.
| NodeList::~NodeList | ( | ) |
Definition at line 466 of file dom_node.cpp.
| NodeList::NodeList | ( | const NodeListImpl * | i | ) | [protected] |
Definition at line 450 of file dom_node.cpp.
Member Function Documentation
| NodeListImpl* DOM::NodeList::handle | ( | ) | const [inline] |
| bool DOM::NodeList::isNull | ( | ) | const [inline] |
Definition at line 1001 of file dom_node.h.
| 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 471 of file dom_node.cpp.
| 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 477 of file dom_node.cpp.
Definition at line 456 of file dom_node.cpp.
Member Data Documentation
NodeListImpl* DOM::NodeList::impl [protected] |
Definition at line 1005 of file dom_node.h.
The documentation for this class was generated from the following files:
KDE 4.3 API Reference