|
ClanLib
2.3.7
|
DOM Node List class. More...
#include <dom_node_list.h>
Public Member Functions | |
Construction | |
| CL_DomNodeList () | |
| Constructs a DOM NodeList handle. More... | |
| CL_DomNodeList (CL_DomNode &node, const CL_DomString &tag_name) | |
| Constructs a DomNodeList. More... | |
| CL_DomNodeList (CL_DomNode &node, const CL_DomString &namespace_uri, const CL_DomString &name, bool local_name=false) | |
| ~CL_DomNodeList () | |
Attributes | |
| int | get_length () const |
| The number of nodes in the list. More... | |
Operations | |
| CL_DomNode | item (unsigned long index) const |
| Returns the indexth item in the collection. More... | |
| void | add_item (CL_DomNode &to_add) |
| Adds a CL_DomNode to the list. More... | |
DOM Node List class.
The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.
| CL_DomNodeList::CL_DomNodeList | ( | ) |
Constructs a DOM NodeList handle.
| CL_DomNodeList::CL_DomNodeList | ( | CL_DomNode & | node, |
| const CL_DomString & | tag_name | ||
| ) |
Constructs a DomNodeList.
| node | = Dom Node |
| tag_name | = Dom String |
| CL_DomNodeList::CL_DomNodeList | ( | CL_DomNode & | node, |
| const CL_DomString & | namespace_uri, | ||
| const CL_DomString & | name, | ||
| bool | local_name = false |
||
| ) |
| CL_DomNodeList::~CL_DomNodeList | ( | ) |
| void CL_DomNodeList::add_item | ( | CL_DomNode & | to_add) |
Adds a CL_DomNode to the list.
| int CL_DomNodeList::get_length | ( | ) | const |
The number of nodes in the list.
| CL_DomNode CL_DomNodeList::item | ( | unsigned long | index) | const |
Returns the indexth item in the collection.
If index is greater than or equal to the number of nodes in the list, this returns an empty node.
1.8.4