Namespace: Rx – Class: CRxArray2DInt – Header: Rx.Core.Ex/RxArray2DInt.h
CRxArray2DInt Class
#include "Rx.Core.Ex/RxArray2DInt.h"
class CRxArray2DInt : public IMemory2D
A 2D integer array.
Constructors
CRxArray2DInt() | |
CRxArray2DInt(nRows, nCols) | |
CRxArray2DInt(xMatrix) |
Destructor
~CRxArray2DInt() |
Methods
GetDataPtr() | |
GetDataPtr() | |
New(nRows, nCols) | Creates a new memory block of nRows times nCols elements. The size of an element is fixed by the implementation and can be read out with the function GetElementSize(). |
Resize(nRows, nCols) | Resizes the memory block to the given number of elements. The size of an element is fixed by the implementation and can be read out with the function GetElementSize(). |
Delete() | Deletes this memory block. |
Reset() | Reset all values in the memory block. The actual value the elements in the memory block are reset to depends on the implementation. |
CopyFrom(pMemory) | Copies the memory block described by pMemory into this memory block. This memory block is automatically resized. The function throws an exception if the element sizes of the given memory block does not agree with the element size of this memory block. |
GetElementSize() | Gets the element size. The memory block is made up of blocks of the given number of bytes. The function Length() returns the number of elements in the memory block, where each element is of the size given in GetElementSize(). For example, an array of 10 doubles has element size 8 and length 10. |
GetSize(nRows, nCols) | Gets the number of elements in the memory block. The total number of bytes allocated by the memory block is given by the nRows times nCols times the element size. |
GetPointer() | Gets the pointer to the memory block. |
GetPointer() | Gets the pointer to memory. |
IsValid() | Query if this object is valid. This function returns also true if the object itself is valid but the memory block has size zero. |
Operators
operator=(xMatrix) | |
operator()(nRow, nCol) | |
operator()(nRow, nCol) |
Typedefs
TValue | Defines an alias representing the type of the elements in this array. |