xml::nodes_view Class Reference

This class implements a view of XML nodes. More...

#include <nodes_view.h>

List of all members.

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?

Detailed Description

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.

Author:
Vaclav Slavik
Since:
0.6.0
See also:
xml::node::elements(), xml::node::elements(const char *)

Member Function Documentation

const_iterator xml::nodes_view::begin (  )  const [inline]

Get an iterator that points to the beginning of this node's children.

Returns:
An iterator that points to the beginning of the children.
iterator xml::nodes_view::begin (  )  [inline]

Get an iterator that points to the beginning of this node's children.

Returns:
An iterator that points to the beginning of the children.
bool xml::nodes_view::empty (  )  const [inline]

Is the view empty?

const_iterator xml::nodes_view::end (  )  const [inline]

Get an iterator that points one past the last child for this node.

Returns:
A "one past the end" iterator.
iterator xml::nodes_view::end (  )  [inline]

Get an iterator that points one past the last child for this node.

Returns:
A "one past the end" iterator.

The documentation for this class was generated from the following file:

Generated on Sun Dec 20 12:42:33 2009 for xmlwrapp by  doxygen 1.6.1