|
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 |
Public Types inherited from ml::Base | |
| 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. | |
| ParameterInfo (DataType &&otherData) | |
| Allow to move data on construction. | |
| ParameterInfo (std::initializer_list< std::pair< KeyType, ValueType > > listOfKeyValuePairs) | |
| For convenience, allow initialization via { { "key1", value1 }, { "key2", value2 }, ... }. | |
| bool | operator== (const ParameterInfo &other) const |
| For some reason necessary, although trivial. | |
Public Member Functions inherited from ml::Base | |
| Base () | |
| Constructor. | |
| virtual | ~Base () |
| Destructor. | |
| virtual Base * | deepCopy () const |
| Creates a deep copy of the given object. | |
| 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. | |
| virtual bool | isRefCountedBase () const |
| Returns whether the instance is derived from RefCountedBase. | |
| virtual std::string | detailString () const |
| Returns a string describing this object. | |
| virtual bool | implementsPersistence (PersistenceInterface) const |
| Override this method to declare which persistence interfaces are implemented by your derived class. | |
| virtual std::string | persistentState () const |
| Returns a string describing the object's internal state. | |
| virtual void | setPersistentState (const std::string &state) |
| Restores the object's internal state from a string that had been previously generated using persistentState(). | |
| virtual void | addStateToTree (TreeNode *) const |
| Attaches the object state as children of the given parent node. | |
| virtual void | readStateFromTree (TreeNode *) |
| Reads the object state from the children of the given parent node. | |
| virtual void | writeTo (AbstractPersistenceOutputStream *) const |
| Writes the objects state to the data stream object. | |
| virtual void | readFrom (AbstractPersistenceInputStream *, int) |
| Reads the objects state from the data stream object. | |
Public Attributes | |
| DataType | data |
| Use the public data member to interact with the contents, ParameterInfo is just the Base wrapper for it. | |
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.