A collection of Ioss::Field objects.
More...
#include <Ioss_FieldManager.h>
A collection of Ioss::Field objects.
◆ FieldManager() [1/2]
Ioss::FieldManager::FieldManager |
( |
| ) |
|
|
default |
◆ FieldManager() [2/2]
Ioss::FieldManager::FieldManager |
( |
const FieldManager & | other | ) |
|
|
inline |
◆ add()
void Ioss::FieldManager::add |
( |
const Field & | new_field | ) |
|
Add a field to the field manager.
Assumes that a field with the same name does not already exist.
- Parameters
-
[in] | new_field | The field to add |
◆ count()
size_t Ioss::FieldManager::count |
( |
| ) |
const |
Get the number of fields in the field manager.
- Returns
- The number of fields in the field manager.
◆ describe() [1/4]
Get the names of all fields in the field manager.
- Returns
- names All field names in the field manager.
◆ describe() [2/4]
Get the names of all fields of a specified RoleType in the field manager.
- Parameters
-
[in] | role | The role type (MESH, ATTRIBUTE, TRANSIENT, REDUCTION, etc.) |
- Returns
- names All field names of the specified RoleType in the field manager.
◆ describe() [3/4]
Get the names of all fields of a specified RoleType in the field manager.
- Parameters
-
[in] | role | The role type (MESH, ATTRIBUTE, TRANSIENT, REDUCTION, etc.) |
[out] | names | All field names of the specified RoleType in the field manager. |
- Returns
- The number of fields extracted from the field manager.
◆ describe() [4/4]
int Ioss::FieldManager::describe |
( |
NameList * | names | ) |
const |
Get the names of all fields in the field manager.
- Parameters
-
[out] | names | All field names in the field manager. |
- Returns
- The number of fields extracted from the field manager.
◆ erase() [1/2]
void Ioss::FieldManager::erase |
( |
const std::string & | field_name | ) |
|
Remove a field from the field manager.
Assumes that a field with the given name exists in the field manager.
- Parameters
-
[in] | field_name | The name of the field to remove. |
◆ erase() [2/2]
Remove all fields of type role
from the field manager.
- Parameters
-
[in] | role | Remove all fields (if any) of type role |
◆ exists()
bool Ioss::FieldManager::exists |
( |
const std::string & | field_name | ) |
const |
Checks if a field with a given name exists in the field manager.
- Parameters
-
[in] | field_name | The name of the field to check for. |
- Returns
- True if the field exists in the field manager.
◆ get()
Ioss::Field Ioss::FieldManager::get |
( |
const std::string & | field_name | ) |
const |
Get a field from the field manager.
- Parameters
-
[in] | field_name | The name of the field to get. |
- Returns
- The field object.
◆ getref()
const Ioss::Field & Ioss::FieldManager::getref |
( |
const std::string & | field_name | ) |
const |
Get a reference to a field from the field manager.
- Parameters
-
[in] | field_name | The name of the field to get. |
- Returns
- A reference to the field object.
◆ operator=()
◆ fields
The documentation for this class was generated from the following files: