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.
iterator p=f.begin(); if(p!=f.end()) if p!=f.end() --> *p is derived from widgets::base_widget.
End iterator.
Create a widget iterator.
Destructor.
cppcms::form::iterator::iterator | ( | iterator const & | other | ) |
Copy the iterator. This operation is not cheap.
bool cppcms::form::iterator::operator!= | ( | iterator const & | other | ) | const [inline] |
Check if two iterators point to different elements.
widgets::base_widget& cppcms::form::iterator::operator* | ( | ) | const [inline] |
Return the underlying widget. Condition: *this!=iterator().
iterator cppcms::form::iterator::operator++ | ( | int | ) | [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.
iterator& cppcms::form::iterator::operator++ | ( | ) | [inline] |
Increment operator. It forwards the iterator to the next widget. Note it does not point to the higher level form container.
widgets::base_widget* cppcms::form::iterator::operator-> | ( | ) | const [inline] |
Return the underlying widget. Condition: *this!=iterator().
Assign the iterator. This operation is not cheap.
bool cppcms::form::iterator::operator== | ( | iterator const & | other | ) | const [inline] |
Check if two iterators point to the same element.