Arcane  4.2.3.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::ModuleFactory2T< ModuleType > Class Template Reference

Template class for module factory. More...

#include <arcane/core/ModuleFactory.h>

Inheritance diagram for Arcane::ModuleFactory2T< ModuleType >:
Collaboration diagram for Arcane::ModuleFactory2T< ModuleType >:

Public Member Functions

 ModuleFactory2T (IServiceInfo *service_info, const String &name)
Ref< IModule > createModuleInstance (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 IServiceInfo * serviceInfo () const override
 Information about the module that can be created by this factory.

Detailed Description

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

Template class for module factory.

This class allows creating a module implemented by the class 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().

Here is the call graph for this function:

◆ 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: