OpendTect  6.6
Classes | Functions
Values Namespace Reference

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 &)
 

Detailed Description

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);

Function Documentation

◆ hasUdf()

template<class T >
bool Values::hasUdf ( )
inline

◆ isUdf()

template<class T >
bool Values::isUdf ( const T &  t)
inline

◆ setUdf()

template<class T >
T& Values::setUdf ( T &  u)
inline

◆ udfVal()

template<class T >
const T& Values::udfVal ( const T &  )
inline

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