OpendTect
6.6
|
Templatized undefined and initialisation (i.e. null) values. More...
Classes | |
class | Undef |
Templatized undefined values. More... | |
class | Undef< bool > |
Undefined bool. More... | |
class | Undef< char * > |
Undefined char*. More... | |
class | Undef< char > |
Undefined char. More... | |
class | Undef< Color > |
Undefined Color. More... | |
class | Undef< const char * > |
Undefined const char*. More... | |
class | Undef< Coord > |
Undefined Coord. More... | |
class | Undef< Coord3 > |
Undefined Coord3. More... | |
class | Undef< double > |
Undefined double. More... | |
class | Undef< FixedString > |
class | Undef< float > |
Undefined float. More... | |
class | Undef< float_complex > |
Undefined float_complex. More... | |
class | Undef< int > |
Undefined od_int32. More... | |
class | Undef< int64_t > |
Undefined od_int64. More... | |
class | Undef< long double > |
Undefined long double. More... | |
class | Undef< short > |
Undefined od_int16. More... | |
class | Undef< uint64_t > |
Undefined od_uint64. More... | |
class | Undef< unsigned int > |
Undefined od_uint32. More... | |
class | Undef< unsigned short > |
Undefined od_uint16. More... | |
Functions | |
template<class T > | |
bool | hasUdf () |
template<class T > | |
bool | isUdf (const T &t) |
template<class T > | |
T & | setUdf (T &u) |
template<class T > | |
const T & | udfVal (const T &) |
Templatized undefined and initialisation (i.e. null) values.
Since these are all templates, they can be used much more generic than previous solutions with macros.
Use like:
T x = mUdf(T); if ( mIsUdf(x) ) mSetUdf(y);
|
inline |
|
inline |
|
inline |
|
inline |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022