ADTF  3.18.2
hash_value_map< STORAGE, INTERFACE >::cHashedValueSetter
Inheritance diagram for hash_value_map< STORAGE, INTERFACE >::cHashedValueSetter:
[legend]

Public Member Functions

 cHashedValueSetter (tHashValueStorageType *pCurrent)
 
tResult Set (const void *pData, size_t szSize) override
 Sets the Raw pointer memory. More...
 
const void * Get () const override
 Returns the raw memory pointer. More...
 
size_t GetSize () const override
 Returns the size in bytes of the memory. More...
 

Private Attributes

tHashValueStorageTypem_pCurrent
 

Detailed Description

template<typename STORAGE = adtf::util::cMemoryBlock, typename INTERFACE = IHashValueMap>
class adtf::base::ant::hash_value_map< STORAGE, INTERFACE >::cHashedValueSetter

Definition at line 60 of file hashedvaluemap.h.

Member Function Documentation

◆ Get()

const void* Get ( ) const
inlineoverridevirtual

Returns the raw memory pointer.

Returns
the pointer to the raw memory.

Implements IRawMemory.

Definition at line 81 of file hashedvaluemap.h.

◆ GetSize()

size_t GetSize ( ) const
inlineoverridevirtual

Returns the size in bytes of the memory.

Returns
The size in bytes.

Implements IRawMemory.

Definition at line 85 of file hashedvaluemap.h.

◆ Set()

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 67 of file hashedvaluemap.h.

References RETURN_ERROR, and RETURN_NOERROR.