MeVisLab Toolbox Reference
ml::ParameterInfo Class 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>

Inheritance diagram for ml::ParameterInfo:
ml::Base

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 BasedeepCopy () const
 Set addStateToTree version number that can be accessed via getAddStateVersion()
 
bool isOfAllowedType (const std::vector< const RuntimeType * > &types) const
 Check if this object's type is equal to or derived from one of the types given in the argument.
 
virtual bool isRefCountedBase () const
 Returns if the instance is derived from RefCountedBase.
 
virtual std::string detailString () const
 Return 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
 Write the objects state to the data stream object.
 
virtual void readFrom (AbstractPersistenceInputStream *, int)
 Read 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.
 

Detailed Description

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.

Member Typedef Documentation

◆ DataType

◆ KeyType

◆ ValueType

Constructor & Destructor Documentation

◆ ParameterInfo() [1/4]

ml::ParameterInfo::ParameterInfo ( )
default

◆ ParameterInfo() [2/4]

ml::ParameterInfo::ParameterInfo ( const DataType & otherData)
explicit

Allow initialization from a data object.

◆ ParameterInfo() [3/4]

ml::ParameterInfo::ParameterInfo ( DataType && otherData)

Allow to move data on construction.

◆ ParameterInfo() [4/4]

ml::ParameterInfo::ParameterInfo ( std::initializer_list< std::pair< KeyType, ValueType > > listOfKeyValuePairs)

For convenience, allow initialization via { { "key1", value1 }, { "key2", value2 }, ... }.

Member Function Documentation

◆ operator==()

bool ml::ParameterInfo::operator== ( const ParameterInfo & other) const

For some reason necessary, although trivial.

Member Data Documentation

◆ data

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.


The documentation for this class was generated from the following file: