Go to the documentation of this file.
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;
82 #if defined(IOSS_THREADSAFE)
83 mutable std::mutex m_;
std::vector< std::string > NameList
Definition: Ioss_CodeTypes.h:53
Holds metadata for bulk data associated with a GroupingEntity.
Definition: Ioss_Field.h:47
const Field & getref(const std::string &field_name) const
Get a reference to a field from the field manager.
Definition: Ioss_FieldManager.C:91
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
A collection of Ioss::Field objects.
Definition: Ioss_FieldManager.h:51
FieldMapType::value_type FieldValuePair
Definition: Ioss_FieldManager.h:47
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:66
FieldMapType fields
Definition: Ioss_FieldManager.h:81
std::unordered_map< std::string, Field > FieldMapType
Definition: Ioss_FieldManager.h:46
FieldManager & operator=(const FieldManager &)=delete
int describe(NameList *names) const
Get the names of all fields in the field manager.
Definition: Ioss_FieldManager.C:123
Field get(const std::string &field_name) const
Get a field from the field manager.
Definition: Ioss_FieldManager.C:76
void erase(const std::string &field_name)
Remove a field from the field manager.
Definition: Ioss_FieldManager.C:106
RoleType
Definition: Ioss_Field.h:75
size_t count() const
Get the number of fields in the field manager.
Definition: Ioss_FieldManager.C:164