ADTF
|
Legacy template class for adtf_memory usage. More...
Public Member Functions | |
adtf_memory (T *pAssignValue) | |
explicit CTOR to create a IRawMemory interface rvalue | |
virtual | ~adtf_memory () |
DTOR. | |
tResult | Set (const void *pValue, size_t szSize) |
Sets the Raw pointer memory. More... | |
const void * | Get () const |
Returns the raw memory pointer. More... | |
size_t | GetSize () const |
Returns the size in bytes of the memory. More... | |
Private Types | |
typedef adtf_memory< T, TSIZE > | _myType |
typedef T | _myStorageType |
typedef adtf_memory_forward< T > | _myBase |
Private Member Functions | |
adtf_memory (const adtf_memory &)=delete | |
adtf_memory & | operator= (const adtf_memory &)=delete |
adtf_memory (adtf_memory &&)=delete | |
adtf_memory & | operator= (adtf_memory &&)=delete |
Private Attributes | |
T * | m_pAssignValue |
Reference pointer to the T constructed with explict adtf_memory. | |
Additional Inherited Members | |
Static Protected Member Functions inherited from adtf_memory_forward< T > | |
static tResult | Assign (T *pAssignValue, const size_t szStaticSize, const void *pValueToSet, const size_t szSizeToSet) |
Sets (copy) the memory value pValueToSet of size in bytes szSizeToSet to the of container class T in parameter pAssignValue . More... | |
static const void * | GetPtr (const T *pAssignValue) |
Gets the memory pointer to the of container class T in parameter pAssignValue . More... | |
static size_t | GetSize (const T *pAssignValue, const size_t szStaticSize) |
Gets size in bytes of the memory pointer of container class T in parameter pAssignValue . More... | |
Legacy template class for adtf_memory usage.
See adtf::base::penguin::adtf_memory.
T | Type of the memory implementation which can provide raw memory. |
size_t | Size of memory if the type T is a fixed size type. Set to 0 if T is resizable and a non standard type. |
Definition at line 150 of file rawmemory_base.h.
|
inlinevirtual |
Returns the raw memory pointer.
Implements IRawMemory.
Definition at line 188 of file rawmemory_base.h.
References adtf_memory_forward< T >::GetPtr(), and adtf_memory< T, TSIZE >::m_pAssignValue.
|
inlinevirtual |
Returns the size in bytes of the memory.
Implements IRawMemory.
Definition at line 196 of file rawmemory_base.h.
References adtf_memory_forward< T >::GetSize(), and adtf_memory< T, TSIZE >::m_pAssignValue.
|
inlinevirtual |
Sets the Raw pointer memory.
Copy the content.
[in] | pValue | raw memory pointer. |
[in] | szSize | size of memory to copy in bytes. |
ERR_MEMORY | The Memory does not fit. |
ERR_POINTER | Internal implementation error. |
Implements IRawMemory.
Definition at line 177 of file rawmemory_base.h.
References adtf_memory_forward< T >::Assign(), adtf_memory< T, TSIZE >::m_pAssignValue, and RETURN_ERROR.