#include <array.hh>
Public Types | |
typedef Proxy< void > | category |
typedef array_fwd_iter< T > | exact_t |
typedef array< T >::ro_result | subj_t |
Public Member Functions | |
void | change_target (const array< T > &a) |
Change the array it iterates on to a . | |
T | element () const |
Give the element the iterator designates. | |
unsigned | index_ () const |
Give the current index. | |
void | invalidate () |
Invalidate the iterator. | |
bool | is_valid () const |
Returns true if the iterator is valid. | |
void | next () |
Go to the next element. | |
void | start () |
Start an iteration. | |
subj_t | subj_ () |
array_fwd_iter () | |
ConstructorsConstructor without argument. | |
array_fwd_iter (const array< T > &a) | |
Constructor from an array a . | |
Protected Attributes | |
const array< T > * | a_ |
unsigned | i_ |
Definition at line 231 of file util/array.hh.
typedef Proxy<void> mln::Proxy< array_fwd_iter< T > >::category [inherited] |
Reimplemented from mln::Object< array_fwd_iter< T > >.
Definition at line 234 of file core/concept/proxy.hh.
typedef array_fwd_iter< T > mln::Object< array_fwd_iter< T > >::exact_t [inherited] |
typedef array<T>::ro_result mln::util::array_fwd_iter< T >::subj_t |
Definition at line 236 of file util/array.hh.
mln::util::array_fwd_iter< T >::array_fwd_iter | ( | ) | [inline] |
ConstructorsConstructor without argument.
Definition at line 614 of file util/array.hh.
References mln::util::array_fwd_iter< T >::a_.
mln::util::array_fwd_iter< T >::array_fwd_iter | ( | const array< T > & | a | ) | [inline] |
Constructor from an array a
.
Definition at line 621 of file util/array.hh.
References mln::util::array_fwd_iter< T >::change_target().
void mln::util::array_fwd_iter< T >::change_target | ( | const array< T > & | a | ) | [inline] |
Change the array it iterates on to a
.
Definition at line 629 of file util/array.hh.
References mln::util::array_fwd_iter< T >::a_, and mln::util::array_fwd_iter< T >::invalidate().
Referenced by mln::util::array_fwd_iter< T >::array_fwd_iter().
T mln::util::array_fwd_iter< T >::element | ( | ) | const [inline] |
Give the element the iterator designates.
Definition at line 674 of file util/array.hh.
References mln::util::array_fwd_iter< T >::a_, mln::util::array_fwd_iter< T >::i_, and mln::util::array_fwd_iter< T >::is_valid().
unsigned mln::util::array_fwd_iter< T >::index_ | ( | ) | const [inline] |
Give the current index.
Definition at line 692 of file util/array.hh.
References mln::util::array_fwd_iter< T >::i_.
void mln::util::array_fwd_iter< T >::invalidate | ( | ) | [inline] |
Invalidate the iterator.
Definition at line 664 of file util/array.hh.
References mln::util::array_fwd_iter< T >::a_, mln::util::array_fwd_iter< T >::i_, and mln::util::array_fwd_iter< T >::is_valid().
Referenced by mln::util::array_fwd_iter< T >::change_target().
bool mln::util::array_fwd_iter< T >::is_valid | ( | ) | const [inline] |
Returns true if the iterator is valid.
Definition at line 656 of file util/array.hh.
References mln::util::array_fwd_iter< T >::a_, and mln::util::array_fwd_iter< T >::i_.
Referenced by mln::util::array_fwd_iter< T >::element(), mln::util::array_fwd_iter< T >::invalidate(), mln::util::array_fwd_iter< T >::next(), and mln::util::array_fwd_iter< T >::subj_().
void mln::util::array_fwd_iter< T >::next | ( | ) | [inline] |
Go to the next element.
Definition at line 647 of file util/array.hh.
References mln::util::array_fwd_iter< T >::i_, and mln::util::array_fwd_iter< T >::is_valid().
void mln::util::array_fwd_iter< T >::start | ( | ) | [inline] |
Start an iteration.
Definition at line 638 of file util/array.hh.
References mln::util::array_fwd_iter< T >::a_, and mln::util::array_fwd_iter< T >::i_.
array_fwd_iter< T >::subj_t mln::util::array_fwd_iter< T >::subj_ | ( | ) | [inline] |
Definition at line 683 of file util/array.hh.
References mln::util::array_fwd_iter< T >::a_, mln::util::array_fwd_iter< T >::i_, and mln::util::array_fwd_iter< T >::is_valid().
const array<T>* mln::util::array_fwd_iter< T >::a_ [protected] |
Definition at line 273 of file util/array.hh.
Referenced by mln::util::array_fwd_iter< T >::array_fwd_iter(), mln::util::array_fwd_iter< T >::change_target(), mln::util::array_fwd_iter< T >::element(), mln::util::array_fwd_iter< T >::invalidate(), mln::util::array_fwd_iter< T >::is_valid(), mln::util::array_fwd_iter< T >::start(), and mln::util::array_fwd_iter< T >::subj_().
unsigned mln::util::array_fwd_iter< T >::i_ [protected] |
Definition at line 272 of file util/array.hh.
Referenced by mln::util::array_fwd_iter< T >::element(), mln::util::array_fwd_iter< T >::index_(), mln::util::array_fwd_iter< T >::invalidate(), mln::util::array_fwd_iter< T >::is_valid(), mln::util::array_fwd_iter< T >::next(), mln::util::array_fwd_iter< T >::start(), and mln::util::array_fwd_iter< T >::subj_().