https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Classes | Functions
RestartableDataReporter.h File Reference

Go to the source code of this file.

Classes

class  RestartableDataReporter
 Reports restartable data and restartable meta data. More...
 
struct  RestartableDataReporter::Value
 Helper struct for storing a single piece of restartable data. More...
 

Functions

void to_json (nlohmann::json &json, const RestartableDataReporter::Value &value)
 
template<>
void dataStore (std::ostream &stream, RestartableDataReporter::Value &v, void *context)
 
template<>
void dataLoad (std::istream &stream, RestartableDataReporter::Value &v, void *context)
 

Function Documentation

◆ dataLoad()

template<>
void dataLoad ( std::istream &  stream,
RestartableDataReporter::Value v,
void *  context 
)

Definition at line 147 of file RestartableDataReporter.C.

148{
149 v.value = nullptr;
150 dataLoad(stream, v.params, context);
151}
void dataLoad(std::istream &stream, RestartableDataReporter::Value &v, void *context)
const RestartableDataValue * value
RestartableDataValue::StoreJSONParams params

Referenced by dataLoad().

◆ dataStore()

template<>
void dataStore ( std::ostream &  stream,
RestartableDataReporter::Value v,
void *  context 
)

Definition at line 140 of file RestartableDataReporter.C.

141{
142 dataStore(stream, v.params, context);
143}
void dataStore(std::ostream &stream, RestartableDataReporter::Value &v, void *context)

Referenced by dataStore().

◆ to_json()

void to_json ( nlohmann::json &  json,
const RestartableDataReporter::Value value 
)

Definition at line 132 of file RestartableDataReporter.C.

133{
134 mooseAssert(value.value, "Not set");
135 value.value->store(json, value.params);
136}
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)