FIXME: Forward iterator on a set of values. More...
#include <viter.hh>

Public Types | |
| typedef Object< void > | category |
| typedef fwd_viter_< S > | exact_t |
| typedef S::value | value |
| Value associated type. | |
Public Member Functions | |
| void | change_target (const S &s) |
| fwd_viter_ (const Value_Set< S > &s) | |
| Constructor. | |
| fwd_viter_ () | |
| Constructor without argument. | |
| unsigned | index_ () const |
| Give the current index. | |
| void | invalidate () |
| Invalidate the iterator. | |
| bool | is_valid () const |
| Test if the iterator is valid. | |
| void | next () |
| Go to the next element. | |
| void | next_ () |
| Go to the next value. | |
| operator typename S::value () const | |
| Conversion into a value. | |
| void | start () |
| Start an iteration. | |
Private Attributes | |
| unsigned | i_ |
| const S * | s_ |
FIXME: Forward iterator on a set of values.
The parameter S is the type of value set.
Definition at line 52 of file viter.hh.
typedef Object<void> mln::Object< fwd_viter_< S > >::category [inherited] |
typedef fwd_viter_< S > mln::Object< fwd_viter_< S > >::exact_t [inherited] |
| typedef S ::value mln::value::fwd_viter_< S >::value |
| mln::value::fwd_viter_< S >::fwd_viter_ | ( | ) | [inline] |
| mln::value::fwd_viter_< S >::fwd_viter_ | ( | const Value_Set< S > & | s | ) | [inline] |
Constructor.
Definition at line 150 of file viter.hh.
References mln::value::fwd_viter_< S >::change_target(), and mln::exact().
| void mln::value::fwd_viter_< S >::change_target | ( | const S & | s | ) | [inline] |
Definition at line 158 of file viter.hh.
References mln::value::fwd_viter_< S >::invalidate().
Referenced by mln::value::fwd_viter_< S >::fwd_viter_().
| unsigned mln::value::fwd_viter_< S >::index_ | ( | ) | const [inline] |
| void mln::value::fwd_viter_< S >::invalidate | ( | ) | [inline] |
Invalidate the iterator.
Definition at line 175 of file viter.hh.
Referenced by mln::value::fwd_viter_< S >::change_target().
| bool mln::value::fwd_viter_< S >::is_valid | ( | ) | const [inline] |
| void mln::Iterator< fwd_viter_< S > >::next | ( | ) | [inherited] |
Go to the next element.
| void mln::value::fwd_viter_< S >::next_ | ( | ) | [inline] |
| mln::value::fwd_viter_< S >::operator typename S::value | ( | ) | const [inline] |
| void mln::value::fwd_viter_< S >::start | ( | ) | [inline] |
unsigned mln::value::fwd_viter_< S >::i_ [private] |
const S* mln::value::fwd_viter_< S >::s_ [private] |
1.7.1