Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::AbstractModule Class Reference

Class representing a module. More...

#include <arcane/core/AbstractModule.h>

Public Member Functions

 AbstractModule (const ModuleBuildInfo &)
 Constructor from a ModuleBuildInfo.
virtual ~AbstractModule ()
 Destructor.
VersionInfo versionInfo () const override
 Module version.
String name () const override
 Module name.
ISessionsession () const override
 Session associated with the module.
ISubDomainsubDomain () const override
 Sub-domain associated with the module.
IMeshdefaultMesh () const override
 Default mesh for this module.
MeshHandle defaultMeshHandle () const override
 Default mesh for this module.
IParallelMngparallelMng () const override
 Message passing parallelism manager.
IAcceleratorMngacceleratorMng () const override
 Accelerator manager.
ITraceMngtraceMng () const override
 Trace manager.
void setUsed (bool v) override
 Sets the module usage flag.
bool used () const override
 Returns the module usage status.
void setDisabled (bool v) override
 Sets the module activation flag.
bool disabled () const override
 Returns the module activation status.
bool isGarbageCollected () const override
 Indicates if the module uses a Garbage collection system.
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const
Public Member Functions inherited from Arcane::IModule
virtual ~IModule ()
 Destructor.

Static Public Member Functions

static void staticInitialize (ISubDomain *sd)
 Initialization of the module for the sub-domain sd.

Protected Member Functions

void _setVersionInfo (const VersionInfo &vi)
Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Detailed Description

Class representing a module.

This class is THE low-level implementation class of the IModule interface.

Definition at line 47 of file AbstractModule.h.

Constructor & Destructor Documentation

◆ AbstractModule()

Arcane::AbstractModule::AbstractModule ( const ModuleBuildInfo & mbi)

◆ ~AbstractModule()

Arcane::AbstractModule::~AbstractModule ( )
virtual

Destructor.

Definition at line 46 of file AbstractModule.cc.

Member Function Documentation

◆ _setVersionInfo()

void Arcane::AbstractModule::_setVersionInfo ( const VersionInfo & vi)
inlineprotected

Definition at line 127 of file AbstractModule.h.

◆ acceleratorMng()

IAcceleratorMng * Arcane::AbstractModule::acceleratorMng ( ) const
overridevirtual

Accelerator manager.

Implements Arcane::IModule.

Definition at line 63 of file AbstractModule.cc.

Referenced by AbstractModule().

◆ defaultMesh()

IMesh * Arcane::AbstractModule::defaultMesh ( ) const
inlineoverridevirtual

Default mesh for this module.

Implements Arcane::IModule.

Definition at line 91 of file AbstractModule.h.

◆ defaultMeshHandle()

MeshHandle Arcane::AbstractModule::defaultMeshHandle ( ) const
inlineoverridevirtual

Default mesh for this module.

Implements Arcane::IModule.

Definition at line 93 of file AbstractModule.h.

◆ disabled()

bool Arcane::AbstractModule::disabled ( ) const
inlineoverridevirtual

Returns the module activation status.

Implements Arcane::IModule.

Definition at line 107 of file AbstractModule.h.

◆ isGarbageCollected()

bool Arcane::AbstractModule::isGarbageCollected ( ) const
inlineoverridevirtual

Indicates if the module uses a Garbage collection system.

  • if true, indicates destruction by a Garbage collector and not explicit destruction
  • if false, this module will be destroyed explicitly by calling its destructor

The Garbage collection system is usually activated for modules resulting from a C# implementation. Classic modules in C++ do not have this mechanism.

Implements Arcane::IModule.

Definition at line 123 of file AbstractModule.h.

◆ name()

String Arcane::AbstractModule::name ( ) const
inlineoverridevirtual

Module name.

Implements Arcane::IModule.

Definition at line 85 of file AbstractModule.h.

Referenced by AbstractModule().

◆ parallelMng()

IParallelMng * Arcane::AbstractModule::parallelMng ( ) const
overridevirtual

Message passing parallelism manager.

Implements Arcane::IModule.

Definition at line 54 of file AbstractModule.cc.

Referenced by Arcane::ModuleMaster::timeLoopBegin().

◆ session()

ISession * Arcane::AbstractModule::session ( ) const
inlineoverridevirtual

Session associated with the module.

Implements Arcane::IModule.

Definition at line 87 of file AbstractModule.h.

Referenced by AbstractModule().

◆ setDisabled()

void Arcane::AbstractModule::setDisabled ( bool v)
inlineoverridevirtual

Sets the module activation flag.

Implements Arcane::IModule.

Definition at line 105 of file AbstractModule.h.

◆ setUsed()

void Arcane::AbstractModule::setUsed ( bool v)
inlineoverridevirtual

Sets the module usage flag.

Implements Arcane::IModule.

Definition at line 101 of file AbstractModule.h.

◆ staticInitialize()

void Arcane::AbstractModule::staticInitialize ( ISubDomain * sd)
inlinestatic

Initialization of the module for the sub-domain sd.

This static method can be redefined in a derived class to perform initializations for the sub-domain sd even if the module is not used.

A common use is registering entry points for modules without .axl

This method will be called during the sub-domain creation phase on all Modules (even unused ones).

Definition at line 80 of file AbstractModule.h.

◆ subDomain()

ISubDomain * Arcane::AbstractModule::subDomain ( ) const
inlineoverridevirtual

◆ traceMng()

ITraceMng * Arcane::AbstractModule::traceMng ( ) const
overridevirtual

Trace manager.

Implements Arcane::IModule.

Definition at line 72 of file AbstractModule.cc.

References Arcane::TraceAccessor::traceMng().

Referenced by AbstractModule().

◆ used()

bool Arcane::AbstractModule::used ( ) const
inlineoverridevirtual

Returns the module usage status.

Implements Arcane::IModule.

Definition at line 103 of file AbstractModule.h.

◆ versionInfo()

VersionInfo Arcane::AbstractModule::versionInfo ( ) const
inlineoverridevirtual

Module version.

Implements Arcane::IModule.

Reimplemented in Arcane::ModuleMaster.

Definition at line 64 of file AbstractModule.h.


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