OpendTect 8.0
Loading...
Searching...
No Matches
Functions
Conv Namespace Reference

Template based type conversion. More...

Functions

template<>
void set (bool &_to, const BufferString &s)
 
template<>
void set (bool &_to, const char *const &s)
 
template<>
void set (bool &_to, const double &d)
 
template<>
void set (bool &_to, const float &f)
 
template<>
void set (bool &_to, const int &i)
 
template<>
void set (bool &_to, const StringView &s)
 
template<>
void set (const char *&_to, const bool &b)
 
template<>
void set (const char *&_to, const double &d)
 
template<>
void set (const char *&_to, const float &f)
 
template<>
void set (const char *&_to, const od_int32 &i)
 
template<>
void set (const char *&_to, const od_int64 &i)
 
template<>
void set (const char *&_to, const od_uint32 &i)
 
template<>
void set (const char *&_to, const od_uint64 &i)
 
template<>
void set (const char *&_to, const short &i)
 
template<>
void set (const char *&_to, const unsigned short &i)
 
template<>
void set (double &, const BufferString &)
 
template<>
void set (double &, const char *const &)
 
template<>
void set (double &, const StringView &)
 
template<>
void set (float &, const BufferString &)
 
template<>
void set (float &, const char *const &)
 
template<>
void set (float &, const StringView &)
 
template<>
void set (float_complex &, const BufferString &)
 
template<>
void set (float_complex &, const char *const &)
 
template<>
void set (float_complex &, const StringView &)
 
template<>
void set (int &, const BufferString &)
 
template<>
void set (int &, const char *const &)
 
template<>
void set (int &, const StringView &)
 
template<>
void set (od_int32 &_to, const double &f)
 
template<>
void set (od_int32 &_to, const float &f)
 
template<>
void set (od_int64 &, const BufferString &)
 
template<>
void set (od_int64 &, const char *const &)
 
template<>
void set (od_int64 &, const StringView &)
 
template<>
void set (od_int64 &_to, const double &f)
 
template<>
void set (od_int64 &_to, const float &f)
 
template<>
void set (od_uint32 &, const BufferString &)
 
template<>
void set (od_uint32 &, const char *const &)
 
template<>
void set (od_uint32 &, const StringView &)
 
template<>
void set (od_uint32 &_to, const double &f)
 
template<>
void set (od_uint32 &_to, const float &f)
 
template<>
void set (od_uint64 &, const BufferString &)
 
template<>
void set (od_uint64 &, const char *const &)
 
template<>
void set (od_uint64 &, const StringView &)
 
template<>
void set (od_uint64 &_to, const double &f)
 
template<>
void set (od_uint64 &_to, const float &f)
 
template<>
void set (short &, const BufferString &)
 
template<>
void set (short &, const char *const &)
 
template<>
void set (short &, const StringView &)
 
template<>
void set (short &_to, const double &f)
 
template<>
void set (short &_to, const float &f)
 
template<class T , class F >
void set (T &_to, const F &fr)
 template based type conversion
 
template<>
void set (unsigned short &, const BufferString &)
 
template<>
void set (unsigned short &, const char *const &)
 
template<>
void set (unsigned short &, const StringView &)
 
template<>
void set (unsigned short &_to, const double &f)
 
template<>
void set (unsigned short &_to, const float &f)
 
template<class T , class F >
to (const F &fr)
 
template<class T , class F >
void udfset (T &_to, const F &fr, const T &und=Values::Undef< T >::val())
 template based type converstion, with check for undef
 
template<class T , class F >
udfto (const F &fr, const T &und=Values::Undef< T >::val())
 

Detailed Description

Template based type conversion.

Function Documentation

◆ set() [1/55]

template<>
void Conv::set ( bool & _to,
const BufferString & s )
inline

◆ set() [2/55]

template<>
void Conv::set ( bool & _to,
const char *const & s )
inline

◆ set() [3/55]

template<>
void Conv::set ( bool & _to,
const double & d )
inline

◆ set() [4/55]

template<>
void Conv::set ( bool & _to,
const float & f )
inline

◆ set() [5/55]

template<>
void Conv::set ( bool & _to,
const int & i )
inline

◆ set() [6/55]

template<>
void Conv::set ( bool & _to,
const StringView & s )
inline

◆ set() [7/55]

template<>
void Conv::set ( const char *& _to,
const bool & b )
inline

◆ set() [8/55]

template<>
void Conv::set ( const char *& _to,
const double & d )
inline

◆ set() [9/55]

template<>
void Conv::set ( const char *& _to,
const float & f )
inline

◆ set() [10/55]

template<>
void Conv::set ( const char *& _to,
const od_int32 & i )
inline

◆ set() [11/55]

template<>
void Conv::set ( const char *& _to,
const od_int64 & i )
inline

◆ set() [12/55]

template<>
void Conv::set ( const char *& _to,
const od_uint32 & i )
inline

◆ set() [13/55]

template<>
void Conv::set ( const char *& _to,
const od_uint64 & i )
inline

◆ set() [14/55]

template<>
void Conv::set ( const char *& _to,
const short & i )
inline

◆ set() [15/55]

template<>
void Conv::set ( const char *& _to,
const unsigned short & i )
inline

◆ set() [16/55]

template<>
void Conv::set ( double & ,
const BufferString &  )

◆ set() [17/55]

template<>
void Conv::set ( double & ,
const char *const &  )

◆ set() [18/55]

template<>
void Conv::set ( double & ,
const StringView &  )

◆ set() [19/55]

template<>
void Conv::set ( float & ,
const BufferString &  )

◆ set() [20/55]

template<>
void Conv::set ( float & ,
const char *const &  )

◆ set() [21/55]

template<>
void Conv::set ( float & ,
const StringView &  )

◆ set() [22/55]

template<>
void Conv::set ( float_complex & ,
const BufferString &  )

◆ set() [23/55]

template<>
void Conv::set ( float_complex & ,
const char *const &  )

◆ set() [24/55]

template<>
void Conv::set ( float_complex & ,
const StringView &  )

◆ set() [25/55]

template<>
void Conv::set ( int & ,
const BufferString &  )

◆ set() [26/55]

template<>
void Conv::set ( int & ,
const char *const &  )

◆ set() [27/55]

template<>
void Conv::set ( int & ,
const StringView &  )

◆ set() [28/55]

template<>
void Conv::set ( od_int32 & _to,
const double & f )
inline

◆ set() [29/55]

template<>
void Conv::set ( od_int32 & _to,
const float & f )
inline

◆ set() [30/55]

template<>
void Conv::set ( od_int64 & ,
const BufferString &  )

◆ set() [31/55]

template<>
void Conv::set ( od_int64 & ,
const char *const &  )

◆ set() [32/55]

template<>
void Conv::set ( od_int64 & ,
const StringView &  )

◆ set() [33/55]

template<>
void Conv::set ( od_int64 & _to,
const double & f )
inline

◆ set() [34/55]

template<>
void Conv::set ( od_int64 & _to,
const float & f )
inline

◆ set() [35/55]

template<>
void Conv::set ( od_uint32 & ,
const BufferString &  )

◆ set() [36/55]

template<>
void Conv::set ( od_uint32 & ,
const char *const &  )

◆ set() [37/55]

template<>
void Conv::set ( od_uint32 & ,
const StringView &  )

◆ set() [38/55]

template<>
void Conv::set ( od_uint32 & _to,
const double & f )
inline

◆ set() [39/55]

template<>
void Conv::set ( od_uint32 & _to,
const float & f )
inline

◆ set() [40/55]

template<>
void Conv::set ( od_uint64 & ,
const BufferString &  )

◆ set() [41/55]

template<>
void Conv::set ( od_uint64 & ,
const char *const &  )

◆ set() [42/55]

template<>
void Conv::set ( od_uint64 & ,
const StringView &  )

◆ set() [43/55]

template<>
void Conv::set ( od_uint64 & _to,
const double & f )
inline

◆ set() [44/55]

template<>
void Conv::set ( od_uint64 & _to,
const float & f )
inline

◆ set() [45/55]

template<>
void Conv::set ( short & ,
const BufferString &  )

◆ set() [46/55]

template<>
void Conv::set ( short & ,
const char *const &  )

◆ set() [47/55]

template<>
void Conv::set ( short & ,
const StringView &  )

◆ set() [48/55]

template<>
void Conv::set ( short & _to,
const double & f )
inline

◆ set() [49/55]

template<>
void Conv::set ( short & _to,
const float & f )
inline

◆ set() [50/55]

template<class T , class F >
void Conv::set ( T & _to,
const F & fr )
inline

template based type conversion

◆ set() [51/55]

template<>
void Conv::set ( unsigned short & ,
const BufferString &  )

◆ set() [52/55]

template<>
void Conv::set ( unsigned short & ,
const char *const &  )

◆ set() [53/55]

template<>
void Conv::set ( unsigned short & ,
const StringView &  )

◆ set() [54/55]

template<>
void Conv::set ( unsigned short & _to,
const double & f )
inline

◆ set() [55/55]

template<>
void Conv::set ( unsigned short & _to,
const float & f )
inline

◆ to()

template<class T , class F >
T Conv::to ( const F & fr)
inline

convenience to be able to code something like: val = Conv::to<the_type_of_val>( x ); if conversion fails, val will be set to the appropriate undef.

◆ udfset()

template<class T , class F >
void Conv::udfset ( T & _to,
const F & fr,
const T & und = Values::Undef<T>::val() )
inline

template based type converstion, with check for undef

◆ udfto()

template<class T , class F >
T Conv::udfto ( const F & fr,
const T & und = Values::Undef<T>::val() )
inline

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