|
basix_doc 0.1
|
#include <iterator.hpp>
Definition at line 230 of file iterator.hpp.
| finite_iterator_rep | ( | C * | a2, |
| nat | n2, | ||
| const format< C > & | fm | ||
| ) | [inline] |
Definition at line 237 of file iterator.hpp.
Referenced by finite_iterator_rep< C >::clone().
:
Iterator_rep (fm), a(a2), n(n2), i(0), count(1) {}
Definition at line 239 of file iterator.hpp.
:
Iterator_rep (fm), a(a2), n(n2), i(i2), count(count2) {}
| ~finite_iterator_rep | ( | ) | [inline] |
Definition at line 241 of file iterator.hpp.
{
if ((--count) == 0) mmx_delete<C> (a, n); }
| void advance | ( | ) | [inline, protected] |
Definition at line 247 of file iterator.hpp.
{ i++; }
| iterator_rep<C>* clone | ( | ) | [inline, protected] |
Definition at line 250 of file iterator.hpp.
References finite_iterator_rep< C >::finite_iterator_rep(), and Format.
{
return new finite_iterator_rep (a, n, i, count+1, (Format) *this); }
| C current | ( | ) | [inline, protected] |
Definition at line 249 of file iterator.hpp.
{ return a[i]; }
| bool is_busy | ( | ) | [inline, protected] |
Definition at line 245 of file iterator.hpp.
{ return i<n; }
| bool is_init | ( | ) | [inline, protected] |
Definition at line 246 of file iterator.hpp.
{ return i==0; }
| void regress | ( | ) | [inline, protected] |
Definition at line 248 of file iterator.hpp.
{ i--; }