Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::IMeshMng Class Referenceabstract

Mesh manager interface. More...

#include <arcane/core/IMeshMng.h>

Inheritance diagram for Arcane::IMeshMng:
Collaboration diagram for Arcane::IMeshMng:

Public Member Functions

virtual ~IMeshMng ()=default
 Frees the resources.
virtual ITraceMngtraceMng () const =0
 Trace manager associated with this manager.
virtual IMeshFactoryMngmeshFactoryMng () const =0
 Mesh factory associated with this manager.
virtual IVariableMngvariableMng () const =0
 Variable manager associated with this manager.
virtual MeshHandlefindMeshHandle (const String &name, bool throw_exception)=0
 Searches for the mesh with name name.
virtual MeshHandle findMeshHandle (const String &name)=0
 Searches for the mesh with name name.
virtual MeshHandle createMeshHandle (const String &name)=0
 Creates and returns a handle for a mesh with name name.
virtual void destroyMesh (MeshHandle handle)=0
 Destroys the mesh associated with handle.
virtual MeshHandle defaultMeshHandle () const =0
 Handle for the default mesh.

Detailed Description

Mesh manager interface.

This interface manages a list of meshes and allows creating meshes or retrieving an existing mesh by its name.

Mesh creation is done via 'IMeshFactoryMng' whose instance can be retrieved via meshFactoryMng(). Effective mesh creation cannot take place until after reading the dataset. However, it is possible to create a reference (via createMeshHandle()) to a mesh at any time.

Definition at line 40 of file IMeshMng.h.

Member Function Documentation

◆ createMeshHandle()

virtual MeshHandle Arcane::IMeshMng::createMeshHandle ( const String & name)
pure virtual

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

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

Implemented in Arcane::MeshMng.

◆ defaultMeshHandle()

virtual MeshHandle Arcane::IMeshMng::defaultMeshHandle ( ) const
pure virtual

Handle for the default mesh.

Implemented in Arcane::MeshMng.

◆ destroyMesh()

virtual void Arcane::IMeshMng::destroyMesh ( MeshHandle handle)
pure virtual

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.

Implemented in Arcane::MeshMng.

◆ findMeshHandle() [1/2]

virtual MeshHandle Arcane::IMeshMng::findMeshHandle ( const String & name)
pure virtual

Searches for the mesh with name name.

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

Implemented in Arcane::MeshMng.

◆ findMeshHandle() [2/2]

virtual MeshHandle * Arcane::IMeshMng::findMeshHandle ( const String & name,
bool throw_exception )
pure virtual

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.

Implemented in Arcane::MeshMng.

Referenced by Arcane::mesh::DynamicMesh::_readFromDump(), Arcane::CaseOptions::_setMeshHandleAndCheckDisabled(), Arcane::mesh::ItemFamily::readFromDump(), and Arcane::TimeHistoryMngInternal::readVariables().

Here is the caller graph for this function:

◆ meshFactoryMng()

virtual IMeshFactoryMng * Arcane::IMeshMng::meshFactoryMng ( ) const
pure virtual

Mesh factory associated with this manager.

Implemented in Arcane::MeshMng.

Referenced by Arcane::ArcaneCaseMeshService::createMesh(), and Arcane::MainFactory::createMesh().

Here is the caller graph for this function:

◆ traceMng()

virtual ITraceMng * Arcane::IMeshMng::traceMng ( ) const
pure virtual

Trace manager associated with this manager.

Implemented in Arcane::MeshMng.

◆ variableMng()

virtual IVariableMng * Arcane::IMeshMng::variableMng ( ) const
pure virtual

Variable manager associated with this manager.

Implemented in Arcane::MeshMng.

Referenced by Arcane::mesh::DynamicMeshFactoryBase::createMesh(), and Arcane::PolyhedralMeshFactory::createMesh().

Here is the caller graph for this function:

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