33 mooseError(
"MaterialPropertyRegistry: Property '" + name +
"' is not declared");
37std::optional<unsigned int>
50 mooseError(
"MaterialPropertyRegistry: Property with ID ",
id,
" is not declared");
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Key that restricts writing data to the registry.
unsigned int getID(const std::string &name) const
std::vector< std::string > _id_to_name
Map of material property id -> material property name.
std::unordered_map< std::string, unsigned int > _name_to_id
Map of material property name -> material property id.
std::optional< unsigned int > queryID(const std::string &name) const
unsigned int addOrGetID(const std::string &name, const WriteKey)
bool hasProperty(const std::string &name) const
const std::string & getName(const unsigned int id) const