Interface for 2D memory read operations.
Inherited by Rx::Interop::Runtime30::IMemory2D.
Public Member Functions | |
virtual size_t | GetElementSize () const =0 |
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. More... | |
virtual const void * | GetPointer () const =0 |
Gets the pointer to memory. More... | |
virtual void | GetSize (size_t &nRows, size_t &nCols) const =0 |
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. More... | |
virtual bool | IsValid () const =0 |
Query if this object is valid. This function returns also true if the object itself is valid but the memory block has size zero. More... | |
Protected Member Functions | |
virtual | ~IMemory2DAccess () |
Destructor. More... | |
|
inlineprotectedvirtual |
Destructor.
|
pure virtual |
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.
Implemented in Rx::CRxArray2DDouble, Rx::CRxArray2DInt, and Rx::CRxArray2DBase< TValue >.
|
pure virtual |
Gets the pointer to memory.
Implemented in Rx::CRxArray2DDouble, Rx::CRxArray2DInt, and Rx::CRxArray2DBase< TValue >.
|
pure virtual |
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.
Implemented in Rx::CRxArray2DDouble, Rx::CRxArray2DInt, and Rx::CRxArray2DBase< TValue >.
|
pure virtual |
Query if this object is valid. This function returns also true if the object itself is valid but the memory block has size zero.
Implemented in Rx::CRxArray2DDouble, Rx::CRxArray2DInt, and Rx::CRxArray2DBase< TValue >.