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;
72 void dataStore(std::ostream & stream, Eigen::LLT<RealEigenMatrix> & decomp,
void * context);
74 void dataLoad(std::istream & stream, Eigen::LLT<RealEigenMatrix> & decomp,
void * context);
76 template <
typename T,
typename... Args>
83 template <
typename T,
typename... Args>
void dataLoad(std::istream &stream, Eigen::LLT< RealEigenMatrix > &decomp, void *context)
const FileName & getModelDataFileName() const
Get the associated filename.
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...
const std::string _model_meta_data_name
The model meta data name.
const T & getModelData(const std::string &data_name, Args &&... args) const
Retrieve model data from the interface.
bool hasModelData() const
Check if we need to load model data (if the filename parameter is used)
static InputParameters validParams()
const MooseObject & _model_object
Reference to the MooseObject that uses this interface.
T & declareModelData(const std::string &data_name, Args &&... args)
Declare model data for loading from file as well as restart.
const std::string & modelMetaDataName() const
Accessor for the name of the model meta data.
RestartableModelInterface(const MooseObject &object, const bool read_only, const std::string &meta_data_name)
void dataStore(std::ostream &stream, Eigen::LLT< RealEigenMatrix > &decomp, void *context)
A class which creates public interface functions for declaring and getting restartable data...
PublicRestartable _model_restartable
Member for interfacing with the framework's restartable system.
An interface class which manages the model data save and load functionalities from moose objects (suc...