DOM::NodeList
DOM::NodeList Class Reference
#include <dom_node.h>
Public Member Functions | |
NodeList (const NodeList &other) | |
NodeListImpl * | handle () const |
bool | isNull () const |
Node | item (unsigned long index) const |
unsigned long | length () const |
NodeList & | operator= (const NodeList &other) |
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 976 of file dom_node.h.
Member Function Documentation
◆ handle()
|
inline |
not part of the DOM
Definition at line 1019 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
index
th position in theNodeList
, ornull
if that is not a valid index.
Definition at line 606 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 614 of file dom_node.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:01:34 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:01:34 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.