CircularVector< Contained >::CircularVector::Incrementor< ItTp > Class Template Reference

List of all members.

Public Member Functions

 Incrementor (int current, CircularVector &vec)
Incrementor operator+ (int i)
Incrementor operator++ (int)
void operator++ ()
void operator-- ()
Incrementor operator-- (int)
ItTp & operator* () const
bool operator== (const Incrementor &comparable) const
bool operator!= (const Incrementor &comparable) const

Public Attributes

int current
CircularVectorvec


Detailed Description

template<class Contained>
template<class ItTp>
class CircularVector< Contained >::Incrementor< ItTp >

CircularVector internal iterator that implements circular iteration over the internal array iterates over some ItTp

Definition at line 25 of file ep_cvec.h.


Constructor & Destructor Documentation

template<class Contained>
template<class ItTp >
CircularVector< Contained >::CircularVector::Incrementor< ItTp >::Incrementor ( int  current,
CircularVector vec 
) [inline]

Default constructor

Parameters:
current the integer that represents the array index to be taken into consideration
vec the CircularVector instance that constructed this Incrementor

Definition at line 31 of file ep_cvec.h.


Member Function Documentation

template<class Contained>
template<class ItTp >
bool CircularVector< Contained >::CircularVector::Incrementor< ItTp >::operator!= ( const Incrementor< ItTp > &  comparable  )  const [inline]

Not equal comparison operator

Parameters:
comparable the other iterator to be compared
Returns:
true if both are pointing to the distincts elements and false otherwise

Definition at line 101 of file ep_cvec.h.

template<class Contained>
template<class ItTp >
ItTp& CircularVector< Contained >::CircularVector::Incrementor< ItTp >::operator* (  )  const [inline]

Derefence operator

Returns:
the ItTp iterated element reference

Definition at line 83 of file ep_cvec.h.

template<class Contained>
template<class ItTp >
Incrementor CircularVector< Contained >::CircularVector::Incrementor< ItTp >::operator+ ( int  i  )  [inline]

Sum operator

Parameters:
i the integer to sum
Returns:
a Incrementor to the new index position

Definition at line 39 of file ep_cvec.h.

template<class Contained>
template<class ItTp >
void CircularVector< Contained >::CircularVector::Incrementor< ItTp >::operator++ (  )  [inline]

Increment operator

Definition at line 58 of file ep_cvec.h.

template<class Contained>
template<class ItTp >
Incrementor CircularVector< Contained >::CircularVector::Incrementor< ItTp >::operator++ ( int   )  [inline]

Increment operator (postfix)

Parameters:
int unused
Returns:
a Incrementor to the new index position

Definition at line 49 of file ep_cvec.h.

template<class Contained>
template<class ItTp >
Incrementor CircularVector< Contained >::CircularVector::Incrementor< ItTp >::operator-- ( int   )  [inline]

Decrement operator (postfix)

Returns:
a Incrementor to the new index position

Definition at line 73 of file ep_cvec.h.

template<class Contained>
template<class ItTp >
void CircularVector< Contained >::CircularVector::Incrementor< ItTp >::operator-- (  )  [inline]

Decrement operator

Definition at line 65 of file ep_cvec.h.

template<class Contained>
template<class ItTp >
bool CircularVector< Contained >::CircularVector::Incrementor< ItTp >::operator== ( const Incrementor< ItTp > &  comparable  )  const [inline]

Equal comparison operator

Parameters:
comparable the other iterator to be compared
Returns:
true if both are pointing to the same element and false otherwise

Definition at line 92 of file ep_cvec.h.


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

Generated on Mon May 4 09:42:22 2009 for EPOS-- by  doxygen 1.5.8