version 3.3

VRS::LinearIterator< T > Class Template Reference

Linear Value Iterator. More...

#include <vrs/container/lineariterator.h>

Inheritance diagram for VRS::LinearIterator< T >:

VRS::Iterator< T > VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 LinearIterator (const T &startValue, const T &endValue, unsigned int size=0)
void setStartValue (const T &startValue)
const T & getStartValue () const
void setEndValue (const T &endValue)
const T & getEndValue () const
virtual unsigned int size () const
 Returns the number of elements, this iterator can iterate over.
void setSize (unsigned int size)
virtual T get (unsigned int index) const
 Returns the i-th element of the elements described by this iterator.
 VRS_TYPEINFO (LinearIterator, Iterator< T >)
 VRS_SERIALIZABLE (LinearIterator)

Protected Member Functions

 LinearIterator ()


Detailed Description

template<typename T>
class VRS::LinearIterator< T >

Linear Value Iterator.

Constructor & Destructor Documentation

template<typename T>
VRS::LinearIterator< T >::LinearIterator ( const T &  startValue,
const T &  endValue,
unsigned int  size = 0 
) [inline]

An `LinearIterator' reports a linear value depending on delivered index. The number, i.e., the size of the iterator is specified explicitly.

template<typename T>
VRS::LinearIterator< T >::LinearIterator (  )  [inline, protected]


Member Function Documentation

template<typename T>
void VRS::LinearIterator< T >::setStartValue ( const T &  startValue  )  [inline]

template<typename T>
const T& VRS::LinearIterator< T >::getStartValue (  )  const [inline]

Sets / gets the value where the iteration should start.

template<typename T>
void VRS::LinearIterator< T >::setEndValue ( const T &  endValue  )  [inline]

template<typename T>
const T& VRS::LinearIterator< T >::getEndValue (  )  const [inline]

Sets / gets the value where the iteration should end.

template<typename T>
virtual unsigned int VRS::LinearIterator< T >::size (  )  const [inline, virtual]

Returns the number of elements, this iterator can iterate over.

Implements VRS::Iterator< T >.

template<typename T>
void VRS::LinearIterator< T >::setSize ( unsigned int  size  )  [inline]

template<typename T>
virtual T VRS::LinearIterator< T >::get ( unsigned int  i  )  const [inline, virtual]

Returns the i-th element of the elements described by this iterator.

Implements VRS::Iterator< T >.

template<typename T>
VRS::LinearIterator< T >::VRS_TYPEINFO ( LinearIterator< T >  ,
Iterator< T >   
)

template<typename T>
VRS::LinearIterator< T >::VRS_SERIALIZABLE ( LinearIterator< T >   ) 


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

Generated on Mon May 21 06:00:16 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact