nArray2< TYPE > Class Template Reference
[Data Types]
#include <narray2.h>
Detailed Description
template<class TYPE>
class nArray2< TYPE >
Fixed size two-dimensional array.
(C) 2004 RadonLabs GmbH
Definition at line 15 of file narray2.h.
Public Member Functions | |
| nArray2 () | |
| default constructor | |
| nArray2 (uint width, uint height) | |
| constructor | |
| ~nArray2 () | |
| destructor | |
| nArray2< TYPE > & | operator= (const nArray2< TYPE > &rhs) |
| assignment operator | |
| void | SetSize (uint width, uint height) |
| reset array's size | |
| uint | GetWidth () const |
| get number of columns | |
| uint | GetHeight () const |
| get number of rows | |
| TYPE & | At (uint x, uint y) const |
| item at index (x, y). | |
| void | Set (uint x, uint y, const TYPE &elm) |
| set value at (x, y) | |
| bool | ValidIndex (uint x, uint y) const |
| is index <i, j> inside bounds? | |
| void | Clear (const TYPE &elm) |
| clear with given value | |
Constructor & Destructor Documentation
|
|||||||||
|
default constructor
|
|
||||||||||||||||
|
constructor
|
|
|||||||||
|
destructor
|
Member Function Documentation
|
||||||||||
|
assignment operator
|
|
||||||||||||||||
|
reset array's size
|
|
|||||||||
|
get number of columns
|
|
|||||||||
|
get number of rows
|
|
||||||||||||||||
|
item at index (x, y).
|
|
||||||||||||||||||||
|
set value at (x, y)
|
|
||||||||||||||||
|
is index <i, j> inside bounds?
|
|
||||||||||
|
clear with given value
|
The documentation for this class was generated from the following file: