|
OpendTect-6_4
6.4
|
Go to the documentation of this file. 18 # define __varlenwithptr__ 22 # define __varlenwithptr__ 27 # define __varlenwithptr__ 31 #define mAllocLargeVarLenArr( type, varnm, __size ) \ 32 ArrPtrMan<type> varnm; \ 34 const std::size_t __allocsize = __size; \ 37 mTryAllocPtrMan( varnm, type [__allocsize] ); \ 39 varnm.setSize( __allocsize ); \ 44 #ifdef __varlenwithptr__ 46 # define mAllocVarLenArr( type, varnm, __size ) \ 47 mAllocLargeVarLenArr( type, varnm, __size ) 49 # define mVarLenArr(varnm) varnm.ptr() 50 # define mIsVarLenArrOK(varnm) ((bool)varnm.ptr()) 54 # define mAllocVarLenArr( type, varnm, __size ) \ 56 # define mVarLenArr(varnm) varnm 57 # define mIsVarLenArrOK(varnm) (true) 62 #define mAllocVarLenIdxArr(tp,var,sz) \ 63 mAllocVarLenArr(tp,var,sz) \ 64 if ( mIsVarLenArrOK(var) ) \ 65 for ( tp idx=sz-1; idx>=0; idx-- ) \ 69 #undef __varlenwithptr__
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B. V. 2019