Go to the documentation of this file.
7 #ifndef IOSS_Ioss_PropertyManager_h
8 #define IOSS_Ioss_PropertyManager_h
14 #include <unordered_map>
18 using PropMapType = std::unordered_map<std::string, Property>;
35 void erase(
const std::string &property_name);
38 bool exists(
const std::string &property_name)
const;
40 Property get(
const std::string &property_name)
const;
52 #if defined(IOSS_THREADSAFE)
53 mutable std::mutex m_;
std::vector< std::string > NameList
Definition: Ioss_CodeTypes.h:27
bool exists(const std::string &property_name) const
Checks if a property exists in the database.
Definition: Ioss_PropertyManager.C:51
PropertyManager()=default
void erase(const std::string &property_name)
Remove a property from the property manager.
Definition: Ioss_PropertyManager.C:81
Property get(const std::string &property_name) const
Get a property object from the property manager.
Definition: Ioss_PropertyManager.C:62
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:40
size_t count() const
Definition: Ioss_PropertyManager.C:131
PropMapType m_properties
Definition: Ioss_PropertyManager.h:51
A collection of Ioss::Property objects.
Definition: Ioss_PropertyManager.h:24
void add(const Property &new_prop)
Add a property to the property manager.
Definition: Ioss_PropertyManager.C:36
std::unordered_map< std::string, Property > PropMapType
Definition: Ioss_PropertyManager.h:18
int describe(NameList *names) const
Get the names of all properties in the property manager.
Definition: Ioss_PropertyManager.C:95
PropertyManager & operator=(const PropertyManager &from)=delete
Origin
Definition: Ioss_Property.h:27
~PropertyManager()
Definition: Ioss_PropertyManager.C:22
A named value that has a known type.
Definition: Ioss_Property.h:24
PropMapType::value_type ValuePair
Definition: Ioss_PropertyManager.h:19