OpendTect-6_4  6.4
Macros
varlenarray.h File Reference
Include dependency graph for varlenarray.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define mAllocLargeVarLenArr(type, varnm, __size)
 
#define mAllocVarLenArr(type, varnm, __size)   type varnm[__size];
 
#define mVarLenArr(varnm)   varnm
 
#define mIsVarLenArrOK(varnm)   (true)
 
#define mAllocVarLenIdxArr(tp, var, sz)
 

Macro Definition Documentation

#define mAllocLargeVarLenArr (   type,
  varnm,
  __size 
)
Value:
{ \
const std::size_t __allocsize = __size; \
if ( __allocsize ) \
{ \
mTryAllocPtrMan( varnm, type [__allocsize] ); \
} \
varnm.setSize( __allocsize ); \
}
#define mTryAllocPtrMan(var, stmt)
Definition: commondefs.h:244
Definition: ptrman.h:119
#define mAllocVarLenArr (   type,
  varnm,
  __size 
)    type varnm[__size];
#define mAllocVarLenIdxArr (   tp,
  var,
  sz 
)
Value:
mAllocVarLenArr(tp,var,sz) \
if ( mIsVarLenArrOK(var) ) \
for ( tp idx=sz-1; idx>=0; idx-- ) \
var[idx] = idx;
#define mIsVarLenArrOK(varnm)
Definition: varlenarray.h:57
#define mAllocVarLenArr(type, varnm, __size)
Definition: varlenarray.h:54
#define mIsVarLenArrOK (   varnm)    (true)
#define mVarLenArr (   varnm)    varnm

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019