ADTF
|
The hashed vlaue table store interface to set and retrieve values via a hash key. More...
Public Types | |
using | tHashKey = adtf::util::cStringUtil::tHashKey32 |
Type for the HashKey of the Value. | |
Public Member Functions | |
virtual bool | Exists (const tHashKey &oKey) const =0 |
Tests is a value for the oKey exists. More... | |
virtual tResult | Get (IHashValueMap &oHashMap) const =0 |
Copy operation to the oHashMap . More... | |
virtual tResult | GetValue (const tHashKey &oHashKey, IHashValueMapValue &oValue) const =0 |
Retrieves the value for the hash key oHashKey to oValue if exists. More... | |
virtual tResult | SetValue (const tHashKey &oHashKey, const IHashValueMapValue &oValue)=0 |
Sets or resets the value for the hash key oHashKey as copy of oValue . More... | |
virtual bool | IsEmpty () const =0 |
Tests if value map is empty. More... | |
virtual void | Reset ()=0 |
Clears the value map. | |
virtual uint8_t | GetRawMemoryLayoutVersion () const =0 |
Return the Version of the memory layout used to store the values. More... | |
Public Member Functions inherited from IRawValue | |
virtual tResult | FromRaw (const IRawMemory &oRawValue)=0 |
Implement to create a fast value copy in memory. More... | |
virtual tResult | ToRaw (IRawMemory &&oRawValue) const =0 |
Implement to create a fast value copy in memory. More... | |
Protected Member Functions | |
virtual | ~IHashValueMap ()=default |
protected DTOR | |
Protected Member Functions inherited from IRawValue | |
virtual | ~IRawValue ()=default |
protected DTOR | |
The hashed vlaue table store interface to set and retrieve values via a hash key.
The hash can be generated by create_hash_value_key.
hashed_value_map
to implement !! Definition at line 79 of file hashedvaluemap_intf.h.
|
pure virtual |
Tests is a value for the oKey
exists.
[in] | oKey | hash key to check. |
true | value exists |
false | value does not exists |
Implemented in hash_value_map< STORAGE, INTERFACE >.
|
pure virtual |
Copy operation to the oHashMap
.
[in] | oHashMap | hash map to copy values to another hash map |
ERR_NOERROR | copy operation succeeded |
ERR_MEMORY | IRawValue::FromRaw or SetValue returned error |
Implemented in hash_value_map< STORAGE, INTERFACE >.
|
pure virtual |
Return the Version of the memory layout used to store the values.
Implemented in hash_value_map< STORAGE, INTERFACE >.
Referenced by hash_value_map< STORAGE, INTERFACE >::Get().
|
pure virtual |
Retrieves the value for the hash key oHashKey
to oValue
if exists.
[in] | oHashKey | hashkey |
[out] | oValue | value |
ERR_NOERROR | succedded |
ERR_INVALID_TYPE | Type not supported |
any | depends on implementation of IHashedValue. |
Implemented in hash_value_map< STORAGE, INTERFACE >.
|
pure virtual |
Tests if value map is empty.
false | values exist |
true | no values exist, map is empty. |
Implemented in hash_value_map< STORAGE, INTERFACE >.
|
pure virtual |
Sets or resets the value for the hash key oHashKey
as copy of oValue
.
[in] | oHashKey | hashkey |
[in] | oValue | value to set |
ERR_NOERROR | copy operation succeeded |
ERR_MEMORY | IRawValue::FromRaw returned error |
Implemented in hash_value_map< STORAGE, INTERFACE >.
Referenced by hash_value_map< STORAGE, INTERFACE >::Get().