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

Detailed Description

Interface for memory read operations.

Inherited by Rx::CRxString, and Rx::Interop::Runtime30::IMemory.

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 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...
 
virtual size_t Length () 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 length times the element size. More...
 

Protected Member Functions

virtual ~IMemoryAccess ()
 Destructor. More...
 

Constructor & Destructor Documentation

virtual Rx::Interop::Runtime30::IMemoryAccess::~IMemoryAccess ( )
inlineprotectedvirtual

Destructor.

Member Function Documentation

virtual size_t Rx::Interop::Runtime30::IMemoryAccess::GetElementSize ( ) const
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.

Returns
The element size in bytes.

Implemented in Rx::CRxString, Rx::CRxArrayBase< TValue >, Rx::CRxArrayUShort, Rx::CRxArrayDouble, Rx::CRxArrayInt, Rx::CRxArrayUChar, and Rx::CRxArrayUInt.

virtual const void* Rx::Interop::Runtime30::IMemoryAccess::GetPointer ( ) const
pure virtual

Gets the pointer to memory.

Returns
The pointer to memory.

Implemented in Rx::CRxString, Rx::CRxArrayBase< TValue >, Rx::CRxArrayUShort, Rx::CRxArrayDouble, Rx::CRxArrayInt, Rx::CRxArrayUChar, and Rx::CRxArrayUInt.

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

Returns
True if valid, false if not.

Implemented in Rx::CRxString, Rx::CRxArrayBase< TValue >, Rx::CRxArrayUShort, Rx::CRxArrayDouble, Rx::CRxArrayInt, Rx::CRxArrayUChar, and Rx::CRxArrayUInt.

virtual size_t Rx::Interop::Runtime30::IMemoryAccess::Length ( ) const
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 length times the element size.

Returns
The size in bytes.

Implemented in Rx::CRxString, Rx::CRxArrayBase< TValue >, Rx::CRxArrayUShort, Rx::CRxArrayDouble, Rx::CRxArrayInt, Rx::CRxArrayUChar, and Rx::CRxArrayUInt.