ADTF
Loading...
Searching...
No Matches
adtf::base::cRawMemoryRedirect Class Reference

#include <rawmemory_intf.h>

Inherits adtf::base::ant::IRawMemory.

Public Member Functions

 cRawMemoryRedirect (std::function< tResult(const IRawMemory &)> fnForward)
 
tResult Set (const void *pValue, size_t szSize) override
 
size_t GetSize () const override
 
const void * Get () const override
 

Detailed Description

Redirects the IRawMemory interface to a given std::function. This can be used to implement visit functionalities.

Member Function Documentation

◆ Get()

const void * adtf::base::spider::cRawMemoryRedirect::Get ( ) const
inlineoverridevirtual

Returns the raw memory pointer.

Returns
the pointer to the raw memory.

Implements adtf::base::ant::IRawMemory.

◆ GetSize()

size_t adtf::base::spider::cRawMemoryRedirect::GetSize ( ) const
inlineoverridevirtual

Returns the size in bytes of the memory.

Returns
The size in bytes.

Implements adtf::base::ant::IRawMemory.

◆ Set()

tResult adtf::base::spider::cRawMemoryRedirect::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 adtf::base::ant::IRawMemory.


The documentation for this class was generated from the following file: