The iterator class. More...
#include <iterator.hpp>
Public Member Functions | |
| titerator (twidget &root) | |
| Contstructor. | |
| bool | at_end () const |
| Has the iterator reached the end? | |
| bool | next () |
| Visit the next widget. | |
| titerator< order > & | operator++ () |
| See next. | |
| twidget & | operator* () |
| Returns the current widget. | |
| twidget * | operator-> () |
| See operator*. | |
The iterator class.
Definition at line 38 of file iterator.hpp.
| gui2::iterator::titerator< order >::titerator | ( | twidget & | root | ) | [inline] |
Contstructor.
| root | The widget where to start the iteration. |
Definition at line 49 of file iterator.hpp.
| bool gui2::iterator::titerator< order >::at_end | ( | ) | const [inline] |
Has the iterator reached the end?
| [true] | At the end. | |
| [false] | Not at the end. |
Definition at line 61 of file iterator.hpp.
| bool gui2::iterator::titerator< order >::next | ( | ) | [inline] |
Visit the next widget.
| @ref | trange_error upon pre condition violation. |
Definition at line 73 of file iterator.hpp.
Referenced by gui2::iterator::titerator< order >::operator++().

| twidget& gui2::iterator::titerator< order >::operator* | ( | ) | [inline] |
Returns the current widget.
Definition at line 87 of file iterator.hpp.
Referenced by gui2::iterator::titerator< order >::operator->().

| titerator<order>& gui2::iterator::titerator< order >::operator++ | ( | ) | [inline] |
See next.
Definition at line 76 of file iterator.hpp.
References gui2::iterator::titerator< order >::next().

| twidget* gui2::iterator::titerator< order >::operator-> | ( | ) | [inline] |
See operator*.
Definition at line 90 of file iterator.hpp.
References gui2::iterator::titerator< order >::operator*().

| Generated by doxygen 1.7.1 on Thu May 24 2012 01:24:10 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |