MOAB: Mesh Oriented datABase  (version 5.5.0)
MBiGeom Class Reference

#include <FBiGeom_MOAB.hpp>

+ Collaboration diagram for MBiGeom:

Public Member Functions

 MBiGeom ()
 
 MBiGeom (MBiMesh *mbi, moab::FBEngine *fbe)
 
 ~MBiGeom ()
 
moab::InterfacemoabItf ()
 
moab::FBEngineFBItf ()
 
MBiMeshmbimesh ()
 

Private Attributes

MBiMesh_mbimesh
 
moab::FBEngine_fbe
 
bool _mbimeshCreated
 
bool _fbeCreated
 

Detailed Description

Definition at line 20 of file FBiGeom_MOAB.hpp.

Constructor & Destructor Documentation

◆ MBiGeom() [1/2]

MBiGeom::MBiGeom ( )
inline

Definition at line 27 of file FBiGeom_MOAB.hpp.

28  {
29  // this will instance a moab Core, too
30  _mbimesh = new MBiMesh( NULL );
32  // pass mbi, so they will point to the same implementation
33  _fbe = new FBEngine( mbi );
35  }

References _fbe, _fbeCreated, _mbimesh, _mbimeshCreated, and MBiMesh::mbImpl.

◆ MBiGeom() [2/2]

MBiGeom::MBiGeom ( MBiMesh mbi,
moab::FBEngine fbe 
)
inline

Definition at line 36 of file FBiGeom_MOAB.hpp.

37  {
38  _mbimesh = mbi;
39  _fbe = fbe;
40  _mbimeshCreated = _fbeCreated = false;
41  }

References _fbe, _fbeCreated, _mbimesh, and _mbimeshCreated.

◆ ~MBiGeom()

MBiGeom::~MBiGeom ( )
inline

Definition at line 42 of file FBiGeom_MOAB.hpp.

43  {
44  // some cleanup here
45  if( _fbeCreated ) delete _fbe;
46  if( _mbimeshCreated ) delete _mbimesh;
47  }

References _fbe, _fbeCreated, _mbimesh, and _mbimeshCreated.

Member Function Documentation

◆ FBItf()

moab::FBEngine* MBiGeom::FBItf ( )
inline

Definition at line 52 of file FBiGeom_MOAB.hpp.

53  {
54  return _fbe;
55  }

References _fbe.

◆ mbimesh()

MBiMesh* MBiGeom::mbimesh ( )
inline

Definition at line 56 of file FBiGeom_MOAB.hpp.

57  {
58  return _mbimesh;
59  }

References _mbimesh.

◆ moabItf()

moab::Interface* MBiGeom::moabItf ( )
inline

Definition at line 48 of file FBiGeom_MOAB.hpp.

49  {
50  return _mbimesh->mbImpl;
51  }

References _mbimesh, and MBiMesh::mbImpl.

Member Data Documentation

◆ _fbe

moab::FBEngine* MBiGeom::_fbe
private

Definition at line 23 of file FBiGeom_MOAB.hpp.

Referenced by FBItf(), MBiGeom(), and ~MBiGeom().

◆ _fbeCreated

bool MBiGeom::_fbeCreated
private

Definition at line 24 of file FBiGeom_MOAB.hpp.

Referenced by MBiGeom(), and ~MBiGeom().

◆ _mbimesh

MBiMesh* MBiGeom::_mbimesh
private

Definition at line 22 of file FBiGeom_MOAB.hpp.

Referenced by MBiGeom(), mbimesh(), moabItf(), and ~MBiGeom().

◆ _mbimeshCreated

bool MBiGeom::_mbimeshCreated
private

Definition at line 24 of file FBiGeom_MOAB.hpp.

Referenced by MBiGeom(), and ~MBiGeom().


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