A collection of Ioss::Property objects.
More...
#include <Ioss_PropertyManager.h>
A collection of Ioss::Property objects.
◆ PropertyManager() [1/2]
Ioss::PropertyManager::PropertyManager |
( |
| ) |
|
|
default |
◆ PropertyManager() [2/2]
◆ add()
void Ioss::PropertyManager::add |
( |
const Property & | new_prop | ) |
|
Add a property to the property manager.
- Parameters
-
[in] | new_prop | The property to add. |
◆ count()
size_t Ioss::PropertyManager::count |
( |
| ) |
const |
Get the number of properties in the property manager
- Returns
- The number of properties in the property manager.
◆ describe() [1/4]
Get the names of all properties in the property manager.
- Returns
- All the property names in the property manager.
◆ describe() [2/4]
Get the names of all properties in the property manager that have the origin origin
- Parameters
-
[in] | origin | The origin of the property: IMPLICIT, EXTERNAL, ATTRIBUTE |
- Returns
- The number of properties extracted from the property manager.
◆ describe() [3/4]
Get the names of all properties in the property manager that have the origin origin
- Parameters
-
[in] | origin | The origin of the property: IMPLICIT, EXTERNAL, ATTRIBUTE |
[out] | names | All the property names in the property manager. |
- Returns
- The number of properties extracted from the property manager.
◆ describe() [4/4]
int Ioss::PropertyManager::describe |
( |
NameList * | names | ) |
const |
Get the names of all properties in the property manager.
- Parameters
-
[out] | names | All the property names in the property manager. |
- Returns
- The number of properties extracted from the property manager.
◆ erase()
void Ioss::PropertyManager::erase |
( |
const std::string & | property_name | ) |
|
Remove a property from the property manager.
Assumes that the property with the given name already exists in the property manager.
- Parameters
-
[in] | property_name | The name of the property to remove. |
◆ exists()
bool Ioss::PropertyManager::exists |
( |
const std::string & | property_name | ) |
const |
Checks if a property exists in the database.
- Parameters
-
[in] | property_name | The property to check |
- Returns
- True if the property exists, false otherwise.
◆ get()
Ioss::Property Ioss::PropertyManager::get |
( |
const std::string & | property_name | ) |
const |
Get a property object from the property manager.
- Parameters
-
[in] | property_name | The name of the property to get. |
- Returns
- The property object.
◆ get_optional() [1/4]
std::string Ioss::PropertyManager::get_optional |
( |
const std::string & | property_name, |
|
|
const std::string & | optional_value ) const |
◆ get_optional() [2/4]
double Ioss::PropertyManager::get_optional |
( |
const std::string & | property_name, |
|
|
double | optional_value ) const |
◆ get_optional() [3/4]
int Ioss::PropertyManager::get_optional |
( |
const std::string & | property_name, |
|
|
int | optional_value ) const |
Get an optional property object from the property manager.
- Parameters
-
[in] | property_name | The name of the property to get. |
[in] | optional_value | The value to return if the property does not exist. |
- Returns
- The property object.
◆ get_optional() [4/4]
int64_t Ioss::PropertyManager::get_optional |
( |
const std::string & | property_name, |
|
|
int64_t | optional_value ) const |
◆ operator=()
◆ m_properties
The documentation for this class was generated from the following files: