MOAB: Mesh Oriented datABase  (version 5.5.0)
FBiGeom_MOAB.hpp File Reference
#include "FBiGeom.h"
#include "moab/Interface.hpp"
#include "moab/FBEngine.hpp"
#include "iMesh.h"
#include "MBiMesh.hpp"
+ Include dependency graph for FBiGeom_MOAB.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MBiGeom
 

Macros

#define MBI   MBI_cast( instance )
 
#define GETGTT(a)   ( reinterpret_cast< MBiGeom* >( a )->FBItf()->get_gtt() )
 
#define IMESH_INSTANCE(i)   reinterpret_cast< iMesh_Instance >( reinterpret_cast< MBiGeom* >( i )->mbimesh() )
 
#define MBIM   ( reinterpret_cast< MBiGeom* >( instance )->mbimesh() )
 
#define RETURN(CODE)
 
#define ERROR(CODE, MSG)
 
#define CHKERR(CODE, MSG)
 
#define FWDERR()
 
#define CHECK_SIZE(array, allocated, size, type, retval)
 

Functions

static moab::InterfaceMBI_cast (FBiGeom_Instance i)
 
static moab::FBEngineFBE_cast (FBiGeom_Instance i)
 
static moab::EntityHandle MBH_cast (iBase_EntityHandle h)
 
static bool FBiGeom_isError (int code)
 
static bool FBiGeom_isError (moab::ErrorCode code)
 

Variables

const iBase_ErrorType iBase_ERROR_MAP [moab::MB_FAILURE+1]
 

Macro Definition Documentation

◆ CHECK_SIZE

#define CHECK_SIZE (   array,
  allocated,
  size,
  type,
  retval 
)
Value:
do \
{ \
if( 0 != ( allocated ) && NULL != ( array ) && ( allocated ) < ( size ) ) \
{ \
ERROR( iBase_MEMORY_ALLOCATION_FAILED, "Allocated array not " \
"enough to hold returned contents." ); \
} \
if( ( size ) && ( ( allocated ) == 0 || NULL == ( array ) ) ) \
{ \
( array ) = (type*)malloc( ( size ) * sizeof( type ) ); \
( allocated ) = ( size ); \
if( NULL == ( array ) ) \
{ \
ERROR( iBase_MEMORY_ALLOCATION_FAILED, "Couldn't allocate array." ); \
} \
} \
} while( false )

Definition at line 124 of file FBiGeom_MOAB.hpp.

◆ CHKERR

#define CHKERR (   CODE,
  MSG 
)
Value:
do \
{ \
if( FBiGeom_isError( ( CODE ) ) ) ERROR( ( CODE ), ( MSG ) ); \
} while( false )

Definition at line 112 of file FBiGeom_MOAB.hpp.

◆ ERROR

#define ERROR (   CODE,
  MSG 
)
Value:
do \
{ \
*err = MBIM->set_last_error( ( CODE ), ( MSG ) ); \
return; \
} while( false )

Definition at line 105 of file FBiGeom_MOAB.hpp.

◆ FWDERR

#define FWDERR ( )
Value:
do \
{ \
if( FBiGeom_isError( *err ) ) return; \
} while( false )

Definition at line 118 of file FBiGeom_MOAB.hpp.

◆ GETGTT

#define GETGTT (   a)    ( reinterpret_cast< MBiGeom* >( a )->FBItf()->get_gtt() )

Definition at line 80 of file FBiGeom_MOAB.hpp.

◆ IMESH_INSTANCE

#define IMESH_INSTANCE (   i)    reinterpret_cast< iMesh_Instance >( reinterpret_cast< MBiGeom* >( i )->mbimesh() )

Definition at line 92 of file FBiGeom_MOAB.hpp.

◆ MBI

#define MBI   MBI_cast( instance )

Definition at line 67 of file FBiGeom_MOAB.hpp.

◆ MBIM

#define MBIM   ( reinterpret_cast< MBiGeom* >( instance )->mbimesh() )

Definition at line 96 of file FBiGeom_MOAB.hpp.

◆ RETURN

#define RETURN (   CODE)
Value:
do \
{ \
*err = MBIM->set_last_error( ( CODE ), "" ); \
return; \
} while( false )

Definition at line 98 of file FBiGeom_MOAB.hpp.

Function Documentation

◆ FBE_cast()

◆ FBiGeom_isError() [1/2]

static bool FBiGeom_isError ( int  code)
inlinestatic

Definition at line 82 of file FBiGeom_MOAB.hpp.

83 {
84  return ( iBase_SUCCESS != code );
85 }

References iBase_SUCCESS.

◆ FBiGeom_isError() [2/2]

static bool FBiGeom_isError ( moab::ErrorCode  code)
inlinestatic

Definition at line 86 of file FBiGeom_MOAB.hpp.

87 {
88  return ( moab::MB_SUCCESS != code );
89 }

References MB_SUCCESS.

◆ MBH_cast()

◆ MBI_cast()

static moab::Interface* MBI_cast ( FBiGeom_Instance  i)
inlinestatic

Definition at line 62 of file FBiGeom_MOAB.hpp.

63 {
64  return reinterpret_cast< MBiGeom* >( i )->moabItf();
65 }

Variable Documentation

◆ iBase_ERROR_MAP

const iBase_ErrorType iBase_ERROR_MAP[moab::MB_FAILURE+1]

Definition at line 12 of file FBiGeom_MOAB.hpp.

Referenced by iMeshP_getPartsArrOnRank(), and iMeshP_getPartsOnRank().