17class PostprocessorData;
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;
274template <
typename T,
typename... Args>
278 return declareRestartableDataWithContext<T>(data_name,
nullptr, std::forward<Args>(args)...);
281template <
typename T,
typename... Args>
288 declareRestartableDataHelper<T>(data_name, context, std::forward<Args>(args)...);
292template <
typename T,
typename... Args>
296 return declareRestartableDataHelper<T>(data_name,
nullptr).get();
299template <
typename T,
typename... Args>
305 return declareRestartableDataHelper<T>(data_name, context, std::forward<Args>(args)...).set();
308template <
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;
328template <
typename T,
typename... Args>
331 const std::string & object_name,
334 return declareRestartableDataWithObjectNameWithContext<T>(
335 data_name, object_name,
nullptr, std::forward<Args>(args)...);
338template <
typename T,
typename... Args>
341 const std::string & object_name,
349 T & value = declareRestartableDataWithContext<T>(data_name, context, std::forward<Args>(args)...);
356template <
typename T,
typename... Args>
364 return declareRestartableDataWithContext<T>(data_name,
nullptr, std::forward<Args>(args)...);
std::string RestartableDataMapName
Base class for MOOSE-based applications.
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Every object that can be built by the factory should be derived from this class.
Abstract definition of a RestartableData value.
Concrete definition of a parameter value for a specified type.
Wrapper class for restartable data that is "managed.
~ManagedValue()
Destructor.
ManagedValue(RestartableData< T > &value)
RestartableData< T > & _value
The underlying data.
const T & get() const
Get the restartable value.
A class for creating restricted objects.
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 & declareRestartableData(const std::string &data_name, Args &&... args)
Declare a piece of data as "restartable" and initialize it.
const RestartableDataMapName _metaname
Restartable metadata name.
ManagedValue< T > declareManagedRestartableDataWithContext(const std::string &data_name, void *context, Args &&... args)
Declares a piece of "managed" restartable data and initialize it.
RestartableData< T > & declareRestartableDataHelper(const std::string &data_name, void *context, Args &&... args) const
Helper function for declaring restartable data.
T & declareRestartableDataWithContext(const std::string &data_name, void *context, 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...
T & declareRestartableDataWithObjectName(const std::string &data_name, const std::string &object_name, Args &&... args)
Declare a piece of data as "restartable".
const THREAD_ID _restartable_tid
The thread ID for this object.
T & declareRestartableDataWithObjectNameWithContext(const std::string &data_name, const std::string &object_name, void *context, Args &&... args)
Declare a piece of data as "restartable".
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 std::string _restartable_system_name
The system name this object is in.
std::string _restartable_name
The name of the object.
void registerRestartableNameWithFilterOnApp(const std::string &name, Moose::RESTARTABLE_FILTER filter)
Helper function for actually registering the restartable data.
MooseApp & _restartable_app
Reference to the application.
RestartableDataValue & registerRestartableDataOnApp(std::unique_ptr< RestartableDataValue > data, THREAD_ID tid) const
Helper function for actually registering the restartable data.
Generic class for solving transient nonlinear problems.
RESTARTABLE_FILTER
The filter type applied to a particular piece of "restartable" data.