Base datapack class. More...
#include <datapack.h>
Public Member Functions | |
| DataPack (const std::string &name, const std::string &engineName, DATA_TYPE *data_) | |
| DataPack (const std::string &name, const std::string &engineName) | |
| DataPack (const DataPack &)=delete | |
| DataPack & | operator= (const DataPack &)=delete |
| DataPack (DataPack &&obj)=default | |
| DataPack & | operator= (DataPack &&)=default |
| const DATA_TYPE & | getData () const |
| Returns reference to data stored in the object. More... | |
| PyObject * | toPythonString () |
| Returns a python string representation of this object content. More... | |
| DataPackInterface * | clone () const override |
| Virtual clone method to support polymorphic copy. More... | |
Public Member Functions inherited from DataPackInterface | |
| DataPackInterface ()=default | |
| DataPackInterface (const DataPackInterface &)=default | |
| DataPackInterface & | operator= (const DataPackInterface &)=default |
| DataPackInterface (DataPackInterface &&obj)=default | |
| DataPackInterface & | operator= (DataPackInterface &&)=default |
| template<class DEV_ID_T > | |
| DataPackInterface (DEV_ID_T &&id) | |
| DataPackInterface (const std::string &name, const std::string &engineName, const std::string &type) | |
| virtual | ~DataPackInterface ()=default |
| const std::string & | name () const |
| void | setName (const std::string &name) |
| const std::string & | type () const |
| void | setType (const std::string &type) |
| const std::string & | engineName () const |
| void | setEngineName (const std::string &engineName) |
| const DataPackIdentifier & | id () const |
| void | setID (const DataPackIdentifier &id) |
| bool | isEmpty () const |
| Indicates if the datapack contains any data aside from datapack ID. More... | |
| bool | isUpdated () const |
| Indicates if the DataPack was created or received on the current simulation iteration. More... | |
| void | resetIsUpdated () const |
| Sets the isUpdated flag to false TODO This method is obviously non-const, it will be changed in NRRPLT-8589. More... | |
Static Public Member Functions | |
| static std::string | getType () |
| Returns type of the datapack class. More... | |
| static DataPackIdentifier | createID (const std::string &name, const std::string &engineName) |
| Creates a DataPackIdentifier object with type matching the DATA_TYPE used by the DataPack class. More... | |
| static void | create_python (const std::string &name) |
Additional Inherited Members | |
Public Types inherited from PtrTemplates< DataPackInterface > | |
| using | shared_ptr = std::shared_ptr< DataPackInterface > |
| using | const_shared_ptr = std::shared_ptr< const DataPackInterface > |
| using | unique_ptr = std::unique_ptr< DataPackInterface > |
| using | const_unique_ptr = std::unique_ptr< const DataPackInterface > |
Protected Member Functions inherited from DataPackInterface | |
| void | setIsEmpty (bool value) |
| DataPackInterface (const std::string &name, const std::string &engineName, const std::string &type, bool isUpdated) | |
Base datapack class.
The class must be specialized by providing a template argument. The argument defines what data class will be stored in the datapack objects.
|
inline |
|
inline |
|
inlineoverridevirtual |
Virtual clone method to support polymorphic copy.
Reimplemented from DataPackInterface.
|
inlinestatic |
|
inlinestatic |
Creates a DataPackIdentifier object with type matching the DATA_TYPE used by the DataPack class.
| [in] | name | Name of the datapack |
| [in] | name | Name of the engine to which the datapack belongs |
|
inline |
Returns reference to data stored in the object.
The function returns a read-only reference to the data stored by the object. This is the main accessor function of the DataPack object.
|
inlinestatic |
Returns type of the datapack class.
The function returns type of the datapack class as string. The return value is not human readable. It's an implementation-defined name of the DATA_TYPE used by the datapack.
|
delete |
|
default |
|
inline |
Returns a python string representation of this object content.