basix_doc 0.1
finite_iterator_rep< C > Class Template Reference

#include <iterator.hpp>

List of all members.

Public Member Functions

Protected Member Functions


Detailed Description

template<typename C>
class mmx::finite_iterator_rep< C >

Definition at line 230 of file iterator.hpp.


Constructor & Destructor Documentation

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) {}
finite_iterator_rep ( C a2,
nat  n2,
nat  i2,
nat  count2,
const format< C > &  fm 
) [inline]

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); }

Member Function Documentation

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--; }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines