| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/container/array2d.h>

Public Member Functions | |
| Array2D (unsigned int sizeX, unsigned int sizeY) | |
| Array2D (unsigned int sizeX, unsigned int sizeY, const T &init) | |
| Array2D (const Iterator2D< T > *iter2D) | |
| unsigned int | sizeX () const |
| unsigned int | sizeY () const |
| Both dimensions can be inquired. | |
| const T & | get (unsigned int x, unsigned int y) const |
| T & | get (unsigned int x, unsigned int y) |
| void | set (unsigned int x, unsigned int y, const T &value) |
| Gets/sets the element at the position (x, y). | |
| Iterator2D< T > * | newIterator2D () const |
| Iterator< T > * | newIterator () const |
| Returns a 1D- or 2D-iterator for this 2D-array. | |
| Iterator< T > * | newXIterator (unsigned int y) const |
| Iterator< T > * | newYIterator (unsigned int x) const |
| VRS_TYPEINFO (Array2D, SharedObj) | |
| VRS_SERIALIZABLE (Array2D) | |
Protected Member Functions | |
| Array2D () | |
Friends | |
| class | Array2DIterator2D< T > |
| VRS::Array2D< T >::Array2D | ( | unsigned int | sizeX, | |
| unsigned int | sizeY | |||
| ) |
| VRS::Array2D< T >::Array2D | ( | unsigned int | sizeX, | |
| unsigned int | sizeY, | |||
| const T & | init | |||
| ) |
| VRS::Array2D< T >::Array2D | ( | const Iterator2D< T > * | iter2D | ) |
An Array2D represents a 2D data matrix. It can be initialized by providing the sizes for both dimensions, or by a 2D iterator.
| VRS::Array2D< T >::Array2D | ( | ) | [protected] |
| unsigned int VRS::Array2D< T >::sizeX | ( | ) | const |
| unsigned int VRS::Array2D< T >::sizeY | ( | ) | const |
Both dimensions can be inquired.
| const T& VRS::Array2D< T >::get | ( | unsigned int | x, | |
| unsigned int | y | |||
| ) | const |
| T& VRS::Array2D< T >::get | ( | unsigned int | x, | |
| unsigned int | y | |||
| ) |
| void VRS::Array2D< T >::set | ( | unsigned int | x, | |
| unsigned int | y, | |||
| const T & | value | |||
| ) |
Gets/sets the element at the position (x, y).
| Iterator2D<T>* VRS::Array2D< T >::newIterator2D | ( | ) | const |
| Iterator<T>* VRS::Array2D< T >::newIterator | ( | ) | const |
Returns a 1D- or 2D-iterator for this 2D-array.
| Iterator<T>* VRS::Array2D< T >::newXIterator | ( | unsigned int | y | ) | const |
| Iterator<T>* VRS::Array2D< T >::newYIterator | ( | unsigned int | x | ) | const |
| VRS::Array2D< T >::VRS_TYPEINFO | ( | Array2D< T > | , | |
| SharedObj | ||||
| ) |
| VRS::Array2D< T >::VRS_SERIALIZABLE | ( | Array2D< T > | ) |
friend class Array2DIterator2D< T > [friend] |