ADTF
Loading...
Searching...
No Matches
adtf_memory_trivial_type< T, typename std::enable_if< std::is_const< T >::value >::type >
Inheritance diagram for adtf_memory_trivial_type< T, typename std::enable_if< std::is_const< T >::value >::type >:
[legend]

Public Member Functions

 adtf_memory_trivial_type (T *pValuePointer)
 
tResult Set (const void *, size_t) override
 Sets the Raw pointer memory.
 
size_t GetSize () const override
 Returns the size in bytes of the memory.
 
const void * Get () const override
 Returns the raw memory pointer.
 
 adtf_memory_trivial_type (T *pValuePointer)
 
tResult Set (const void *pValue, size_t szSize) override
 Sets the Raw pointer memory.
 
size_t GetSize () const override
 Returns the size in bytes of the memory.
 
const void * Get () const override
 Returns the raw memory pointer.
 
 adtf_memory_trivial_type (T *pValuePointer)
 
tResult Set (const void *pValue, size_t szSize) override
 Sets the Raw pointer memory.
 
size_t GetSize () const override
 Returns the size in bytes of the memory.
 
const void * Get () const override
 Returns the raw memory pointer.
 
 adtf_memory_trivial_type (T *pValuePointer)
 
tResult Set (const void *pValue, size_t szSize) override
 Sets the Raw pointer memory.
 
size_t GetSize () const override
 Returns the size in bytes of the memory.
 
const void * Get () const override
 Returns the raw memory pointer.
 

Private Attributes

T * m_pAssignedValue = nullptr
 
T * m_pAssignedValue
 
T * m_pAssignedValue
 
T * m_pAssignedValue
 

Detailed Description

template<typename T>
class adtf::base::penguin::adtf_memory_trivial_type< T, typename std::enable_if< std::is_const< T >::value >::type >

Definition at line 347 of file rawmemory_base.h.

Constructor & Destructor Documentation

◆ adtf_memory_trivial_type() [1/4]

template<typename T>
adtf_memory_trivial_type ( T * pValuePointer)
inlineexplicit

Definition at line 351 of file rawmemory_base.h.

◆ adtf_memory_trivial_type() [2/4]

adtf_memory_trivial_type ( T * pValuePointer)
inlineexplicit

Definition at line 295 of file rawmemory_base.h.

◆ adtf_memory_trivial_type() [3/4]

adtf_memory_trivial_type ( T * pValuePointer)
inlineexplicit

Definition at line 295 of file rawmemory_base.h.

◆ adtf_memory_trivial_type() [4/4]

adtf_memory_trivial_type ( T * pValuePointer)
inlineexplicit

Definition at line 295 of file rawmemory_base.h.

Member Function Documentation

◆ Get() [1/4]

const void * Get ( ) const
inlineoverridevirtual

Returns the raw memory pointer.

Returns
the pointer to the raw memory.

Implements IRawMemory.

Definition at line 337 of file rawmemory_base.h.

◆ Get() [2/4]

const void * Get ( ) const
inlineoverridevirtual

Returns the raw memory pointer.

Returns
the pointer to the raw memory.

Implements IRawMemory.

Definition at line 337 of file rawmemory_base.h.

◆ Get() [3/4]

const void * Get ( ) const
inlineoverridevirtual

Returns the raw memory pointer.

Returns
the pointer to the raw memory.

Implements IRawMemory.

Definition at line 337 of file rawmemory_base.h.

◆ Get() [4/4]

template<typename T>
const void * Get ( ) const
inlineoverridevirtual

Returns the raw memory pointer.

Returns
the pointer to the raw memory.

Implements IRawMemory.

Definition at line 383 of file rawmemory_base.h.

◆ GetSize() [1/4]

size_t GetSize ( ) const
inlineoverridevirtual

Returns the size in bytes of the memory.

Returns
The size in bytes.

Implements IRawMemory.

Definition at line 325 of file rawmemory_base.h.

◆ GetSize() [2/4]

size_t GetSize ( ) const
inlineoverridevirtual

Returns the size in bytes of the memory.

Returns
The size in bytes.

Implements IRawMemory.

Definition at line 325 of file rawmemory_base.h.

◆ GetSize() [3/4]

size_t GetSize ( ) const
inlineoverridevirtual

Returns the size in bytes of the memory.

Returns
The size in bytes.

Implements IRawMemory.

Definition at line 325 of file rawmemory_base.h.

◆ GetSize() [4/4]

template<typename T>
size_t GetSize ( ) const
inlineoverridevirtual

Returns the size in bytes of the memory.

Returns
The size in bytes.

Implements IRawMemory.

Definition at line 371 of file rawmemory_base.h.

◆ Set() [1/4]

template<typename T>
tResult Set ( const void * ,
size_t  )
inlineoverridevirtual

Sets the Raw pointer memory.

Copy the content.

Parameters
[in]pValueraw memory pointer.
[in]szSizesize of memory to copy in bytes.
Returns
Standard Result Code.
Return values
ERR_MEMORYThe Memory does not fit.
ERR_POINTERInternal implementation error.

Implements IRawMemory.

Definition at line 363 of file rawmemory_base.h.

References RETURN_ERROR.

◆ Set() [2/4]

tResult Set ( const void * pValue,
size_t szSize )
inlineoverridevirtual

Sets the Raw pointer memory.

Copy the content.

Parameters
[in]pValueraw memory pointer.
[in]szSizesize of memory to copy in bytes.
Returns
Standard Result Code.
Return values
ERR_MEMORYThe Memory does not fit.
ERR_POINTERInternal implementation error.

Implements IRawMemory.

Definition at line 307 of file rawmemory_base.h.

◆ Set() [3/4]

tResult Set ( const void * pValue,
size_t szSize )
inlineoverridevirtual

Sets the Raw pointer memory.

Copy the content.

Parameters
[in]pValueraw memory pointer.
[in]szSizesize of memory to copy in bytes.
Returns
Standard Result Code.
Return values
ERR_MEMORYThe Memory does not fit.
ERR_POINTERInternal implementation error.

Implements IRawMemory.

Definition at line 307 of file rawmemory_base.h.

◆ Set() [4/4]

tResult Set ( const void * pValue,
size_t szSize )
inlineoverridevirtual

Sets the Raw pointer memory.

Copy the content.

Parameters
[in]pValueraw memory pointer.
[in]szSizesize of memory to copy in bytes.
Returns
Standard Result Code.
Return values
ERR_MEMORYThe Memory does not fit.
ERR_POINTERInternal implementation error.

Implements IRawMemory.

Definition at line 307 of file rawmemory_base.h.

Member Data Documentation

◆ m_pAssignedValue [1/4]

T* m_pAssignedValue
private

Definition at line 343 of file rawmemory_base.h.

◆ m_pAssignedValue [2/4]

T* m_pAssignedValue
private

Definition at line 343 of file rawmemory_base.h.

◆ m_pAssignedValue [3/4]

T* m_pAssignedValue
private

Definition at line 343 of file rawmemory_base.h.

◆ m_pAssignedValue [4/4]

template<typename T>
T* m_pAssignedValue = nullptr
private

Definition at line 388 of file rawmemory_base.h.