MeVisLab Toolbox Reference
|
We would normally co-derive from QVariantMap, but this turned out to cause at least linker problems down the line, so we just hold the data. More...
#include <mlParameterInfo.h>
Public Types | |
typedef QVariantMap | DataType |
typedef QString | KeyType |
typedef QVariant | ValueType |
![]() | |
enum | PersistenceInterface { PersistenceByString , PersistenceByTreeNode , PersistenceByStream } |
This enum describes the different persistence interfaces available. More... | |
Public Member Functions | |
ParameterInfo ()=default | |
ParameterInfo (const DataType &otherData) | |
Allow initialization from a data object. More... | |
ParameterInfo (DataType &&otherData) | |
Allow to move data on construction. More... | |
ParameterInfo (std::initializer_list< std::pair< KeyType, ValueType > > listOfKeyValuePairs) | |
For convenience, allow initialization via { { "key1", value1 }, { "key2", value2 }, ... }. More... | |
bool | operator== (const ParameterInfo &other) const |
For some reason necessary, although trivial. More... | |
![]() | |
Base () | |
Constructor. More... | |
virtual | ~Base () |
Destructor. More... | |
virtual Base * | deepCopy () const |
Creates a deep copy of the given object. More... | |
bool | isOfAllowedType (const std::vector< const RuntimeType * > &types) const |
Checks whether this object's type is equal to or derived from one of the types given in the argument. More... | |
virtual bool | isRefCountedBase () const |
Returns whether the instance is derived from RefCountedBase. More... | |
virtual std::string | detailString () const |
Returns a string describing this object. More... | |
virtual bool | implementsPersistence (PersistenceInterface) const |
Override this method to declare which persistence interfaces are implemented by your derived class. More... | |
virtual std::string | persistentState () const |
Returns a string describing the object's internal state. More... | |
virtual void | setPersistentState (const std::string &state) |
Restores the object's internal state from a string that had been previously generated using persistentState(). More... | |
virtual void | addStateToTree (TreeNode *) const |
Attaches the object state as children of the given parent node. More... | |
virtual void | readStateFromTree (TreeNode *) |
Reads the object state from the children of the given parent node. More... | |
virtual void | writeTo (AbstractPersistenceOutputStream *) const |
Writes the objects state to the data stream object. More... | |
virtual void | readFrom (AbstractPersistenceInputStream *, int) |
Reads the objects state from the data stream object. More... | |
Public Attributes | |
DataType | data |
Use the public data member to interact with the contents, ParameterInfo is just the Base wrapper for it. More... | |
We would normally co-derive from QVariantMap, but this turned out to cause at least linker problems down the line, so we just hold the data.
Definition at line 20 of file mlParameterInfo.h.
typedef QVariantMap ml::ParameterInfo::DataType |
Definition at line 24 of file mlParameterInfo.h.
typedef QString ml::ParameterInfo::KeyType |
Definition at line 25 of file mlParameterInfo.h.
typedef QVariant ml::ParameterInfo::ValueType |
Definition at line 26 of file mlParameterInfo.h.
|
default |
|
explicit |
Allow initialization from a data object.
ml::ParameterInfo::ParameterInfo | ( | DataType && | otherData | ) |
Allow to move data on construction.
ml::ParameterInfo::ParameterInfo | ( | std::initializer_list< std::pair< KeyType, ValueType > > | listOfKeyValuePairs | ) |
For convenience, allow initialization via { { "key1", value1 }, { "key2", value2 }, ... }.
bool ml::ParameterInfo::operator== | ( | const ParameterInfo & | other | ) | const |
For some reason necessary, although trivial.
DataType ml::ParameterInfo::data |
Use the public data member to interact with the contents, ParameterInfo is just the Base wrapper for it.
Definition at line 29 of file mlParameterInfo.h.