OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::InitModuleManager Class Reference

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 ()
 
InitModuleCreateModule (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 ()
 
ModuleManageroperator= (const ModuleManager &)=delete
 
virtual int instanciateYourself (DataReader &dr, InputRecord *ir)
 Reads receiver description from input stream and creates corresponding modules components accordingly. More...
 
InitModulegiveModule (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...
 
EngngModelemodel
 Associated Engineering model. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

oofem::InitModuleManager::InitModuleManager ( EngngModel emodel)

Definition at line 40 of file initmodulemanager.C.

oofem::InitModuleManager::~InitModuleManager ( )
virtual

Definition at line 43 of file initmodulemanager.C.

Member Function Documentation

InitModule * oofem::InitModuleManager::CreateModule ( const char *  name,
int  n,
EngngModel emodel 
)
virtual

Creates new instance of module.

Parameters
nameName of module.
nNumber associated with module.
emodelEngineering 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().

virtual const char* oofem::InitModuleManager::giveClassName ( ) const
inlinevirtual

Returns class name of the receiver.

Implements oofem::ModuleManager< InitModule >.

Definition at line 65 of file initmodulemanager.h.

IRResultType oofem::InitModuleManager::initializeFrom ( InputRecord ir)
virtual

Instanciates the receiver from input record.

Called from instanciateYourself to initialize yourself from corresponding record. Should be called before instanciateYourself.

Todo:
This is named differently from _IFT_ModuleManager_nmodules . Should we change or keep it?

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().


The documentation for this class was generated from the following files:

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:36 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011