#include "iMesh.h"
#include "MBiMesh.hpp"
#include "moab/Forward.hpp"
#include <cstring>
#include <cstdlib>
#include <cstdio>
Go to the source code of this file.
|
#define | PP_CAT_(a, b) a##b |
|
#define | PP_CAT(a, b) PP_CAT_( a, b ) |
|
#define | RETURN(CODE) |
|
#define | ERROR(CODE, MSG) |
|
#define | CHKERR(CODE, MSG) |
|
#define | CHKENUM(VAL, TYPE, ERR) |
|
#define | CHKTAGTYPE(TAG, TYPE) |
|
#define | CHKNONEMPTY() |
|
#define | ALLOC_CHECK_ARRAY(array, this_size) |
|
#define | ALLOC_CHECK_TAG_ARRAY(array, this_size) |
|
#define | KEEP_ARRAY(array) array##_manager.keep_array() |
|
#define | ALLOC_CHECK_ARRAY_NOFAIL(array, this_size) |
|
◆ ALLOC_CHECK_ARRAY
#define ALLOC_CHECK_ARRAY |
( |
|
array, |
|
|
|
this_size |
|
) |
| |
Value: iMeshArrayManager array##_manager( instance,
reinterpret_cast< void**
>( array ), *( array##_allocated ), \
*( array##_size ), this_size, sizeof( **( array ) ), err ); \
Definition at line 98 of file iMesh_MOAB.hpp.
◆ ALLOC_CHECK_ARRAY_NOFAIL
#define ALLOC_CHECK_ARRAY_NOFAIL |
( |
|
array, |
|
|
|
this_size |
|
) |
| |
◆ ALLOC_CHECK_TAG_ARRAY
#define ALLOC_CHECK_TAG_ARRAY |
( |
|
array, |
|
|
|
this_size |
|
) |
| |
Value: iMeshArrayManager array##_manager( instance,
reinterpret_cast< void**
>( array ), *( array##_allocated ), \
*( array##_size ), this_size, 1, err ); \
Definition at line 103 of file iMesh_MOAB.hpp.
◆ CHKENUM
#define CHKENUM |
( |
|
VAL, |
|
|
|
TYPE, |
|
|
|
ERR |
|
) |
| |
Value: do \
{ \
if( ( VAL ) <
PP_CAT( TYPE, _MIN ) || ( VAL ) >
PP_CAT( TYPE, _MAX ) ) \
ERROR( ( ERR ), "Invalid enumeration value" ); \
} while( false )
Definition at line 65 of file iMesh_MOAB.hpp.
◆ CHKERR
#define CHKERR |
( |
|
CODE, |
|
|
|
MSG |
|
) |
| |
◆ CHKNONEMPTY
Value: do \
{ \
int count, result; \
CHKERR( result, "Couldn't get number of entities" ); \
} while( false )
Definition at line 86 of file iMesh_MOAB.hpp.
◆ CHKTAGTYPE
#define CHKTAGTYPE |
( |
|
TAG, |
|
|
|
TYPE |
|
) |
| |
Value: do \
{ \
int type, result; \
iMesh_getTagType( instance, ( TAG ), &type, &result ); \
CHKERR( result, "Couldn't get tag data type" ); \
break; \
} while( false )
Definition at line 74 of file iMesh_MOAB.hpp.
◆ ERROR
#define ERROR |
( |
|
CODE, |
|
|
|
MSG |
|
) |
| |
Value: do \
{ \
*err =
MBIMESHI->set_last_error( ( CODE ), ( MSG ) ); \
return; \
} while( false )
Definition at line 52 of file iMesh_MOAB.hpp.
◆ KEEP_ARRAY
#define KEEP_ARRAY |
( |
|
array | ) |
array##_manager.keep_array() |
◆ PP_CAT
#define PP_CAT |
( |
|
a, |
|
|
|
b |
|
) |
| PP_CAT_( a, b ) |
◆ PP_CAT_
#define PP_CAT_ |
( |
|
a, |
|
|
|
b |
|
) |
| a##b |
◆ RETURN
Value: do \
{ \
*err =
MBIMESHI->set_last_error( ( CODE ),
"" ); \
return; \
} while( false )
Definition at line 45 of file iMesh_MOAB.hpp.
◆ compare_no_case()
int compare_no_case |
( |
const char * |
str1, |
|
|
const char * |
str2, |
|
|
size_t |
n |
|
) |
| |
|
inline |
Definition at line 167 of file iMesh_MOAB.hpp.
169 for(
size_t i = 1; i != n && *str1 && toupper( *str1 ) == toupper( *str2 ); ++i, ++str1, ++str2 )
171 return toupper( *str2 ) - toupper( *str1 );
Referenced by filter_options().
◆ filter_options()
std::string filter_options |
( |
const char * |
begin, |
|
|
const char * |
end |
|
) |
| |
|
inline |
◆ iMesh_isError() [1/2]
◆ iMesh_isError() [2/2]
static bool iMesh_isError |
( |
int |
code | ) |
|
|
inlinestatic |
◆ iBase_ERROR_MAP
◆ mb_data_type_table
◆ mb_topology_table
const EntityType mb_topology_table[MBMAXTYPE+1] |
|
extern |
◆ tstt_data_type_table
◆ tstt_topology_table
◆ tstt_type_table