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

Public Member Functions

 cHashedValueGetter (tHashValueStorageType *pCurrent)
 
tResult Set (const IHashValueMapValue &oValue) override
 Sets the the Value. More...
 
tResult FromRaw (const IRawMemory &oRawValue)
 Implement to create a fast value copy in memory. More...
 
tResult ToRaw (IRawMemory &&oRawValue) const
 Implement to create a fast value copy in memory. More...
 
tType GetType () const override
 Retrieves the type of the Value. More...
 

Private Attributes

tHashValueStorageTypem_pCurrent
 

Additional Inherited Members

- Public Types inherited from IHashValueMapValue
enum  tType : uint8_t {
  HVT_Invalid = adtf::util::tVariantType::VT_Empty , HVT_Bool = adtf::util::tVariantType::VT_Bool , HVT_Int8 = adtf::util::tVariantType::VT_Int8 , HVT_UInt8 = adtf::util::tVariantType::VT_UInt8 ,
  HVT_Int16 = adtf::util::tVariantType::VT_Int16 , HVT_UInt16 = adtf::util::tVariantType::VT_UInt16 , HVT_Int32 = adtf::util::tVariantType::VT_Int32 , HVT_UInt32 = adtf::util::tVariantType::VT_UInt32 ,
  HVT_Float32 = adtf::util::tVariantType::VT_Float32 , HVT_Float64 = adtf::util::tVariantType::VT_Float64 , HVT_Int64 = adtf::util::tVariantType::VT_Int64 , HVT_UInt64 = adtf::util::tVariantType::VT_UInt64
}
 Enumeration of variant types for the HashValueMap Values. More...
 
- Protected Member Functions inherited from IHashValueMapValue
 ~IHashValueMapValue ()=default
 protected DTOR
 
- Protected Member Functions inherited from IRawValue
virtual ~IRawValue ()=default
 protected DTOR
 

Detailed Description

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

Definition at line 91 of file hashedvaluemap.h.

Member Function Documentation

◆ FromRaw()

tResult FromRaw ( const IRawMemory oRawValue)
inlinevirtual

Implement to create a fast value copy in memory.

Usually this method is called if types are equal implementation is within the same binary!

Parameters
oRawValue[in] Memory representation of the value
Return values
ERR_NOERRORSuccessfully copied.
ERR_MEMORYYou have to return ERR_MEMORY if size of oRawValue does not fit !!
any_errorDepends on the implementation.

Implements IRawValue.

Definition at line 103 of file hashedvaluemap.h.

References RETURN_ERROR.

◆ GetType()

tType GetType ( ) const
inlineoverridevirtual

Retrieves the type of the Value.

Returns
The type

Implements IHashValueMapValue.

Definition at line 113 of file hashedvaluemap.h.

◆ Set()

tResult Set ( const IHashValueMapValue oValue)
inlineoverridevirtual

Sets the the Value.

Returns
Error code
Return values
ERR_NOERRORsuccedded
ERR_INVALID_TYPEType not supported
anydepends on implementation.

Implements IHashValueMapValue.

Definition at line 99 of file hashedvaluemap.h.

References RETURN_ERROR.

◆ ToRaw()

tResult ToRaw ( IRawMemory &&  oRawValue) const
inlinevirtual

Implement to create a fast value copy in memory.

Usually this method is called if types are equal implementation is within the same binary!

Parameters
oRawValue[oRawValue] copy of the memory representation of the value
Return values
ERR_NOERRORSuccessfully copied.
any_errorDepends on the implementation. You are adviced to return the return value of IRawMemory::Set.

Implements IRawValue.

Definition at line 108 of file hashedvaluemap.h.