13 #include <unordered_map> 17 #include "libmesh/simple_range.h" 55 unsigned int addOrGetID(
const std::string & name,
const WriteKey);
62 unsigned int getID(
const std::string & name)
const;
68 std::optional<unsigned int>
queryID(
const std::string & name)
const;
73 const std::string &
getName(
const unsigned int id)
const;
std::string name(const ElemQuality q)
std::vector< std::string > _id_to_name
Map of material property id -> material property name.
auto idsToNamesRange() const
Registry class for material property IDs and names.
std::unordered_map< std::string, unsigned int > _name_to_id
Map of material property name -> material property id.
Stores the stateful material properties computed by materials.
bool hasProperty(const std::string &name) const
bool hasProperty(const unsigned int id) const
auto idsToNamesEnd() const
auto idsToNamesBegin() const
Key that restricts writing data to the registry.
unsigned int addOrGetID(const std::string &name, const WriteKey)
WriteKey(const WriteKey &)
const std::string & getName(const unsigned int id) const
unsigned int getID(const std::string &name) const
std::optional< unsigned int > queryID(const std::string &name) const