OpendTect-6_4  6.4
Functions
Conv Namespace Reference

Template based type conversion. More...

Functions

template<class T , class F >
void set (T &_to, const F &fr)
 template based type conversion More...
 
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())
 
template<>
void set (const char *&_to, const int &i)
 
template<>
void set (const char *&_to, const unsigned int &i)
 
template<>
void set (const char *&_to, const int64_t &i)
 
template<>
void set (const char *&_to, const uint64_t &i)
 
template<>
void set (const char *&_to, const bool &b)
 
template<>
void set (const char *&_to, const float &f)
 
template<>
void set (const char *&_to, const double &d)
 
template<>
void set (const char *&_to, const short &i)
 
template<>
void set (const char *&_to, const unsigned short &i)
 
template<>
void set (int &_to, const float &f)
 
template<>
void set (int64_t &_to, const float &f)
 
template<>
void set (short &_to, const float &f)
 
template<>
void set (unsigned short &_to, const float &f)
 
template<>
void set (unsigned int &_to, const float &f)
 
template<>
void set (uint64_t &_to, const float &f)
 
template<>
void set (int &_to, const double &f)
 
template<>
void set (int64_t &_to, const double &f)
 
template<>
void set (short &_to, const double &f)
 
template<>
void set (unsigned short &_to, const double &f)
 
template<>
void set (unsigned int &_to, const double &f)
 
template<>
void set (uint64_t &_to, const double &f)
 
template<>
void set (bool &_to, const char *const &s)
 
template<>
void set (bool &_to, const FixedString &s)
 
template<>
void set (bool &_to, const int &i)
 
template<>
void set (bool &_to, const float &f)
 
template<>
void set (bool &_to, const double &d)
 
template<>
void set (short &, const char *const &)
 
template<>
void set (short &, const FixedString &)
 
template<>
void set (unsigned short &, const char *const &)
 
template<>
void set (unsigned short &, const FixedString &)
 
template<>
void set (int &, const char *const &)
 
template<>
void set (int &, const FixedString &)
 
template<>
void set (unsigned int &, const char *const &)
 
template<>
void set (unsigned int &, const FixedString &)
 
template<>
void set (int64_t &, const char *const &)
 
template<>
void set (int64_t &, const FixedString &)
 
template<>
void set (uint64_t &, const char *const &)
 
template<>
void set (uint64_t &, const FixedString &)
 
template<>
void set (double &, const char *const &)
 
template<>
void set (double &, const FixedString &)
 
template<>
void set (float &, const char *const &)
 
template<>
void set (float &, const FixedString &)
 
template<>
void set (float_complex &, const char *const &)
 
template<>
void set (float_complex &, const FixedString &)
 

Detailed Description

Template based type conversion.

Function Documentation

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

template based type conversion

template<>
void Conv::set ( float_complex ,
const char *const &   
)
template<>
void Conv::set ( float_complex ,
const FixedString  
)
template<>
void Conv::set ( const char *&  _to,
const int &  i 
)
inline
template<>
void Conv::set ( const char *&  _to,
const unsigned int &  i 
)
inline
template<>
void Conv::set ( const char *&  _to,
const int64_t &  i 
)
inline
template<>
void Conv::set ( const char *&  _to,
const uint64_t &  i 
)
inline
template<>
void Conv::set ( const char *&  _to,
const bool &  b 
)
inline
template<>
void Conv::set ( const char *&  _to,
const float &  f 
)
inline
template<>
void Conv::set ( const char *&  _to,
const double &  d 
)
inline
template<>
void Conv::set ( const char *&  _to,
const short &  i 
)
inline
template<>
void Conv::set ( const char *&  _to,
const unsigned short &  i 
)
inline
template<>
void Conv::set ( int &  _to,
const float &  f 
)
inline
template<>
void Conv::set ( int64_t &  _to,
const float &  f 
)
inline
template<>
void Conv::set ( short &  _to,
const float &  f 
)
inline
template<>
void Conv::set ( unsigned short &  _to,
const float &  f 
)
inline
template<>
void Conv::set ( unsigned int &  _to,
const float &  f 
)
inline
template<>
void Conv::set ( uint64_t &  _to,
const float &  f 
)
inline
template<>
void Conv::set ( int &  _to,
const double &  f 
)
inline
template<>
void Conv::set ( int64_t &  _to,
const double &  f 
)
inline
template<>
void Conv::set ( short &  _to,
const double &  f 
)
inline
template<>
void Conv::set ( unsigned short &  _to,
const double &  f 
)
inline
template<>
void Conv::set ( unsigned int &  _to,
const double &  f 
)
inline
template<>
void Conv::set ( uint64_t &  _to,
const double &  f 
)
inline
template<>
void Conv::set ( bool &  _to,
const char *const &  s 
)
inline
template<>
void Conv::set ( bool &  _to,
const FixedString s 
)
inline
template<>
void Conv::set ( bool &  _to,
const int &  i 
)
inline
template<>
void Conv::set ( bool &  _to,
const float &  f 
)
inline
template<>
void Conv::set ( bool &  _to,
const double &  d 
)
inline
template<>
void Conv::set ( short &  ,
const FixedString  
)
template<>
void Conv::set ( short &  ,
const char *const &   
)
template<>
void Conv::set ( unsigned short &  ,
const char *const &   
)
template<>
void Conv::set ( unsigned short &  ,
const FixedString  
)
template<>
void Conv::set ( int &  ,
const char *const &   
)
template<>
void Conv::set ( int &  ,
const FixedString  
)
template<>
void Conv::set ( unsigned int &  ,
const char *const &   
)
template<>
void Conv::set ( unsigned int &  ,
const FixedString  
)
template<>
void Conv::set ( int64_t &  ,
const FixedString  
)
template<>
void Conv::set ( int64_t &  ,
const char *const &   
)
template<>
void Conv::set ( uint64_t &  ,
const FixedString  
)
template<>
void Conv::set ( uint64_t &  ,
const char *const &   
)
template<>
void Conv::set ( double &  ,
const char *const &   
)
template<>
void Conv::set ( double &  ,
const FixedString  
)
template<>
void Conv::set ( float &  ,
const char *const &   
)
template<>
void Conv::set ( float &  ,
const FixedString  
)
template<class T , class F >
T Conv::to ( const F &  fr)
inline
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

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. 2019