class iterator

The basic tree iterator type.

Public Methods

[more]void next()
steps forward (in preorder) through the tree
[more]void previous()
steps backward (in preorder) through the tree
[more]void next_sibling()
steps over this items's children to its next sibling
[more]void previous_sibling()
steps over the previous item's children, to the previous sibling
[more]void first_child()
steps to this item's first child
[more]void last_child()
steps to this item's last child
[more]void up_to_parent()
steps up to this item's parent
[more]bool has_children()
Returns true if this widget has children
[more]T& get_data()
Returns the item at this iterator
[more]const T& get_data() const
Returns the item at this iterator
[more]iterator& operator++ ()
steps forward (in preorder) through the tree
[more]iterator& operator-- ()
steps backward (in preorder) through the tree
[more]iterator operator++ (int)
steps forward (in preorder) through the tree
[more]iterator operator-- (int)
steps backward (in preorder) through the tree
[more]T& operator* ()
Returns the item at this iterator
[more]const T& operator* () const
Returns the item at this iterator
[more]bool operator!= (const iterator& _other) const
Returns false if the iterators point to the same widget
[more]bool operator== (const iterator& _other) const
Returns true is the iterators point to the same object
[more]iterator& operator= (const iterator& V)
Assign this iterator to the value of another


Documentation

The basic tree iterator type. Allows to step through every element in a tree or just skip to the next/previous siblings or the first/last child.
ovoid next()
steps forward (in preorder) through the tree

ovoid previous()
steps backward (in preorder) through the tree

ovoid next_sibling()
steps over this items's children to its next sibling

ovoid previous_sibling()
steps over the previous item's children, to the previous sibling

ovoid first_child()
steps to this item's first child

ovoid last_child()
steps to this item's last child

ovoid up_to_parent()
steps up to this item's parent

obool has_children()
Returns true if this widget has children

oT& get_data()
Returns the item at this iterator

oconst T& get_data() const
Returns the item at this iterator

oiterator& operator++ ()
steps forward (in preorder) through the tree

oiterator& operator-- ()
steps backward (in preorder) through the tree

oiterator operator++ (int)
steps forward (in preorder) through the tree

oiterator operator-- (int)
steps backward (in preorder) through the tree

oT& operator* ()
Returns the item at this iterator

oconst T& operator* () const
Returns the item at this iterator

obool operator!= (const iterator& _other) const
Returns false if the iterators point to the same widget

obool operator== (const iterator& _other) const
Returns true is the iterators point to the same object

oiterator& operator= (const iterator& V)
Assign this iterator to the value of another


This class has no child classes.
Friends:
class tree<T>

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.