AFF --- A container for numbers (array) by Friederich and Forbriger.
aff::Iterator< C > Class Template Reference

Iterator. More...

#include <iterator.h>

Public Types

typedef C Tcontainer
 type of container More...
 
typedef C::Trepresentation Trepresentation
 representation class More...
 
typedef C::Tshape Tshape
 shape class More...
 
typedef C::Tshape::Tstepper Tstepper
 stepper base class More...
 
typedef C::Tvalue Tvalue
 value type More...
 
typedef C::Treference Treference
 value type More...
 
typedef C::Tpointer Tpointer
 value type More...
 

Public Member Functions

 Iterator (const C &c)
 only this constructor More...
 
Iterator & operator++ ()
 synonym for increment More...
 
Iterator & operator-- ()
 synonym for decrement More...
 
Treference operator* ()
 access element More...
 
Tpointer operator-> ()
 member selection operator More...
 
bool more () const
 delegate to stepper More...
 
bool less () const
 delegate to stepper More...
 
bool valid () const
 delegate to stepper More...
 
Iterator & incr ()
 delegate to stepper More...
 
Iterator & decr ()
 delegate to stepper More...
 
Iterator & tofirst ()
 delegate to stepper More...
 
Iterator & tolast ()
 delegate to stepper More...
 

Private Attributes

Tstepper Mstepper
 Stepper to use. More...
 
Trepresentation Mrepresentation
 Representation to access. More...
 

Detailed Description

template<class C>
class aff::Iterator< C >

Iterator.

Note
This class holds an intrinsic reference to the Container components.
Parameters
Cany container with appropriate interface (e.g. aff::Array, aff::Series)
Todo:
Define requirements for the interface a container must provide.
Examples:
tests/helpertest.cc.

Definition at line 73 of file iterator.h.


The documentation for this class was generated from the following file: