ADTF
|
Info Map for the datamodel to hold a set of optional IInfo instances. More...
Public Member Functions | |
InfoMap ()=default | |
CTOR. | |
InfoMap (const InfoMap &) | |
copy CTOR More... | |
InfoMap (InfoMap &&) | |
move CTOR More... | |
InfoMap & | operator= (const InfoMap &) |
copy assignment operator More... | |
InfoMap & | operator= (InfoMap &&) |
move assignment operator More... | |
template<typename INFO_T > | |
const INFO_T * | getInfo () const |
Get the Info Pointer. More... | |
template<typename INFO_T > | |
INFO_T * | getInfo () |
Get the Info Pointer. More... | |
template<typename INFO_T > | |
void | setInfo (const std::shared_ptr< INFO_T > &info) |
Set the Info object as shared pointer. More... | |
Private Member Functions | |
IInfo * | getInfo (uint8_t info_type) |
const IInfo * | getInfo (uint8_t info_type) const |
void | setInfo (const std::shared_ptr< IInfo > &info) |
Private Attributes | |
std::unordered_map< uint8_t, std::shared_ptr< IInfo > > | _infos |
Info Map for the datamodel to hold a set of optional IInfo instances.
Only one instance of one Info type is possible.
Definition at line 75 of file infomodel_base.h.
|
inline |
Get the Info Pointer.
INFO_T | The Info type class type to retrieve. |
Definition at line 127 of file infomodel_base.h.
References InfoMap::getInfo().
|
inline |
Get the Info Pointer.
INFO_T | The Info type class type to retrieve. |
Definition at line 116 of file infomodel_base.h.
Referenced by InfoMap::getInfo().
copy assignment operator
Definition at line 96 of file infomodel_base.h.
move assignment operator
Definition at line 105 of file infomodel_base.h.
|
inline |
Set the Info object as shared pointer.
INFO_T | The Info type class type to set. |
info | the info pointer to set. |
ddl::dd::Error | if samething went wrong while setting the info. |
Definition at line 139 of file infomodel_base.h.