|
basix_doc 0.1
|
#include <iterator.hpp>
Definition at line 390 of file iterator.hpp.
| lazy_iterator_rep | ( | const T & | x2, |
| const format< C > & | fm | ||
| ) | [inline] |
Definition at line 396 of file iterator.hpp.
Referenced by lazy_iterator_rep< C, T >::clone().
:
Iterator_rep (fm), x (x2), initialized (false) {}
| lazy_iterator_rep | ( | const T & | x2, |
| bool | init2, | ||
| const iterator< C > | it2, | ||
| const format< C > & | fm | ||
| ) | [inline] |
Definition at line 398 of file iterator.hpp.
:
Iterator_rep (fm), x (x2), initialized (init2), it (it2) {}
| void advance | ( | ) | [inline, protected] |
Definition at line 409 of file iterator.hpp.
References lazy_iterator_rep< C, T >::initialize().
{ initialize (); ++it; }
| iterator_rep<C>* clone | ( | ) | [inline, protected] |
Definition at line 413 of file iterator.hpp.
References mmx::copy(), Format, and lazy_iterator_rep< C, T >::lazy_iterator_rep().
{
return new lazy_iterator_rep (x, initialized, copy (it), (Format) *this); }
| C current | ( | ) | [inline, protected] |
Definition at line 412 of file iterator.hpp.
References lazy_iterator_rep< C, T >::initialize().
{ initialize (); return *it; }
| void initialize | ( | ) | [inline] |
Definition at line 401 of file iterator.hpp.
References mmx::iterate().
Referenced by lazy_iterator_rep< C, T >::advance(), lazy_iterator_rep< C, T >::current(), lazy_iterator_rep< C, T >::is_busy(), and lazy_iterator_rep< C, T >::regress().
{
if (initialized) return;
initialized= true;
it= iterate (x);
}
| bool is_busy | ( | ) | [inline, protected] |
Definition at line 408 of file iterator.hpp.
References mmx::busy(), and lazy_iterator_rep< C, T >::initialize().
{ initialize (); return busy (it); }
| bool is_init | ( | ) | [inline, protected] |
Definition at line 410 of file iterator.hpp.
{ return !initialized; }
| void regress | ( | ) | [inline, protected] |
Definition at line 411 of file iterator.hpp.
References lazy_iterator_rep< C, T >::initialize().
{ initialize (); --it; }