Wrapper template over 2D memory objects. More...
#include <Common.hpp>
Public Types | |
| typedef Array1D< T > | Row |
Public Member Functions | |
| Array2D (T *values, int width, int height, ptrdiff_t pitch) | |
| Constructor. | |
| int | height () const |
| Gets the number of rows in the array. | |
| const Row | operator[] (int y) const |
| Gets an array's const row. | |
| Row | operator[] (int y) |
| Gets an array's row. | |
| int | width () const |
| The length of each row. | |
Wrapper template over 2D memory objects.
A 2D array used as an interface to get the values from the COP and the ZMap.
It expects the objects layed out in memory where consecutive objects mean consecutive columns. And there is a pitch spacing between the first object of each row.
| sal3d::Array2D< T >::Array2D | ( | T * | values, |
| int | width, | ||
| int | height, | ||
| ptrdiff_t | pitch | ||
| ) | [inline] |
Constructor.
| [in] | values | The pointer to the array's values. |
| [in] | width | The array's width. Must be greater than 0. |
| [in] | height | The array's height. Must be greater than 0. |
| [in] | pitch | The distance, in number of elements, between two rows in values. |
| int sal3d::Array2D< T >::height | ( | ) | const [inline] |
Gets the number of rows in the array.
Referenced by sal3d::Array2D< T >::operator[]().
| const Row sal3d::Array2D< T >::operator[] | ( | int | y | ) | const [inline] |
Gets an array's const row.
| [in] | y | The row index to get. The allowed range is 0..height () - 1. |
y. References sal3d::Array2D< T >::height(), and sal3d::Array2D< T >::width().
| Row sal3d::Array2D< T >::operator[] | ( | int | y | ) | [inline] |
Gets an array's row.
| [in] | y | The row index to get. The allowed range is 0..height() - 1. |
y. | int sal3d::Array2D< T >::width | ( | ) | const [inline] |
The length of each row.
Referenced by sal3d::Array2D< T >::operator[]().
by
1.7.6.1