template<typename T>
struct adtf::base::ant::adtf_memory_forward< T >
Concept template class for non trivial penguin::adtf_memory types of type T to specialize the usage of adtf_memory<T>.
- Template Parameters
-
Following methods needs to be implemented:
const size_t szStaticSize,
const void* pValueToSet,
const size_t szSizeToSet);
static const void*
GetPtr(
const T* pAssignValue);
static size_t GetSize(
const T* pAssignValue,
const size_t szStaticSize);
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
static size_t GetSize(const T *pAssignValue, const size_t szStaticSize)
Definition rawmemory_base.h:137
static tResult Assign(T *pAssignValue, const size_t szStaticSize, const void *pValueToSet, const size_t szSizeToSet)
Definition rawmemory_base.h:105
static const void * GetPtr(const T *pAssignValue)
Definition rawmemory_base.h:121
Example for the adtf_util::cMemoryBlock :
template <>
{
public:
const size_t szStaticSize,
const void* pValueToSet,
const size_t szSizeToSet)
{
return pAssignValue->Set(pValueToSet, szSizeToSet);
}
static const void* GetPtr(const adtf_util::cMemoryBlock* pAssignValue)
{
return pAssignValue->GetPtr();
}
static size_t GetSize(const adtf_util::cMemoryBlock* pAssignValue, const size_t szStaticSize)
{
return static_cast<tSize>(pAssignValue->GetSize());
}
};
Definition rawmemory_base.h:91