21 : _ri_params(moose_object->parameters()),
22 _ri_fe_problem_base(*_ri_params.getCheckedPointerParam<
FEProblemBase *>(
"_fe_problem_base")),
23 _ri_reporter_data(_ri_fe_problem_base.getReporterData()),
24 _ri_moose_object(*moose_object)
28 #ifdef MOOSE_KOKKOS_ENABLED 31 : _ri_params(object._ri_params),
32 _ri_fe_problem_base(object._ri_fe_problem_base),
33 _ri_reporter_data(object._ri_reporter_data),
34 _ri_moose_object(object._ri_moose_object)
44 "Cannot call hasReporterValue() until all Reporters have been constructed.");
54 "Cannot call hasReporterValueByName() until all Reporters have been constructed.");
64 "Cannot call getReporterContextBaseByName() until all Reporters have been constructed.");
74 "When getting a Reporter, failed to get a parameter with the name \"",
77 "\n\nKnown parameters:\n",
87 "\" is not an expected type for getting a Reporter.\n\n",
88 "The expected type is \"ReporterName\".");
static InputParameters validParams()
bool isTaskComplete(const std::string &task) const
const InputParameters & parameters() const
Get the parameters of the object.
const ReporterName & getReporterName(const std::string ¶m_name) const
const ReporterContextBase & getReporterContextBaseByName(const ReporterName &reporter_name) const
Get the reporter context to allow non-typed operations with the data.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.
bool reportersAdded() const
This is a helper class to aid with parallel communication of compute Reporter values as well as provi...
bool hasReporterValue(const std::string ¶m_name) const
Return True if the Reporter value exists.
Every object that can be built by the factory should be derived from this class.
Interface to allow object to consume Reporter values.
ActionWarehouse & actionWarehouse()
Return a writable reference to the ActionWarehouse associated with this app.
ReporterInterface(const MooseObject *moose_object)
const MooseObject & _ri_moose_object
The MooseObject needing this interface.
const InputParameters & _ri_params
Parameters for the MooseObject inherting from this interface.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
const ReporterData & _ri_reporter_data
The ReporterData.
bool hasReporterValue(const ReporterName &reporter_name) const
Return True if a Reporter value with the given type and name have been created.
bool hasReporterValueByName(const ReporterName &reporter_name) const
The Reporter system is comprised of objects that can contain any number of data values.
FEProblemBase & _ri_fe_problem_base
Provides access to FEProblemBase::getReporterData.
const ReporterContextBase & getReporterContextBase(const ReporterName &reporter_name) const