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

Mesh manager interface. More...

#include <arcane/core/IMeshMng.h>

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.

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

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

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

Referenced by Arcane::CaseOptions::_setMeshHandleAndCheckDisabled().


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