|
| MapParameters (std::initializer_list< Parameter >) |
|
| MapParameters (std::map< std::string, std::string > values={}) |
|
std::optional< std::string > | GetString (std::string paramName) const override |
|
std::unordered_set< std::string > | GetKeys () const override |
|
const std::map< std::string, std::string > & | GetMap () const |
|
template<class T > |
void | Insert (std::string key, T value) |
|
template<typename T > |
std::optional< T > | Get (std::string paramName) const |
|
template<typename T > |
T | Get (std::string paramName, T defaultValue) const |
|
template<typename T > |
T | GetExpect (std::string paramName) const |
|
template<typename T > |
std::map< std::string, T > | ToMap () const |
|
void | Fill (PetscOptions options) const |
|
template<typename T > |
void | Fill (int numberValues, const char *const *valueNames, T *constantArray) const |
|
template<typename T > |
void | Fill (int numberValues, const char *const *valueNames, T *constantArray, std::map< std::string, T > defaultValues) const |
|
|
std::map< std::string, std::string > | values |
|
◆ MapParameters()
ablate::parameters::MapParameters::MapParameters |
( |
std::initializer_list< Parameter > |
list | ) |
|
Takes a list of parameters
◆ Create() [1/2]
static helper function to create a new MapParameters shared pointer from a map of <string, string>
- Returns
◆ Create() [2/2]
◆ GetKeys()
std::unordered_set< std::string > ablate::parameters::MapParameters::GetKeys |
( |
| ) |
const |
|
overridevirtual |
◆ GetMap()
const std::map<std::string, std::string>& ablate::parameters::MapParameters::GetMap |
( |
| ) |
const |
|
inline |
Provides raw access to the map
- Returns
◆ GetString()
std::optional< std::string > ablate::parameters::MapParameters::GetString |
( |
std::string |
paramName | ) |
const |
|
overridevirtual |
◆ Insert()
template<class T >
void ablate::parameters::MapParameters::Insert |
( |
std::string |
key, |
|
|
T |
value |
|
) |
| |
|
inline |
Allow inserting additional items into a map
- Template Parameters
-
- Parameters
-
The documentation for this class was generated from the following files: