class layer_iterator

A special iterator that mimics the interface of the standard iterator but the increment and decrement operators move by sibling.

Public Methods

[more]void next()
steps to the next sibling
[more]void previous()
steps to the previous sibling
[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]layer_iterator& operator++ ()
steps to the next sibling
[more]layer_iterator& operator-- ()
steps to the previous sibling
[more]layer_iterator operator++ (int)
steps to the next sibling
[more]layer_iterator operator-- (int)
steps to the previous sibling
[more]T& operator* ()
Returns the item at this iterator
[more]const T& operator* () const
Returns the item at this iterator
[more]bool operator!= (const layer_iterator& _other) const
Returns false if the iterators point to the same widget
[more]bool operator== (const layer_iterator& _other) const
Returns true is the iterators point to the same object
[more]layer_iterator& operator= (const layer_iterator& V)
Assign this iterator to the value of another


Documentation

A special iterator that mimics the interface of the standard iterator but the increment and decrement operators move by sibling. The only way to access the children is but using the first_child and last_child functions.
ovoid next()
steps to the next sibling

ovoid previous()
steps to the previous sibling

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

olayer_iterator& operator++ ()
steps to the next sibling

olayer_iterator& operator-- ()
steps to the previous sibling

olayer_iterator operator++ (int)
steps to the next sibling

olayer_iterator operator-- (int)
steps to the previous sibling

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

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

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

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

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


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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