version 3.3

VRS::Iterator2D< T > Class Template Reference

#include <vrs/container/iterator2d.h>

Inheritance diagram for VRS::Iterator2D< T >:

VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

virtual unsigned int sizeX () const =0
virtual unsigned int sizeY () const =0
 Return the dimensions.
virtual T get (unsigned int x, unsigned int y) const =0
 Returns the element at the position (x, y).
virtual Iterator< T > * newIterator () const
 Returns a 1D-Iterator in row-first format.
virtual Iterator< T > * newXIterator (unsigned int y) const
virtual Iterator< T > * newYIterator (unsigned int x) const
 VRS_TYPEINFO (Iterator2D, SharedObj)


Detailed Description

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

Abstract base class for 2-dim iterators. A `Iterator2D' provides a uniform interface for application data of type `T'. A `Iterator2D' is used to access any kind of data stored in a 2-dim matrix.

Member Function Documentation

template<typename T>
virtual unsigned int VRS::Iterator2D< T >::sizeX (  )  const [pure virtual]

template<typename T>
virtual unsigned int VRS::Iterator2D< T >::sizeY (  )  const [pure virtual]

Return the dimensions.

Implemented in VRS::TypeCastIterator2D< TO, FROM >.

template<typename T>
virtual T VRS::Iterator2D< T >::get ( unsigned int  x,
unsigned int  y 
) const [pure virtual]

Returns the element at the position (x, y).

Implemented in VRS::TypeCastIterator2D< TO, FROM >.

template<typename T>
virtual Iterator<T>* VRS::Iterator2D< T >::newIterator (  )  const [virtual]

Returns a 1D-Iterator in row-first format.

template<typename T>
virtual Iterator<T>* VRS::Iterator2D< T >::newXIterator ( unsigned int  y  )  const [virtual]

template<typename T>
virtual Iterator<T>* VRS::Iterator2D< T >::newYIterator ( unsigned int  x  )  const [virtual]

template<typename T>
VRS::Iterator2D< T >::VRS_TYPEINFO ( Iterator2D< T >  ,
SharedObj   
)


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