26 const std::string & meta_data_name);
33 template <
typename T,
typename... Args>
42 template <
typename T,
typename... Args>
43 const T &
getModelData(
const std::string & data_name, Args &&... args)
const;
71template <
typename T,
typename... Args>
78template <
typename T,
typename... Args>
A class which creates public interface functions for declaring and getting restartable data.
T & declareRestartableData(const std::string &data_name, Args &&... args)
Declare a piece of data as "restartable" and initialize it.
const T & getRestartableData(const std::string &data_name) const
Declare a piece of data as "restartable" and initialize it Similar to declareRestartableData but retu...
An interface class which manages the model data save and load functionalities from moose objects (suc...
const std::string & modelMetaDataName() const
Accessor for the name of the model meta data.
PublicRestartable _model_restartable
Member for interfacing with the framework's restartable system.
T & declareModelData(const std::string &data_name, Args &&... args)
Declare model data for loading from file as well as restart.
const MooseObject & _model_object
Reference to the MooseObject that uses this interface.
const std::string _model_meta_data_name
The model meta data name.
bool hasModelData() const
Check if we need to load model data (if the filename parameter is used)
const T & getModelData(const std::string &data_name, Args &&... args) const
Retrieve model data from the interface.
const FileName & getModelDataFileName() const
Get the associated filename.
static InputParameters validParams()