Abstract definition of a ControlData value. More...
#include <ControlData.h>
Public Member Functions | |
ControlDataValue (MooseApp &moose_app, const std::string &name) | |
Constructor. More... | |
virtual | ~ControlDataValue ()=default |
Destructor. More... | |
virtual std::string | type ()=0 |
String identifying the type of parameter stored. More... | |
const std::string & | name () const |
The full (unique) name of this particular piece of data. More... | |
const THMControl * | getControl () const |
Get the pointer to the control object that declared this control data. More... | |
void | setControl (THMControl *ctrl) |
Set the pointer to the control object that declared this control data. More... | |
void | setDeclared () |
Mark the data as declared. More... | |
bool | getDeclared () |
Get the declared state. More... | |
virtual void | copyValuesBack ()=0 |
Copy the current value into old (i.e. More... | |
Protected Member Functions | |
T & | declareRestartableData (const std::string &data_name, Args &&... args) |
ManagedValue< T > | declareManagedRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args) |
const T & | getRestartableData (const std::string &data_name) const |
T & | declareRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args) |
T & | declareRecoverableData (const std::string &data_name, Args &&... args) |
T & | declareRestartableDataWithObjectName (const std::string &data_name, const std::string &object_name, Args &&... args) |
T & | declareRestartableDataWithObjectNameWithContext (const std::string &data_name, const std::string &object_name, void *context, Args &&... args) |
std::string | restartableName (const std::string &data_name) const |
Protected Attributes | |
const std::string | _name |
The full (unique) name of this particular piece of data. More... | |
bool | _declared |
true if the data was declared by calling declareControlData. All data must be declared up front. More... | |
THMControl * | _control |
The control object that declared this control data. More... | |
MooseApp & | _restartable_app |
const std::string | _restartable_system_name |
const THREAD_ID | _restartable_tid |
const bool | _restartable_read_only |
Abstract definition of a ControlData value.
Definition at line 20 of file ControlData.h.
|
inline |
Constructor.
moose_app | MOOSEApp object this object belong to |
name | The full (unique) name for this piece of data. |
Definition at line 28 of file ControlData.h.
|
virtualdefault |
Destructor.
|
pure virtual |
Copy the current value into old (i.e.
shift it "back in time")
Implemented in ControlData< T >, ControlData< bool >, and ControlData< Real >.
|
inline |
Get the pointer to the control object that declared this control data.
Definition at line 55 of file ControlData.h.
Referenced by Simulation::controlDataIntegrityCheck().
|
inline |
Get the declared state.
Definition at line 70 of file ControlData.h.
Referenced by Simulation::declareControlData().
|
inline |
The full (unique) name of this particular piece of data.
Definition at line 50 of file ControlData.h.
|
inline |
Set the pointer to the control object that declared this control data.
Definition at line 60 of file ControlData.h.
Referenced by Simulation::declareControlData().
|
inline |
Mark the data as declared.
Definition at line 65 of file ControlData.h.
Referenced by Simulation::declareControlData().
|
pure virtual |
String identifying the type of parameter stored.
Must be reimplemented in derived classes.
Implemented in ControlData< T >, ControlData< bool >, and ControlData< Real >.
|
protected |
The control object that declared this control data.
Definition at line 83 of file ControlData.h.
Referenced by getControl(), and setControl().
|
protected |
true if the data was declared by calling declareControlData. All data must be declared up front.
Definition at line 81 of file ControlData.h.
Referenced by getDeclared(), and setDeclared().
|
protected |
The full (unique) name of this particular piece of data.
Definition at line 79 of file ControlData.h.
Referenced by name().