|
OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Class representing and implementing InitModuleManager. More...
#include <initmodulemanager.h>
Inheritance diagram for oofem::InitModuleManager:
Collaboration diagram for oofem::InitModuleManager:Public Member Functions | |
| InitModuleManager (EngngModel *emodel) | |
| virtual | ~InitModuleManager () |
| InitModule * | CreateModule (const char *name, int n, EngngModel *emodel) |
| Creates new instance of module. More... | |
| void | doInit () |
| Performs the initialization of individual modules. More... | |
| virtual IRResultType | initializeFrom (InputRecord *ir) |
| Instanciates the receiver from input record. More... | |
| virtual const char * | giveClassName () const |
| Returns class name of the receiver. More... | |
Public Member Functions inherited from oofem::ModuleManager< InitModule > | |
| ModuleManager (EngngModel *emodel) | |
| ModuleManager (const ModuleManager &)=delete | |
| virtual | ~ModuleManager () |
| ModuleManager & | operator= (const ModuleManager &)=delete |
| virtual int | instanciateYourself (DataReader &dr, InputRecord *ir) |
| Reads receiver description from input stream and creates corresponding modules components accordingly. More... | |
| InitModule * | giveModule (int num) |
| Returns the required module. More... | |
| int | giveNumberOfModules () const |
Additional Inherited Members | |
Protected Attributes inherited from oofem::ModuleManager< InitModule > | |
| std::vector< std::unique_ptr< InitModule > > | moduleList |
| Module list. More... | |
| int | numberOfModules |
| Number of modules. More... | |
| EngngModel * | emodel |
| Associated Engineering model. More... | |
Class representing and implementing InitModuleManager.
It is attribute of EngngModel. It manages the init modules, which perform module - specific init oprations.
Definition at line 49 of file initmodulemanager.h.
| oofem::InitModuleManager::InitModuleManager | ( | EngngModel * | emodel | ) |
Definition at line 40 of file initmodulemanager.C.
|
virtual |
Definition at line 43 of file initmodulemanager.C.
|
virtual |
Creates new instance of module.
| name | Name of module. |
| n | Number associated with module. |
| emodel | Engineering model which receiver belongs to. |
Implements oofem::ModuleManager< InitModule >.
Definition at line 56 of file initmodulemanager.C.
References oofem::classFactory, and oofem::ClassFactory::createInitModule().
| void oofem::InitModuleManager::doInit | ( | ) |
Performs the initialization of individual modules.
Loops over all modules and calls corresponding doInit module service.
Definition at line 62 of file initmodulemanager.C.
References oofem::ModuleManager< InitModule >::moduleList.
Referenced by oofem::EngngModel::init().
|
inlinevirtual |
Returns class name of the receiver.
Implements oofem::ModuleManager< InitModule >.
Definition at line 65 of file initmodulemanager.h.
|
virtual |
Instanciates the receiver from input record.
Called from instanciateYourself to initialize yourself from corresponding record. Should be called before instanciateYourself.
Implements oofem::ModuleManager< InitModule >.
Definition at line 47 of file initmodulemanager.C.
References IR_GIVE_OPTIONAL_FIELD, oofem::IRRT_OK, and oofem::ModuleManager< InitModule >::numberOfModules.
Referenced by oofem::EngngModel::instanciateYourself().