Raytrix Light Field SDK  v3.0
Logo
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
Rx::CRxArray2DDouble Class Referenceabstract

Detailed Description

Basic double matrix.

Inherits Rx::Interop::Runtime30::IMemory2D.

Public Types

typedef double TValue
 

Public Member Functions

 CRxArray2DDouble ()
 
 CRxArray2DDouble (size_t nRows, size_t nCols)
 
 CRxArray2DDouble (const CRxArray2DDouble &xMatrix)
 
virtual ~CRxArray2DDouble ()
 
virtual void CopyFrom (const IMemory2DAccess *pMemory)
 
virtual void CopyFrom (const IMemory2DAccess *pMemory)=0
 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. More...
 
TValueCRxArray2DDouble::operator() (size_t nRow, size_t nCol)
 
const TValueCRxArray2DDouble::operator() (size_t nRow, size_t nCol) const
 
virtual void Delete ()
 Deletes this memory block. More...
 
TValueGetDataPtr ()
 
const TValueGetDataPtr () const
 
virtual size_t GetElementSize () const
 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 void * GetPointer ()
 Gets the pointer to the memory block. More...
 
virtual const void * GetPointer () const
 Gets the pointer to memory. More...
 
virtual void GetSize (size_t &nRows, size_t &nCols) const
 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
 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...
 
virtual void New (size_t nRows, size_t 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(). More...
 
CRxArray2DDoubleoperator= (const CRxArray2DDouble &xMatrix)
 
virtual void Reset ()
 Reset all values in the memory block. The actual value the elements in the memory block are reset to depends on the implementation. More...
 
virtual void Resize (size_t nRows, size_t 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(). More...
 

Protected Attributes

void * m_pvData
 

Member Typedef Documentation

Constructor & Destructor Documentation

Rx::CRxArray2DDouble::CRxArray2DDouble ( )
Rx::CRxArray2DDouble::CRxArray2DDouble ( size_t  nRows,
size_t  nCols 
)
Rx::CRxArray2DDouble::CRxArray2DDouble ( const CRxArray2DDouble xMatrix)
virtual Rx::CRxArray2DDouble::~CRxArray2DDouble ( )
virtual

Member Function Documentation

virtual void Rx::CRxArray2DDouble::CopyFrom ( const IMemory2DAccess *  pMemory)
virtual
virtual void Rx::Interop::Runtime30::IMemory2D::CopyFrom ( const IMemory2DAccess pMemory)
pure virtualinherited

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.

Parameters
pMemory[in] The memory to copy into this memory block.
TValue& Rx::CRxArray2DDouble::CRxArray2DDouble::operator() ( size_t  nRow,
size_t  nCol 
)
const TValue& Rx::CRxArray2DDouble::CRxArray2DDouble::operator() ( size_t  nRow,
size_t  nCol 
) const
virtual void Rx::CRxArray2DDouble::Delete ( )
virtual

Deletes this memory block.

Implements Rx::Interop::Runtime30::IMemory2D.

TValue* Rx::CRxArray2DDouble::GetDataPtr ( )
const TValue* Rx::CRxArray2DDouble::GetDataPtr ( ) const
virtual size_t Rx::CRxArray2DDouble::GetElementSize ( ) const
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.

Returns
The element size in bytes.

Implements Rx::Interop::Runtime30::IMemory2DAccess.

virtual void* Rx::CRxArray2DDouble::GetPointer ( )
inlinevirtual

Gets the pointer to the memory block.

Returns
The pointer to memory.

Implements Rx::Interop::Runtime30::IMemory2D.

virtual const void* Rx::CRxArray2DDouble::GetPointer ( ) const
inlinevirtual

Gets the pointer to memory.

Returns
The pointer to memory.

Implements Rx::Interop::Runtime30::IMemory2DAccess.

virtual void Rx::CRxArray2DDouble::GetSize ( size_t &  nRows,
size_t &  nCols 
) const
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.

Returns
The size in bytes.

Implements Rx::Interop::Runtime30::IMemory2DAccess.

virtual bool Rx::CRxArray2DDouble::IsValid ( ) const
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.

Returns
True if valid, false if not.

Implements Rx::Interop::Runtime30::IMemory2DAccess.

virtual void Rx::CRxArray2DDouble::New ( size_t  nRows,
size_t  nCols 
)
virtual

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().

Parameters
nRowsThe amount of rows to allocate.
nColsThe amount of cols to allocate.

Implements Rx::Interop::Runtime30::IMemory2D.

CRxArray2DDouble& Rx::CRxArray2DDouble::operator= ( const CRxArray2DDouble xMatrix)
virtual void Rx::CRxArray2DDouble::Reset ( )
virtual

Reset all values in the memory block. The actual value the elements in the memory block are reset to depends on the implementation.

Implements Rx::Interop::Runtime30::IMemory2D.

virtual void Rx::CRxArray2DDouble::Resize ( size_t  nRows,
size_t  nCols 
)
virtual

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().

Parameters
nRowsThe amount of rows to allocate.
nColsThe amount of cols to allocate.

Implements Rx::Interop::Runtime30::IMemory2D.

Member Data Documentation

void* Rx::CRxArray2DDouble::m_pvData
protected