Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::IFactoryServiceT< InterfaceType > Class Template Referenceabstract

Factory interface for a class implementing InterfaceType. More...

#include <arcane/core/IFactoryService.h>

Inheritance diagram for Arcane::IFactoryServiceT< InterfaceType >:
Collaboration diagram for Arcane::IFactoryServiceT< InterfaceType >:

Public Member Functions

virtual InterfaceType * createInstance ()=0
 Create an instance.
virtual InterfaceType * createInstance (IMesh *mesh)=0
 Create an instance for the mesh mesh.
virtual InterfaceType * singletonInstance ()=0
 Create a singleton instance.
Public Member Functions inherited from Arcane::IService
virtual ~IService ()
 Releases resources.
virtual IBaseserviceParent () const =0
 Parent of this service.
virtual IServiceserviceInterface ()=0
 Interface of this service (normally this).
virtual IServiceInfoserviceInfo () const =0
 Service information.

Additional Inherited Members

Protected Member Functions inherited from Arcane::IService
 IService ()
 Constructor.

Detailed Description

template<typename InterfaceType>
class Arcane::IFactoryServiceT< InterfaceType >

Factory interface for a class implementing InterfaceType.

Definition at line 34 of file IFactoryService.h.

Member Function Documentation

◆ createInstance() [1/2]

template<typename InterfaceType>
virtual InterfaceType * Arcane::IFactoryServiceT< InterfaceType >::createInstance ( )
pure virtual

Create an instance.

The returned object is guaranteed not to be null.

◆ createInstance() [2/2]

template<typename InterfaceType>
virtual InterfaceType * Arcane::IFactoryServiceT< InterfaceType >::createInstance ( IMesh * mesh)
pure virtual

Create an instance for the mesh mesh.

Only subdomain services support this type of creation.

The returned object is guaranteed not to be null.

◆ singletonInstance()

template<typename InterfaceType>
virtual InterfaceType * Arcane::IFactoryServiceT< InterfaceType >::singletonInstance ( )
pure virtual

Create a singleton instance.

The returned object is guaranteed not to be null. The returned instance is always the same.


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