45 virtual std::string
type() = 0;
123 virtual std::string
type()
override;
136 template <
typename T>
140 return typeid(T).
name();
143 template <
typename T>
Abstract definition of a ControlData value.
void setDeclared()
Mark the data as declared.
virtual void copyValuesBack()=0
Copy the current value into old (i.e.
bool _declared
true if the data was declared by calling declareControlData. All data must be declared up front...
T & _value_old
Stored old value.
T & declareRestartableData(const std::string &data_name, Args &&... args)
virtual std::string type()=0
String identifying the type of parameter stored.
virtual std::string type() override
String identifying the type of parameter stored.
ControlData(MooseApp &moose_app, std::string name)
Constructor.
Concrete definition of a parameter value for a specified type.
bool getDeclared()
Get the declared state.
const THMControl * getControl() const
Get the pointer to the control object that declared this control data.
const std::string _name
The full (unique) name of this particular piece of data.
void setControl(THMControl *ctrl)
Set the pointer to the control object that declared this control data.
virtual void copyValuesBack() override
Copy the current value into old (i.e.
THMControl * _control
The control object that declared this control data.
const std::string & name() const
The full (unique) name of this particular piece of data.
ControlDataValue(MooseApp &moose_app, const std::string &name)
Constructor.
virtual ~ControlDataValue()=default
Destructor.