xmlwrapp
|
This class implements a view of XML nodes. More...
#include <nodes_view.h>
Classes | |
class | const_iterator |
The const_iterator provides a way to access nodes in the view similar to a standard C++ container. More... | |
class | iterator |
The iterator provides a way to access nodes in the view similar to a standard C++ container. More... | |
Public Member Functions | |
iterator | begin () |
Get an iterator that points to the beginning of this node's children. | |
const_iterator | begin () const |
Get an iterator that points to the beginning of this node's children. | |
iterator | end () |
Get an iterator that points one past the last child for this node. | |
const_iterator | end () const |
Get an iterator that points one past the last child for this node. | |
bool | empty () const |
Is the view empty? |
This class implements a view of XML nodes.
A view is a container-like class that only allows access to a subset of xml::node's child nodes. The exact content depends on how the view was obtained; typical uses are e.g. a view of all element children or all elements with a given name.
The nodes_view class implements the same container interface that xml::node does: it has begin() and end() methods.
iterator xml::nodes_view::begin | ( | ) | [inline] |
Get an iterator that points to the beginning of this node's children.
const_iterator xml::nodes_view::begin | ( | ) | const [inline] |
Get an iterator that points to the beginning of this node's children.
bool xml::nodes_view::empty | ( | ) | const [inline] |
Is the view empty?
iterator xml::nodes_view::end | ( | ) | [inline] |
Get an iterator that points one past the last child for this node.
const_iterator xml::nodes_view::end | ( | ) | const [inline] |
Get an iterator that points one past the last child for this node.