version 3.3

VRS::StaticArrayIterator< T > Class Template Reference

#include <vrs/container/staticarray.h>

Inheritance diagram for VRS::StaticArrayIterator< T >:

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

List of all members.

Public Member Functions

 StaticArrayIterator (const NonPersistentStaticArray< T > *array)
virtual ~StaticArrayIterator ()
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.
virtual const T * pointer () const
virtual SharedObjcontainer () const
 VRS_TYPEINFO (StaticArrayIterator, Iterator< T >)
 VRS_SERIALIZABLE (StaticArrayIterator)

Protected Member Functions

 StaticArrayIterator ()

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


Constructor & Destructor Documentation

template<typename T>
VRS::StaticArrayIterator< T >::StaticArrayIterator ( const NonPersistentStaticArray< T > *  array  )  [inline]

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

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


Member Function Documentation

template<typename T>
virtual unsigned int VRS::StaticArrayIterator< 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::StaticArrayIterator< 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>
virtual const T* VRS::StaticArrayIterator< 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>
virtual SharedObj* VRS::StaticArrayIterator< T >::container (  )  const [inline, virtual]

Returns the container this iterator belongs to. This method can return NULL, if the iterator does not belong to a container (e.g. ConstantIterator<T>).

Reimplemented from VRS::Iterator< T >.

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

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


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

Generated on Thu May 23 06:00:24 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact