OpendTect  7.0
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 short &i)
 
template<>
void set (const char *&_to, const std::int32_t &i)
 
template<>
void set (const char *&_to, const std::int64_t &i)
 
template<>
void set (const char *&_to, const std::uint32_t &i)
 
template<>
void set (const char *&_to, const std::uint64_t &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 (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<>
void set (std::int32_t &_to, const double &f)
 
template<>
void set (std::int32_t &_to, const float &f)
 
template<>
void set (std::int64_t &, const BufferString &)
 
template<>
void set (std::int64_t &, const char *const &)
 
template<>
void set (std::int64_t &, const StringView &)
 
template<>
void set (std::int64_t &_to, const double &f)
 
template<>
void set (std::int64_t &_to, const float &f)
 
template<>
void set (std::uint32_t &, const BufferString &)
 
template<>
void set (std::uint32_t &, const char *const &)
 
template<>
void set (std::uint32_t &, const StringView &)
 
template<>
void set (std::uint32_t &_to, const double &f)
 
template<>
void set (std::uint32_t &_to, const float &f)
 
template<>
void set (std::uint64_t &, const BufferString &)
 
template<>
void set (std::uint64_t &, const char *const &)
 
template<>
void set (std::uint64_t &, const StringView &)
 
template<>
void set (std::uint64_t &_to, const double &f)
 
template<>
void set (std::uint64_t &_to, const float &f)
 
template<class T , class F >
void set (T &_to, const F &fr)
 template based type conversion More...
 
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 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 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 short &  i 
)
inline

◆ set() [11/55]

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

◆ set() [12/55]

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

◆ set() [13/55]

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

◆ set() [14/55]

template<>
void Conv::set ( const char *&  _to,
const std::uint64_t &  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 ( short &  ,
const BufferString  
)

◆ set() [29/55]

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

◆ set() [30/55]

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

◆ set() [31/55]

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

◆ set() [32/55]

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

◆ set() [33/55]

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

◆ set() [34/55]

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

◆ set() [35/55]

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

◆ set() [36/55]

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

◆ set() [37/55]

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

◆ set() [38/55]

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

◆ set() [39/55]

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

◆ set() [40/55]

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

◆ set() [41/55]

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

◆ set() [42/55]

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

◆ set() [43/55]

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

◆ set() [44/55]

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

◆ set() [45/55]

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

◆ set() [46/55]

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

◆ set() [47/55]

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

◆ set() [48/55]

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

◆ set() [49/55]

template<>
void Conv::set ( std::uint64_t &  _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-2024