17SolutionInvalidityRegistry &
23 return solution_invalid_registry_singleton;
28 "SolutionInvalidityRegistry")
34 const std::string & message,
39 mooseAssert(
item(
id(name)).warning == warning,
"Inconsistent registration for a warning");
40 const auto create_item = [&object_type, &message, &warning](
const std::size_t
id)
48 os << name.object_type <<
": " << name.message;
unsigned int InvalidSolutionID
std::size_t registerItem(const SolutionInvalidityName &key, CreateItem &create_item)
Registers an item with key key if said key does not exist.
bool keyExists(const SolutionInvalidityName &key) const
std::size_t id(const SolutionInvalidityName &key) const
const SolutionInvalidityInfo & item(const std::size_t id) const
Helper class that stores the info associated with an invalid solution.
Helper class that stores the name associated with an invalid solution.
The place where all sections with solution invalid warnings will be stored.
SolutionInvalidityRegistry()
InvalidSolutionID registerInvalidity(const std::string &object_type, const std::string &message, const bool warning)
Call to register an invalid calculation.
SolutionInvalidityRegistry & getSolutionInvalidityRegistry()
Get the global SolutionInvalidityRegistry singleton.
std::ostream & operator<<(std::ostream &os, const SolutionInvalidityName &name)
Helper class that hash the name associated with an invalid solution.