Wrapper class for DataPacks with no name and no engine association. More...
#include <datapack.h>
Public Member Functions | |
RawData () | |
![]() | |
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... | |
![]() | |
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 void | create_python (const std::string &name) |
![]() | |
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 | |
![]() | |
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 > |
![]() | |
void | setIsEmpty (bool value) |
DataPackInterface (const std::string &name, const std::string &engineName, const std::string &type, bool isUpdated) | |
Wrapper class for DataPacks with no name and no engine association.
Technically it's possible to alias the DataPack class with two different Python names, for example JsonDataPack and JsonRawData, but in that case boost::python will complain about duplicated converter functions. Having this thin wrapper/alias class prevents that.
|
inlinestatic |