Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::MeshMng Class Reference
Inheritance diagram for Arcane::MeshMng:
Collaboration diagram for Arcane::MeshMng:

Public Member Functions

 MeshMng (IApplication *app, IVariableMng *vm)
 MeshMng (const MeshMng &rhs)=delete
MeshMng & operator= (const MeshMng &rhs)=delete
ITraceMngtraceMng () const override
 Trace manager associated with this manager.
IMeshFactoryMngmeshFactoryMng () const override
 Mesh factory associated with this manager.
IVariableMngvariableMng () const override
 Variable manager associated with this manager.
MeshHandlefindMeshHandle (const String &name, bool throw_exception) override
 Searches for the mesh with name name.
MeshHandle findMeshHandle (const String &name) override
 Searches for the mesh with name name.
MeshHandle createMeshHandle (const String &name) override
 Creates and returns a handle for a mesh with name name.
void destroyMesh (MeshHandle handle) override
 Destroys the mesh associated with handle.
MeshHandle defaultMeshHandle () const override
 Handle for the default mesh.
void addMesh (IMesh *mesh)
void destroyMeshes ()
ConstArrayView< IMesh * > meshes () const
MeshHandle createDefaultMeshHandle (const String &name)
IMeshfindMesh (const String &name, bool throw_exception)
IMeshgetMesh (Integer index) const
IPrimaryMeshgetPrimaryMesh (Integer index) const
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::IMeshMng
virtual ~IMeshMng ()=default
 Frees the resources.

Protected Member Functions

MeshHandle _addMeshHandle (const String &name)
void _destroyMesh (IPrimaryMesh *primary_mesh)
void _rebuildMeshList ()
Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Private Attributes

UniqueArray< IMesh * > m_meshes
UniqueArray< MeshHandlem_meshes_handle
IVariableMngm_variable_mng
MeshFactoryMngm_mesh_factory_mng
MeshHandle m_default_mesh_handle

Detailed Description

Definition at line 36 of file MeshMng.h.

Constructor & Destructor Documentation

◆ MeshMng()

Arcane::MeshMng::MeshMng ( IApplication * app,
IVariableMng * vm )

Definition at line 35 of file MeshMng.cc.

◆ ~MeshMng()

Arcane::MeshMng::~MeshMng ( )

Definition at line 46 of file MeshMng.cc.

Member Function Documentation

◆ _addMeshHandle()

MeshHandle Arcane::MeshMng::_addMeshHandle ( const String & name)
protected

Definition at line 233 of file MeshMng.cc.

◆ _destroyMesh()

void Arcane::MeshMng::_destroyMesh ( IPrimaryMesh * primary_mesh)
protected

Definition at line 202 of file MeshMng.cc.

◆ _rebuildMeshList()

void Arcane::MeshMng::_rebuildMeshList ( )
protected

Definition at line 245 of file MeshMng.cc.

◆ addMesh()

void Arcane::MeshMng::addMesh ( IMesh * mesh)

Definition at line 55 of file MeshMng.cc.

◆ createDefaultMeshHandle()

MeshHandle Arcane::MeshMng::createDefaultMeshHandle ( const String & name)

Definition at line 268 of file MeshMng.cc.

◆ createMeshHandle()

MeshHandle Arcane::MeshMng::createMeshHandle ( const String & name)
overridevirtual

Creates and returns a handle for a mesh with name name.

Throws an exception if a handle associated with this name already exists.

Implements Arcane::IMeshMng.

Definition at line 135 of file MeshMng.cc.

References ARCANE_FATAL, and findMeshHandle().

Here is the call graph for this function:

◆ defaultMeshHandle()

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

Handle for the default mesh.

Implements Arcane::IMeshMng.

Definition at line 60 of file MeshMng.h.

◆ destroyMesh()

void Arcane::MeshMng::destroyMesh ( MeshHandle handle)
overridevirtual

Destroys the mesh associated with handle.

The mesh must be a mesh implementing IPrimaryMesh.

Warning
handle must no longer be used after this call and the associated mesh either. If references to these two objects remain, the behavior is undefined.

Implements Arcane::IMeshMng.

Definition at line 188 of file MeshMng.cc.

References ARCANE_FATAL, Arcane::MeshHandle::hasMesh(), and Arcane::MeshHandle::mesh().

Here is the call graph for this function:

◆ destroyMeshes()

void Arcane::MeshMng::destroyMeshes ( )

Definition at line 171 of file MeshMng.cc.

◆ findMesh()

IMesh * Arcane::MeshMng::findMesh ( const String & name,
bool throw_exception )

Definition at line 147 of file MeshMng.cc.

◆ findMeshHandle() [1/2]

MeshHandle Arcane::MeshMng::findMeshHandle ( const String & name)
overridevirtual

Searches for the mesh with name name.

If the mesh is not found, the method throws an exception.

Implements Arcane::IMeshMng.

Definition at line 123 of file MeshMng.cc.

References findMeshHandle().

Here is the call graph for this function:

◆ findMeshHandle() [2/2]

MeshHandle * Arcane::MeshMng::findMeshHandle ( const String & name,
bool throw_exception )
overridevirtual

Searches for the mesh with name name.

If the mesh is not found, the method throws an exception if throw_exception is true or returns nullptr if throw_exception is false.

Implements Arcane::IMeshMng.

Definition at line 109 of file MeshMng.cc.

References ARCANE_FATAL.

Referenced by createMeshHandle(), and findMeshHandle().

Here is the caller graph for this function:

◆ getMesh()

IMesh * Arcane::MeshMng::getMesh ( Integer index) const

Definition at line 91 of file MeshMng.cc.

◆ getPrimaryMesh()

IPrimaryMesh * Arcane::MeshMng::getPrimaryMesh ( Integer index) const

Definition at line 100 of file MeshMng.cc.

◆ meshes()

ConstArrayView< IMesh * > Arcane::MeshMng::meshes ( ) const

Definition at line 162 of file MeshMng.cc.

◆ meshFactoryMng()

IMeshFactoryMng * Arcane::MeshMng::meshFactoryMng ( ) const
overridevirtual

Mesh factory associated with this manager.

Implements Arcane::IMeshMng.

Definition at line 259 of file MeshMng.cc.

◆ traceMng()

ITraceMng * Arcane::MeshMng::traceMng ( ) const
inlineoverridevirtual

Trace manager associated with this manager.

Implements Arcane::IMeshMng.

Definition at line 52 of file MeshMng.h.

References Arcane::TraceAccessor::traceMng().

Here is the call graph for this function:

◆ variableMng()

IVariableMng * Arcane::MeshMng::variableMng ( ) const
inlineoverridevirtual

Variable manager associated with this manager.

Implements Arcane::IMeshMng.

Definition at line 54 of file MeshMng.h.

Member Data Documentation

◆ m_default_mesh_handle

MeshHandle Arcane::MeshMng::m_default_mesh_handle
private

Definition at line 90 of file MeshMng.h.

◆ m_mesh_factory_mng

MeshFactoryMng* Arcane::MeshMng::m_mesh_factory_mng
private

Definition at line 89 of file MeshMng.h.

◆ m_meshes

UniqueArray<IMesh*> Arcane::MeshMng::m_meshes
private

Definition at line 86 of file MeshMng.h.

◆ m_meshes_handle

UniqueArray<MeshHandle> Arcane::MeshMng::m_meshes_handle
private

Definition at line 87 of file MeshMng.h.

◆ m_variable_mng

IVariableMng* Arcane::MeshMng::m_variable_mng
private

Definition at line 88 of file MeshMng.h.


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