basix_doc 0.1
range_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::range_iterator_rep< C >

Definition at line 326 of file iterator.hpp.


Constructor & Destructor Documentation

range_iterator_rep ( const C start2,
const C end2,
const C step2,
bool  f 
) [inline]

Definition at line 331 of file iterator.hpp.

Referenced by range_iterator_rep< C >::clone().

                                                                             :
    Iterator_rep (get_format (start2)),
    start (start2), end (end2), step (step2),
    now (start), back (sign (step) < 0), strict (f) {}
~range_iterator_rep ( ) [inline]

Definition at line 335 of file iterator.hpp.

{}

Member Function Documentation

void advance ( ) [inline, protected]

Definition at line 341 of file iterator.hpp.

{ now += step; }
iterator_rep<C>* clone ( ) [inline, protected]

Definition at line 344 of file iterator.hpp.

References range_iterator_rep< C >::range_iterator_rep().

                         {
    range_iterator_rep* rep= new range_iterator_rep (start, end, step, strict);
    rep->now= now;
    return rep;
  }
C current ( ) [inline, protected]

Definition at line 343 of file iterator.hpp.

{ return now; }
bool is_busy ( ) [inline, protected]

Definition at line 338 of file iterator.hpp.

                  {
    return strict? (back? now>end: now<end): (back? now>=end: now<=end); }
bool is_init ( ) [inline, protected]

Definition at line 340 of file iterator.hpp.

{ return now == start; }
void regress ( ) [inline, protected]

Definition at line 342 of file iterator.hpp.

{ now -= step; }

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