OpendTect  6.6
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 FixedString &s)
 
template<>
void set (bool &_to, const float &f)
 
template<>
void set (bool &_to, const int &i)
 
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 int &i)
 
template<>
void set (const char *&_to, const int64_t &i)
 
template<>
void set (const char *&_to, const short &i)
 
template<>
void set (const char *&_to, const uint64_t &i)
 
template<>
void set (const char *&_to, const unsigned int &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 FixedString &)
 
template<>
void set (float &, const BufferString &)
 
template<>
void set (float &, const char *const &)
 
template<>
void set (float &, const FixedString &)
 
template<>
void set (float_complex &, const BufferString &)
 
template<>
void set (float_complex &, const char *const &)
 
template<>
void set (float_complex &, const FixedString &)
 
template<>
void set (int &, const BufferString &)
 
template<>
void set (int &, const char *const &)
 
template<>
void set (int &, const FixedString &)
 
template<>
void set (int &_to, const double &f)
 
template<>
void set (int &_to, const float &f)
 
template<>
void set (int64_t &, const BufferString &)
 
template<>
void set (int64_t &, const char *const &)
 
template<>
void set (int64_t &, const FixedString &)
 
template<>
void set (int64_t &_to, const double &f)
 
template<>
void set (int64_t &_to, const float &f)
 
template<>
void set (short &, const BufferString &)
 
template<>
void set (short &, const char *const &)
 
template<>
void set (short &, const FixedString &)
 
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 More...
 
template<>
void set (uint64_t &, const BufferString &)
 
template<>
void set (uint64_t &, const char *const &)
 
template<>
void set (uint64_t &, const FixedString &)
 
template<>
void set (uint64_t &_to, const double &f)
 
template<>
void set (uint64_t &_to, const float &f)
 
template<>
void set (unsigned int &, const BufferString &)
 
template<>
void set (unsigned int &, const char *const &)
 
template<>
void set (unsigned int &, const FixedString &)
 
template<>
void set (unsigned int &_to, const double &f)
 
template<>
void set (unsigned int &_to, const float &f)
 
template<>
void set (unsigned short &, const BufferString &)
 
template<>
void set (unsigned short &, const char *const &)
 
template<>
void set (unsigned short &, const FixedString &)
 
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 More...
 
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 FixedString s 
)
inline

◆ set() [5/55]

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

◆ set() [6/55]

template<>
void Conv::set ( bool &  _to,
const int &  i 
)
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 int &  i 
)
inline

◆ set() [11/55]

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

◆ set() [12/55]

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

◆ set() [13/55]

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

◆ set() [14/55]

template<>
void Conv::set ( const char *&  _to,
const unsigned int &  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 FixedString  
)

◆ 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 FixedString  
)

◆ 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 FixedString  
)

◆ 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 FixedString  
)

◆ set() [28/55]

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

◆ set() [29/55]

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

◆ set() [30/55]

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

◆ set() [31/55]

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

◆ set() [32/55]

template<>
void Conv::set ( int64_t &  ,
const FixedString  
)

◆ set() [33/55]

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

◆ set() [34/55]

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

◆ set() [35/55]

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

◆ set() [36/55]

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

◆ set() [37/55]

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

◆ set() [38/55]

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

◆ set() [39/55]

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

◆ set() [40/55]

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

template based type conversion

◆ set() [41/55]

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

◆ set() [42/55]

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

◆ set() [43/55]

template<>
void Conv::set ( uint64_t &  ,
const FixedString  
)

◆ set() [44/55]

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

◆ set() [45/55]

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

◆ set() [46/55]

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

◆ set() [47/55]

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

◆ set() [48/55]

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

◆ set() [49/55]

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

◆ set() [50/55]

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

◆ 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 FixedString  
)

◆ 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-2022