CppCMS
|
Input iterator used to iterate over all the widgets in a form. More...
#include <cppcms/form.h>
Public Member Functions | |
iterator () | |
iterator (form &) | |
~iterator () | |
iterator (iterator const &other) | |
iterator const & | operator= (iterator const &other) |
widgets::base_widget * | operator-> () const |
widgets::base_widget & | operator* () const |
bool | operator== (iterator const &other) const |
bool | operator!= (iterator const &other) const |
iterator | operator++ (int) |
iterator & | operator++ () |
Friends | |
class | form |
Input iterator used to iterate over all the widgets in a form.
This class is mainly used by templates to render widgets. It recursively iterates over all the widgets and subforms.
cppcms::form::iterator::iterator | ( | ) |
End iterator.
cppcms::form::iterator::iterator | ( | form & | ) |
Create a widget iterator.
cppcms::form::iterator::~iterator | ( | ) |
Destructor.
cppcms::form::iterator::iterator | ( | iterator const & | other | ) |
Copy the iterator. This operation is not cheap.
|
inline |
Check if two iterators point to different elements.
|
inline |
Return the underlying widget. Condition: *this!=iterator().
|
inline |
Post increment operator. It forwards the iterator to the next widget. Note it does not point to the higher level form container.
Note: it is preferable to use ++i rather than i++ as copying iterators is not cheap.
|
inline |
Increment operator. It forwards the iterator to the next widget. Note it does not point to the higher level form container.
|
inline |
Return the underlying widget. Condition: *this!=iterator().
Assign the iterator. This operation is not cheap.
|
inline |
Check if two iterators point to the same element.