Concrete definition of a parameter value for a specified type. More...
#include <RestartableData.h>
Public Member Functions | |
RestartableData (std::string name, void *context) | |
Constructor. More... | |
T & | get () |
T & | set () |
virtual std::string | type () override |
String identifying the type of parameter stored. More... | |
virtual void | swap (RestartableDataValue *rhs) override |
Swap. More... | |
virtual void | store (std::ostream &stream) override |
Store the RestartableData into a binary stream. More... | |
virtual void | load (std::istream &stream) override |
Load the RestartableData from a binary stream. More... | |
std::string | name () |
The full (unique) name of this particular piece of data. More... | |
void * | context () |
A context pointer for helping with load / store. More... | |
Protected Attributes | |
std::string | _name |
The full (unique) name of this particular piece of data. More... | |
void * | _context |
A context pointer for helping with load and store. More... | |
Private Attributes | |
std::unique_ptr< T > | _value_ptr |
Stored value. More... | |
Concrete definition of a parameter value for a specified type.
Definition at line 76 of file RestartableData.h.
|
inline |
Constructor.
name | The full (unique) name for this piece of data. |
context | 'typeless' pointer to user-specific data. |
Definition at line 84 of file RestartableData.h.
|
inlineinherited |
|
inline |
Definition at line 92 of file RestartableData.h.
Referenced by MeshGenerator::declareMeshProperty(), Restartable::declareRestartableDataWithContext(), and MeshMetaDataInterface::getMeshProperty().
|
inlineoverridevirtual |
Load the RestartableData from a binary stream.
Implements RestartableDataValue.
Definition at line 151 of file RestartableData.h.
|
inlineinherited |
The full (unique) name of this particular piece of data.
Definition at line 50 of file RestartableData.h.
|
inline |
Definition at line 97 of file RestartableData.h.
Referenced by Restartable::declareRestartableDataWithContext().
|
inlineoverridevirtual |
Store the RestartableData into a binary stream.
Implements RestartableDataValue.
Definition at line 143 of file RestartableData.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
String identifying the type of parameter stored.
Implements RestartableDataValue.
Definition at line 128 of file RestartableData.h.
|
protectedinherited |
A context pointer for helping with load and store.
Definition at line 68 of file RestartableData.h.
Referenced by RestartableDataValue::context().
|
protectedinherited |
The full (unique) name of this particular piece of data.
Definition at line 65 of file RestartableData.h.
Referenced by RestartableDataValue::name().
|
private |
Stored value.
Definition at line 121 of file RestartableData.h.
Referenced by RestartableData< T >::get(), RestartableData< T >::RestartableData(), and RestartableData< T >::set().