version 3.3

VRS::FixedSizeIterator< T > Class Template Reference

Iterator which stores a fixed number of elements. More...

#include <vrs/container/fixedsizeiterator.h>

Inheritance diagram for VRS::FixedSizeIterator< T >:

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

List of all members.

Public Member Functions

 VRS_TYPEINFO (FixedSizeIterator, Iterator< T >)
 VRS_SERIALIZABLE (FixedSizeIterator)
 FixedSizeIterator (unsigned int size)
 FixedSizeIterator (unsigned int size, const T &init)
 FixedSizeIterator (SO< Iterator< T > > iter)
template<typename S>
 FixedSizeIterator (const std::vector< S > &other)
template<class FORWARD_ITERATOR>
 FixedSizeIterator (FORWARD_ITERATOR begin, FORWARD_ITERATOR end)
virtual ~FixedSizeIterator ()
virtual unsigned int size () const
 Returns the number of elements, this iterator can iterate over.
virtual T get (unsigned int index) const
 Returns the i-th element of the elements described by this iterator.
void set (unsigned int index, const T &obj)
const T & operator[] (unsigned int index) const
T & operator[] (unsigned int index)
const T * pointer () const
T * pointer ()

Protected Member Functions

 FixedSizeIterator ()


Detailed Description

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

Iterator which stores a fixed number of elements.

Constructor & Destructor Documentation

template<typename T>
VRS::FixedSizeIterator< T >::FixedSizeIterator ( unsigned int  size  )  [inline]

template<typename T>
VRS::FixedSizeIterator< T >::FixedSizeIterator ( unsigned int  size,
const T &  init 
) [inline]

template<typename T>
VRS::FixedSizeIterator< T >::FixedSizeIterator ( SO< Iterator< T > >  iter  )  [inline]

template<typename T>
template<typename S>
VRS::FixedSizeIterator< T >::FixedSizeIterator ( const std::vector< S > &  other  )  [inline]

template<typename T>
template<class FORWARD_ITERATOR>
VRS::FixedSizeIterator< T >::FixedSizeIterator ( FORWARD_ITERATOR  begin,
FORWARD_ITERATOR  end 
) [inline]

template<typename T>
virtual VRS::FixedSizeIterator< T >::~FixedSizeIterator (  )  [inline, virtual]

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


Member Function Documentation

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

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

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

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

Implements VRS::Iterator< T >.

template<typename T>
virtual T VRS::FixedSizeIterator< 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>
void VRS::FixedSizeIterator< T >::set ( unsigned int  index,
const T &  obj 
) [inline]

template<typename T>
const T& VRS::FixedSizeIterator< T >::operator[] ( unsigned int  index  )  const [inline]

template<typename T>
T& VRS::FixedSizeIterator< T >::operator[] ( unsigned int  index  )  [inline]

template<typename T>
const T* VRS::FixedSizeIterator< T >::pointer (  )  const [inline, virtual]

If this iterator points to a sequence of elements which is layed out in memory as a standard C++ array this method returns a pointer to the first element of this sequence; a null pointer otherwise (which is the default implementation of this method).

Reimplemented from VRS::Iterator< T >.

template<typename T>
T* VRS::FixedSizeIterator< T >::pointer (  )  [inline]


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

Generated on Tue May 21 06:00:22 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact