management class for Gmsh interface More...
Gmsh uses global (and static members) variables that are initialized and finalized by Gmsh API commands. This class manages geoMeshBase usage of Gmsh to guarantee finalization only when no geoMeshBase instances are left.
Definition at line 66 of file geoMeshBase.H.
Public Member Functions | |
~GmshInterface () | |
GmshInterface (const GmshInterface &)=delete | |
GmshInterface & | operator= (const GmshInterface &)=delete |
GmshInterface (GmshInterface &&)=delete | |
GmshInterface & | operator= (GmshInterface &&)=delete |
Static Public Member Functions | |
static void | Initialize () |
Initialize Gmsh. More... | |
static void | Finalize () |
Finalize Gmsh. More... | |
Private Member Functions | |
GmshInterface () | |
Static Private Attributes | |
static std::shared_ptr< GmshInterface > | instance = nullptr |
static int | count = 0 |
NEM::MSH::GmshInterface::~GmshInterface | ( | ) |
Definition at line 57 of file geoMeshBase.C.
|
delete |
|
delete |
|
private |
Definition at line 48 of file geoMeshBase.C.
Referenced by Initialize().
|
static |
Will only call gmsh::finalize() if count is zero.
Definition at line 72 of file geoMeshBase.C.
References count, and instance.
Referenced by NEM::MSH::geoMeshBase::~geoMeshBase(), and NEM::MSH::gmshGeoMesh::~gmshGeoMesh().
|
static |
Will only call gmsh::initialize() on first call to method.
Definition at line 67 of file geoMeshBase.C.
References count, GmshInterface(), and instance.
Referenced by NEM::MSH::foamGeoMesh::foam2GM(), NEM::MSH::geoMeshBase::geoMeshBase(), NEM::MSH::inpGeoMesh::inp2GM(), NEM::MSH::vtkGeoMesh::vtk2GM(), and NEM::MSH::vtkStandardNewMacro().
|
delete |
|
delete |
|
staticprivate |
Definition at line 92 of file geoMeshBase.H.
Referenced by Finalize(), Initialize(), and ~GmshInterface().
|
staticprivate |
Definition at line 91 of file geoMeshBase.H.
Referenced by Finalize(), Initialize(), and ~GmshInterface().