Handle on a mesh. More...
#include <arcane/core/MeshHandle.h>
Public Member Functions | |
| IMesh * | mesh () const |
| Associated mesh. | |
| 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. | |
| ISubDomain * | subDomain () const |
| Associated sub-domain. Null if isNull() is true. | |
| IMeshMng * | meshMng () const |
| Associated mesh manager. nullptr if isNull() is true. | |
| ITraceMng * | traceMng () const |
| Associated trace manager. nullptr if isNull() is true. | |
| IVariableMng * | variableMng () const |
| Associated variable manager. nullptr if isNull() is true. | |
| IApplication * | application () const |
| Associated application. nullptr if isNull() is true. | |
| IUserDataList * | meshUserDataList () const |
| Associated user data. | |
| const String & | meshName () const |
| bool | isNull () const |
| Indicates if the handle is null (it does not reference any existing mesh or not). | |
| IObservable * | onDestroyObservable () const |
| Observable to be notified of destruction. | |
| const void * | reference () const |
| void | _setMesh (IMesh *mesh) |
| void | _destroyMesh () |
| IMesh * | _internalMeshOrNull () const |
Friends | |
| class | MeshMng |
Handle on a mesh.
This class uses reference counting semantics.
This class allows managing a reference to a mesh (IMesh) before it is explicitly created. This allows services and modules to specify which mesh they refer to during their construction.
It also allows associating user data with the mesh via meshUserDataList().
Definition at line 47 of file MeshHandle.h.
| Arcane::MeshHandle::MeshHandle | ( | ) |
Definition at line 105 of file MeshHandle.cc.
|
inline |
Definition at line 177 of file MeshHandle.h.
|
inline |
Definition at line 180 of file MeshHandle.h.
|
inline |
Definition at line 174 of file MeshHandle.h.
| IApplication * Arcane::MeshHandle::application | ( | ) | const |
Associated application. nullptr if isNull() is true.
Definition at line 177 of file MeshHandle.cc.
| bool Arcane::MeshHandle::hasMesh | ( | ) | const |
Indicates if the associated mesh has already been created (i.e.: mesh() is valid).
Definition at line 123 of file MeshHandle.cc.
Referenced by Arcane::VerifierService::_getVariables().
|
inline |
Indicates if the handle is null (it does not reference any existing mesh or not).
Definition at line 163 of file MeshHandle.h.
Referenced by Arcane::Materials::MeshMaterialVariableCommonStaticImpl< TrueType >::getReference(), Arcane::Materials::IMeshMaterialMng::getTrueReference(), and Arcane::Materials::MeshMaterialVariableBuildTraits< TrueType >::getVariableReference().
| IMesh * Arcane::MeshHandle::mesh | ( | ) | const |
Associated mesh.
It is forbidden to call this method if the mesh has not yet been created. Eventually, an exception will be raised in this case.
If we are not sure that the mesh exists, we can test its existence via hasMesh().
Definition at line 133 of file MeshHandle.cc.
References ARCANE_FATAL.
Referenced by Arcane::VerifierService::_getVariables().
| IMeshMng * Arcane::MeshHandle::meshMng | ( | ) | const |
Associated mesh manager. nullptr if isNull() is true.
Definition at line 114 of file MeshHandle.cc.
Referenced by Arcane::CaseOptions::_setMeshHandleAndCheckDisabled().
|
inline |
Definition at line 160 of file MeshHandle.h.
| IMesh * Arcane::MeshHandle::meshOrNull | ( | ) | const |
Returns the mesh associated with this instance.
Unlike mesh(), this can be called even if the associated mesh has not yet been created. In this case, a null pointer is returned.
Definition at line 150 of file MeshHandle.cc.
Referenced by Arcane::ICartesianMesh::getReference(), and Arcane::MeshUtils::markMeshConnectivitiesAsMostlyReadOnly().
|
inline |
Associated user data.
Definition at line 158 of file MeshHandle.h.
Referenced by Arcane::ICartesianMesh::getReference().
| IObservable * Arcane::MeshHandle::onDestroyObservable | ( | ) | const |
Observable to be notified of destruction.
Definition at line 186 of file MeshHandle.cc.
|
inline |
Definition at line 169 of file MeshHandle.h.
|
inline |
Associated sub-domain. Null if isNull() is true.
Definition at line 141 of file MeshHandle.h.
References subDomain().
Referenced by subDomain().
| ITraceMng * Arcane::MeshHandle::traceMng | ( | ) | const |
Associated trace manager. nullptr if isNull() is true.
Definition at line 159 of file MeshHandle.cc.
| IVariableMng * Arcane::MeshHandle::variableMng | ( | ) | const |
Associated variable manager. nullptr if isNull() is true.
Definition at line 168 of file MeshHandle.cc.
|
friend |
Definition at line 52 of file MeshHandle.h.