version 3.3

VRS::ConstantIterator< T > Class Template Reference

Constant Value Iterator. More...

#include <vrs/container/constantiterator.h>

Inheritance diagram for VRS::ConstantIterator< T >:

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

List of all members.

Public Member Functions

 ConstantIterator (const T &value=T(), unsigned int size=0)
void setValue (const T &constantValue)
const T & getValue () 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) const
 See `Iterator'.
 VRS_TYPEINFO (ConstantIterator, Iterator< T >)
 VRS_SERIALIZABLE (ConstantIterator)


Detailed Description

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

Constant Value Iterator.

Constructor & Destructor Documentation

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

An `ConstantIterator' reports one constant value `n' times. The number, i.e., the size of the iterator is specified explicitly. This iterator is used to avoid large data sets of constant values.


Member Function Documentation

template<typename T>
void VRS::ConstantIterator< T >::setValue ( const T &  constantValue  )  [inline]

template<typename T>
const T& VRS::ConstantIterator< T >::getValue (  )  const [inline]

Sets / gets the constant value used for the iterator `current()' method.

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

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

Implements VRS::Iterator< T >.

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

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

See `Iterator'.

Implements VRS::Iterator< T >.

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

template<typename T>
VRS::ConstantIterator< T >::VRS_SERIALIZABLE ( ConstantIterator< 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