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,
108 #ifdef MOOSE_KOKKOS_ENABLED 126 template <
typename T,
typename... Args>
143 template <
typename T,
typename... Args>
158 template <
typename T,
typename... Args>
172 template <
typename T,
typename... Args>
188 template <
typename T,
typename... Args>
202 template <
typename T,
typename... Args>
204 const std::string & object_name,
219 template <
typename T,
typename... Args>
221 const std::string & object_name,
268 template <
typename T,
typename... Args>
271 Args &&... args)
const;
274 template <
typename T,
typename... Args>
278 return declareRestartableDataWithContext<T>(data_name,
nullptr, std::forward<Args>(args)...);
281 template <
typename T,
typename... Args>
288 declareRestartableDataHelper<T>(data_name, context, std::forward<Args>(args)...);
292 template <
typename T,
typename... Args>
296 return declareRestartableDataHelper<T>(data_name,
nullptr).
get();
299 template <
typename T,
typename... Args>
305 return declareRestartableDataHelper<T>(data_name, context, std::forward<Args>(args)...).set();
308 template <
typename T,
typename... Args>
312 Args &&... args)
const 321 std::make_unique<RestartableData<T>>(full_name, context, std::forward<Args>(args)...);
325 return restartable_data_ref;
328 template <
typename T,
typename... Args>
331 const std::string & object_name,
334 return declareRestartableDataWithObjectNameWithContext<T>(
335 data_name, object_name,
nullptr, std::forward<Args>(args)...);
338 template <
typename T,
typename... Args>
341 const std::string & object_name,
349 T &
value = declareRestartableDataWithContext<T>(data_name, context, std::forward<Args>(args)...);
356 template <
typename T,
typename... Args>
364 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.
ManagedValue(RestartableData< T > &value)
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.
~ManagedValue()
Destructor.
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".