12#ifndef ARCANE_CORE_MESHHANDLE_H
13#define ARCANE_CORE_MESHHANDLE_H
18#include "arccore/base/StringView.h"
19#include "arccore/base/String.h"
47class ARCANE_CORE_EXPORT MeshHandle
69 const String& meshName()
const {
return m_mesh_name; }
70 bool isNull()
const {
return m_is_null; }
71 IMesh*
mesh()
const {
return m_mesh_ptr; }
72 IMeshBase* meshBase()
const {
return m_mesh_base_ptr; }
77 IUserDataList* userDataList()
const {
return m_user_data_list; }
79 bool isDoFatalInMeshMethod()
const {
return m_do_fatal_in_mesh_method; }
89 IMesh* m_mesh_ptr =
nullptr;
98 bool m_is_null =
true;
99 bool m_do_fatal_in_mesh_method =
false;
140 ARCCORE_DEPRECATED_2020(
"Do not use this method. Try to get ISubDomain from another way")
160 const String& meshName()
const {
return m_ref->meshName(); }
163 bool isNull()
const {
return m_ref->isNull(); }
169 const void*
reference()
const {
return m_ref.get(); }
174 void _setMesh(IMesh* mesh) { m_ref->_setMesh(mesh); }
177 void _destroyMesh() { m_ref->_destroyMesh(); }
180 IMesh* _internalMeshOrNull()
const {
return m_ref->mesh(); }
184 Arccore::ReferenceCounter<MeshHandleRef> m_ref;
Declarations of Arcane's general types.
Declarations of types used in Arcane.
Interface of an observable.
Interface of the subdomain manager.
Interface of a list that manages user data.
Variable manager interface.
IMesh * mesh() const
Associated mesh. Can be null if the mesh has not yet been created.
const MeshHandle & handle() const
Associated handle.
MeshHandleOrMesh(const MeshHandle &handle)
Constructs an instance from a MeshHandle.
ITraceMng * traceMng() const
Associated trace manager. nullptr if isNull() is true.
ISubDomain * subDomain() const
Associated sub-domain. Null if isNull() is true.
bool hasMesh() const
Indicates if the associated mesh has already been created (i.e.: mesh() is valid).
IMesh * meshOrNull() const
Returns the mesh associated with this instance.
bool isNull() const
Indicates if the handle is null (it does not reference any existing mesh or not).
IMesh * mesh() const
Associated mesh.
IUserDataList * meshUserDataList() const
Associated user data.
IVariableMng * variableMng() const
Associated variable manager. nullptr if isNull() is true.
IMeshMng * meshMng() const
Associated mesh manager. nullptr if isNull() is true.
IObservable * onDestroyObservable() const
Observable to be notified of destruction.
Base class of an observable.
Thread-safe implementation of a reference counter.
Unicode character string.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --