![]() |
OpendTect
7.0
|
Templatized undefined and initialization (i.e. null) values. More...
Classes | |
| class | Undef |
| Templatized undefined values. More... | |
| class | Undef< bool > |
| Undefined bool. More... | |
| class | Undef< BufferString > |
| class | Undef< char * > |
| Undefined char*. More... | |
| class | Undef< char > |
| Undefined char. 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< float > |
| Undefined float. More... | |
| class | Undef< float_complex > |
| Undefined float_complex. More... | |
| class | Undef< long double > |
| Undefined long double. More... | |
| class | Undef< OD::Color > |
| Undefined Color. More... | |
| class | Undef< Pos::GeomID > |
| class | Undef< std::int16_t > |
| Undefined od_int16. More... | |
| class | Undef< std::int32_t > |
| Undefined od_int32. More... | |
| class | Undef< std::int64_t > |
| Undefined od_int64. More... | |
| class | Undef< std::uint16_t > |
| Undefined od_uint16. More... | |
| class | Undef< std::uint32_t > |
| Undefined od_uint32. More... | |
| class | Undef< std::uint64_t > |
| Undefined od_uint64. More... | |
| class | Undef< StringView > |
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 initialization (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-2024