33 #ifndef IOSS_Ioss_FieldManager_h 34 #define IOSS_Ioss_FieldManager_h 42 #include <unordered_map> 64 void erase(
const std::string &field_name);
67 bool exists(
const std::string &field_name)
const;
69 Field get(
const std::string &field_name)
const;
70 const Field &
getref(
const std::string &field_name)
const;
83 #if defined(IOSS_THREADSAFE) 84 mutable std::mutex m_;
std::vector< std::string > NameList
Definition: Ioss_CodeTypes.h:44
void erase(const std::string &field_name)
Remove a field from the field manager.
Definition: Ioss_FieldManager.C:106
The main namespace for the Ioss library.
Definition: Iocgns_DatabaseIO.h:50
RoleType
Definition: Ioss_Field.h:75
FieldMapType fields
Definition: Ioss_FieldManager.h:82
const Field & getref(const std::string &field_name) const
Get a reference to a field from the field manager.
Definition: Ioss_FieldManager.C:91
int describe(NameList *names) const
Get the names of all fields in the field manager.
Definition: Ioss_FieldManager.C:123
size_t count() const
Get the number of fields in the field manager.
Definition: Ioss_FieldManager.C:164
bool exists(const std::string &field_name) const
Checks if a field with a given name exists in the field manager.
Definition: Ioss_FieldManager.C:63
void add(const Field &new_field)
Add a field to the field manager.
Definition: Ioss_FieldManager.C:48
Holds metadata for bulk data associated with a GroupingEntity.
Definition: Ioss_Field.h:47
std::unordered_map< std::string, Field > FieldMapType
Definition: Ioss_FieldManager.h:46
FieldManager & operator=(const FieldManager &)=delete
FieldMapType::value_type FieldValuePair
Definition: Ioss_FieldManager.h:47
A collection of Ioss::Field objects.
Definition: Ioss_FieldManager.h:51