#include <dom_node.h>
Public Member Functions | |
| NodeList (const NodeList &other) | |
| NodeList & | operator= (const NodeList &other) |
| 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 |
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 931 of file dom_node.h.
Constructor & Destructor Documentation
◆ NodeList() [1/3]
| NodeList::NodeList | ( | ) |
Definition at line 453 of file dom_node.cpp.
◆ NodeList() [2/3]
| NodeList::NodeList | ( | const NodeList & | other | ) |
Definition at line 458 of file dom_node.cpp.
◆ ~NodeList()
| NodeList::~NodeList | ( | ) |
Definition at line 480 of file dom_node.cpp.
◆ NodeList() [3/3]
|
protected |
Definition at line 464 of file dom_node.cpp.
Member Function Documentation
◆ handle()
|
inline |
Definition at line 973 of file dom_node.h.
◆ isNull()
|
inline |
Definition at line 974 of file dom_node.h.
◆ item()
| 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 485 of file dom_node.cpp.
◆ length()
| 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 491 of file dom_node.cpp.
◆ operator=()
Definition at line 470 of file dom_node.cpp.
Friends And Related Function Documentation
◆ Document
|
friend |
Definition at line 935 of file dom_node.h.
◆ Element
|
friend |
Definition at line 933 of file dom_node.h.
◆ HTMLDocument
|
friend |
Definition at line 936 of file dom_node.h.
◆ KJS::HTMLDocument
|
friend |
Definition at line 937 of file dom_node.h.
◆ KJS::Window
|
friend |
Definition at line 938 of file dom_node.h.
◆ Node
|
friend |
Definition at line 934 of file dom_node.h.
Member Data Documentation
◆ impl
|
protected |
Definition at line 978 of file dom_node.h.
The documentation for this class was generated from the following files:
Trinity API Reference