Concrete definition of a parameter value for a specified type. More...
#include <ControlData.h>
Public Member Functions | |
ControlData (MooseApp &moose_app, std::string name) | |
Constructor. More... | |
const T & | get () const |
const T & | getOld () const |
T & | set () |
virtual std::string | type () override |
String identifying the type of parameter stored. More... | |
virtual void | copyValuesBack () override |
Copy the current value into old (i.e. 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... | |
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 |
Private Attributes | |
T & | _value |
Stored value. More... | |
T & | _value_old |
Stored old value. More... | |
Concrete definition of a parameter value for a specified type.
Definition at line 91 of file ControlData.h.
|
inline |
Constructor.
name | The full (unique) name for this piece of data. |
Definition at line 98 of file ControlData.h.
|
inlineoverridevirtual |
Copy the current value into old (i.e.
shift it "back in time")
Implements ControlDataValue.
Definition at line 145 of file ControlData.h.
|
inline |
Definition at line 108 of file ControlData.h.
Referenced by THMControl::getControlDataByName(), RealControlDataValuePostprocessor::getValue(), BoolControlDataValuePostprocessor::getValue(), and THMParsedFunctionWrapper::initialize().
|
inlineinherited |
Get the pointer to the control object that declared this control data.
Definition at line 55 of file ControlData.h.
Referenced by Simulation::controlDataIntegrityCheck().
|
inlineinherited |
Get the declared state.
Definition at line 70 of file ControlData.h.
Referenced by Simulation::declareControlData().
|
inline |
Definition at line 113 of file ControlData.h.
Referenced by THMControl::getControlDataOldByName().
|
inlineinherited |
The full (unique) name of this particular piece of data.
Definition at line 50 of file ControlData.h.
|
inline |
Definition at line 118 of file ControlData.h.
Referenced by THMControl::declareComponentControlData(), and THMControl::declareControlData().
|
inlineinherited |
Set the pointer to the control object that declared this control data.
Definition at line 60 of file ControlData.h.
Referenced by Simulation::declareControlData().
|
inlineinherited |
Mark the data as declared.
Definition at line 65 of file ControlData.h.
Referenced by Simulation::declareControlData().
|
inlineoverridevirtual |
String identifying the type of parameter stored.
Implements ControlDataValue.
Definition at line 138 of file ControlData.h.
|
protectedinherited |
The control object that declared this control data.
Definition at line 83 of file ControlData.h.
Referenced by ControlDataValue::getControl(), and ControlDataValue::setControl().
|
protectedinherited |
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 ControlDataValue::getDeclared(), and ControlDataValue::setDeclared().
|
protectedinherited |
The full (unique) name of this particular piece of data.
Definition at line 79 of file ControlData.h.
Referenced by ControlDataValue::name().
|
private |
Stored value.
Definition at line 129 of file ControlData.h.
Referenced by ControlData< Real >::get(), and ControlData< Real >::set().
|
private |
Stored old value.
Definition at line 131 of file ControlData.h.
Referenced by ControlData< Real >::getOld().