17 class PostprocessorData;
57 const T &
get()
const {
return _value.get(); }
102 const std::string & name,
103 const std::string & system_name,
105 const bool read_only =
false,
119 template <
typename T,
typename... Args>
136 template <
typename T,
typename... Args>
151 template <
typename T,
typename... Args>
165 template <
typename T,
typename... Args>
181 template <
typename T,
typename... Args>
195 template <
typename T,
typename... Args>
197 const std::string & object_name,
212 template <
typename T,
typename... Args>
214 const std::string & object_name,
261 template <
typename T,
typename... Args>
264 Args &&... args)
const;
267 template <
typename T,
typename... Args>
271 return declareRestartableDataWithContext<T>(data_name,
nullptr, std::forward<Args>(args)...);
274 template <
typename T,
typename... Args>
281 declareRestartableDataHelper<T>(data_name, context, std::forward<Args>(args)...);
285 template <
typename T,
typename... Args>
289 return declareRestartableDataHelper<T>(data_name,
nullptr).
get();
292 template <
typename T,
typename... Args>
298 return declareRestartableDataHelper<T>(data_name, context, std::forward<Args>(args)...).set();
301 template <
typename T,
typename... Args>
305 Args &&... args)
const 314 std::make_unique<RestartableData<T>>(full_name, context, std::forward<Args>(args)...);
318 return restartable_data_ref;
321 template <
typename T,
typename... Args>
324 const std::string & object_name,
327 return declareRestartableDataWithObjectNameWithContext<T>(
328 data_name, object_name,
nullptr, std::forward<Args>(args)...);
331 template <
typename T,
typename... Args>
334 const std::string & object_name,
342 T &
value = declareRestartableDataWithContext<T>(data_name, context, std::forward<Args>(args)...);
349 template <
typename T,
typename... Args>
357 return declareRestartableDataWithContext<T>(data_name,
nullptr, std::forward<Args>(args)...);
A class for creating restricted objects.
RestartableData< T > & _value
The underlying data.
Wrapper class for restartable data that is "managed.
std::string restartableName(const std::string &data_name) const
Gets the name of a piece of restartable data given a data name, adding the system name and object nam...
T & declareRestartableDataWithContext(const std::string &data_name, void *context, Args &&... args)
Declare a piece of data as "restartable" and initialize it.
Base class for MOOSE-based applications.
T & declareRestartableData(const std::string &data_name, Args &&... args)
Declare a piece of data as "restartable" and initialize it.
std::string _restartable_name
The name of the object.
RestartableData< T > & declareRestartableDataHelper(const std::string &data_name, void *context, Args &&... args) const
Helper function for declaring restartable data.
const std::string _restartable_system_name
The system name this object is in.
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
RESTARTABLE_FILTER
The filter type applied to a particular piece of "restartable" data.
Every object that can be built by the factory should be derived from this class.
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
const T & getRestartableData(const std::string &data_name) const
Declare a piece of data as "restartable" and initialize it Similar to declareRestartableData but retu...
ManagedValue< T > declareManagedRestartableDataWithContext(const std::string &data_name, void *context, Args &&... args)
Declares a piece of "managed" restartable data and initialize it.
Restartable(const MooseObject *moose_object, const std::string &system_name)
Class constructor.
Generic class for solving transient nonlinear problems.
std::string RestartableDataMapName
Concrete definition of a parameter value for a specified type.
T & declareRestartableDataWithObjectNameWithContext(const std::string &data_name, const std::string &object_name, void *context, Args &&... args)
Declare a piece of data as "restartable".
void registerRestartableNameWithFilterOnApp(const std::string &name, Moose::RESTARTABLE_FILTER filter)
Helper function for actually registering the restartable data.
const THREAD_ID _restartable_tid
The thread ID for this object.
T & declareRecoverableData(const std::string &data_name, Args &&... args)
Declare a piece of data as "recoverable" and initialize it.
const bool _restartable_read_only
Flag for toggling read only status (see ReporterData)
const RestartableDataMapName _metaname
Restartable metadata name.
MooseApp & _restartable_app
Reference to the application.
Abstract definition of a RestartableData value.
RestartableDataValue & registerRestartableDataOnApp(std::unique_ptr< RestartableDataValue > data, THREAD_ID tid) const
Helper function for actually registering the restartable data.
T & declareRestartableDataWithObjectName(const std::string &data_name, const std::string &object_name, Args &&... args)
Declare a piece of data as "restartable".