Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::ModuleFactory2T< ModuleType > Class Template Reference

Public Member Functions

 ModuleFactory2T (IServiceInfo *service_info, const String &name)
Ref< IModulecreateModuleInstance (ISubDomain *sd, const MeshHandle &mesh_handle) override
 Creates a module instance.
void initializeModuleFactory (ISubDomain *sd) override
 Static initialization of the module.
Public Member Functions inherited from Arcane::ModuleFactory2
 ModuleFactory2 (IServiceInfo *service_info, const String &name)
String moduleName () const override
 Name of the module created by this factory.
const IServiceInfoserviceInfo () const override
 Information about the module that can be created by this factory.

Detailed Description

template<class ModuleType>
class Arcane::ModuleFactory2T< ModuleType >

Definition at line 120 of file ModuleFactory.h.

Constructor & Destructor Documentation

◆ ModuleFactory2T()

template<class ModuleType>
Arcane::ModuleFactory2T< ModuleType >::ModuleFactory2T ( IServiceInfo * service_info,
const String & name )
inline

Definition at line 125 of file ModuleFactory.h.

Member Function Documentation

◆ createModuleInstance()

template<class ModuleType>
Ref< IModule > Arcane::ModuleFactory2T< ModuleType >::createModuleInstance ( ISubDomain * sd,
const MeshHandle & mesh_handle )
inlineoverridevirtual

Creates a module instance.

Parameters
sdassociated sub-domain.
meshmesh associated with the module.
Returns
the created module

Implements Arcane::IModuleFactory2.

Definition at line 130 of file ModuleFactory.h.

References Arcane::makeRef(), and Arcane::ModuleFactory2::moduleName().

◆ initializeModuleFactory()

template<class ModuleType>
void Arcane::ModuleFactory2T< ModuleType >::initializeModuleFactory ( ISubDomain * sd)
inlineoverridevirtual

Static initialization of the module.

This method is called when the sub-domain is created, to perform specific module initializations before it is manufactured. For example, to add time loops specific to the module.

Implements Arcane::IModuleFactory2.

Definition at line 136 of file ModuleFactory.h.


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