|
PISM, A Parallel Ice Sheet Model stable 0.4.1779
|
#include <PCFactory.hh>
Public Member Functions | |
| PCFactory (IceGrid &g, const NCConfigVariable &conf) | |
| virtual | ~PCFactory () |
| virtual PetscErrorCode | set_default (string name) |
| Sets the default type name. | |
| virtual PetscErrorCode | create (Model *&result) |
| Creates a boundary model. Processes command-line options. | |
| virtual void | add_model (string name, void(*func)(IceGrid &, const NCConfigVariable &, Model *&)) |
| Adds a boundary model to the dictionary. | |
| virtual void | add_modifier (string name, void(*func)(IceGrid &, const NCConfigVariable &, Model *, Modifier *&)) |
| virtual void | remove_model (string name) |
| Removes a boundary model from the dictionary. | |
| virtual void | remove_modifier (string name) |
| virtual void | clear_models () |
| Clears the dictionary. | |
| virtual void | clear_modifiers () |
Protected Member Functions | |
| virtual void | add_standard_types () |
Protected Attributes | |
| string | default_type |
| string | option |
| map< string, void(*)(IceGrid &, const NCConfigVariable &, Model *&)> | models |
| map< string, void(*)(IceGrid &, const NCConfigVariable &, Model *, Modifier *&)> | modifiers |
| IceGrid & | grid |
| const NCConfigVariable & | config |
Definition at line 30 of file PCFactory.hh.
| PCFactory | ( | IceGrid & | g, |
| const NCConfigVariable & | conf | ||
| ) | [inline] |
Definition at line 32 of file PCFactory.hh.
| virtual ~PCFactory | ( | ) | [inline, virtual] |
Definition at line 34 of file PCFactory.hh.
| virtual void add_model | ( | string | name, |
| void(*)(IceGrid &, const NCConfigVariable &, Model *&) | func | ||
| ) | [inline, virtual] |
Adds a boundary model to the dictionary.
Definition at line 133 of file PCFactory.hh.
Referenced by main().
| virtual void add_modifier | ( | string | name, |
| void(*)(IceGrid &, const NCConfigVariable &, Model *, Modifier *&) | func | ||
| ) | [inline, virtual] |
Definition at line 137 of file PCFactory.hh.
| virtual void add_standard_types | ( | ) | [inline, protected, virtual] |
Reimplemented in PAFactory, PSFactory, and POFactory.
Definition at line 159 of file PCFactory.hh.
| virtual void clear_models | ( | ) | [inline, virtual] |
Clears the dictionary.
Definition at line 151 of file PCFactory.hh.
| virtual void clear_modifiers | ( | ) | [inline, virtual] |
Definition at line 155 of file PCFactory.hh.
| virtual PetscErrorCode create | ( | Model *& | result | ) | [inline, virtual] |
Creates a boundary model. Processes command-line options.
Definition at line 50 of file PCFactory.hh.
Referenced by main().
| virtual void remove_model | ( | string | name | ) | [inline, virtual] |
Removes a boundary model from the dictionary.
Definition at line 142 of file PCFactory.hh.
| virtual void remove_modifier | ( | string | name | ) | [inline, virtual] |
Definition at line 146 of file PCFactory.hh.
| virtual PetscErrorCode set_default | ( | string | name | ) | [inline, virtual] |
const NCConfigVariable& config [protected] |
Definition at line 164 of file PCFactory.hh.
Referenced by PCFactory< PISMOceanModel, POModifier >::create().
string default_type [protected] |
Definition at line 160 of file PCFactory.hh.
Referenced by PCFactory< PISMOceanModel, POModifier >::create(), and PCFactory< PISMOceanModel, POModifier >::set_default().
IceGrid& grid [protected] |
Definition at line 163 of file PCFactory.hh.
Referenced by PCFactory< PISMOceanModel, POModifier >::create().
Definition at line 161 of file PCFactory.hh.
Referenced by PCFactory< PISMOceanModel, POModifier >::add_model(), PCFactory< PISMOceanModel, POModifier >::clear_models(), PCFactory< PISMOceanModel, POModifier >::create(), PCFactory< PISMOceanModel, POModifier >::remove_model(), and PCFactory< PISMOceanModel, POModifier >::set_default().
Definition at line 160 of file PCFactory.hh.
Referenced by PCFactory< PISMOceanModel, POModifier >::create().
1.7.3