DOLFIN
DOLFIN C++ interface
|
This class defines the global DOLFIN parameter database. More...
#include <GlobalParameters.h>
Public Member Functions | |
GlobalParameters () | |
Constructor. | |
virtual | ~GlobalParameters () |
Destructor. | |
virtual void | parse (int argc, char *argv[]) |
Parse parameters from command-line. | |
Public Member Functions inherited from dolfin::Parameters | |
Parameters (std::string key="parameters") | |
Create empty parameter set. | |
virtual | ~Parameters () |
Destructor. | |
Parameters (const Parameters ¶meters) | |
Copy constructor. | |
std::string | name () const |
Return name for parameter set. | |
void | rename (std::string key) |
Rename parameter set. | |
void | clear () |
Clear parameter set. | |
void | add_unset (std::string key, Parameter::Type type) |
Add unset parameter of specified type. | |
template<typename T > | |
void | add (std::string key) |
template<typename T > | |
void | add (std::string key, T min, T max) |
void | add (std::string key, std::set< std::string > valid_values) |
void | add (std::string key, int value) |
Add int-valued parameter. | |
void | add (std::string key, int value, int min_value, int max_value) |
Add int-valued parameter with given range. | |
void | add (std::string key, double value) |
Add double-valued parameter. | |
void | add (std::string key, double value, double min_value, double max_value) |
Add double-valued parameter with given range. | |
void | add (std::string key, std::string value) |
Add string-valued parameter. | |
void | add (std::string key, const char *value) |
Add string-valued parameter. | |
void | add (std::string key, std::string value, std::set< std::string > range) |
Add string-valued parameter with given range. | |
void | add (std::string key, const char *value, std::set< std::string > range) |
Add string-valued parameter with given range. | |
void | add (std::string key, bool value) |
Add bool-valued parameter. | |
void | add (const Parameters ¶meters) |
Add nested parameter set. | |
void | remove (std::string key) |
Remove parameter or parameter set with given key. | |
void | update (const Parameters ¶meters) |
Update parameters with another set of parameters. | |
Parameter & | operator[] (std::string key) |
Return parameter for given key. | |
const Parameter & | operator[] (std::string key) const |
Return parameter for given key (const version) | |
Parameters & | operator() (std::string key) |
Return nested parameter set for given key. | |
const Parameters & | operator() (std::string key) const |
Return nested parameter set for given key (const) | |
const Parameters & | operator= (const Parameters ¶meters) |
Assignment operator. | |
bool | has_key (std::string key) const |
Check if parameter set has key (parameter or nested parameter set) | |
bool | has_parameter (std::string key) const |
Check if parameter set has given parameter. | |
bool | has_parameter_set (std::string key) const |
Check if parameter set has given nested parameter set. | |
void | get_parameter_keys (std::vector< std::string > &keys) const |
Return a vector of parameter keys. | |
void | get_parameter_set_keys (std::vector< std::string > &keys) const |
Return a vector of parameter set keys. | |
std::string | str (bool verbose) const |
Return informal string representation (pretty-print) | |
boost::optional< Parameter & > | find_parameter (std::string key) |
Return parameter, if present. | |
boost::optional< Parameters & > | find_parameter_set (std::string key) |
Return parameter set, if present. | |
std::size_t | size () const |
Interface for pybind11 iterators. | |
std::map< std::string, boost::variant< Parameter, Parameters > >::const_iterator | begin () const |
Interface for pybind11 iterators. | |
std::map< std::string, boost::variant< Parameter, Parameters > >::const_iterator | end () const |
Interface for pybind11 iterators. | |
Static Public Member Functions | |
static Parameters | default_parameters () |
Default parameter values. | |
Additional Inherited Members | |
Protected Member Functions inherited from dolfin::Parameters | |
void | parse_common (int argc, char *argv[]) |
Parse filtered options (everything except PETSc options) | |
void | parse_petsc (int argc, char *argv[]) |
Parse filtered options (only PETSc options) | |
This class defines the global DOLFIN parameter database.