OpenStructure
Namespaces | Typedefs | Functions
value_util.hh File Reference
#include <time.h>
#include <boost/random.hpp>
#include <ost/img/data_types.hh>
#include <ost/img/module_config.hh>

Go to the source code of this file.

Namespaces

 ost
 
 ost::img
 

Typedefs

typedef boost::variate_generator< boost::mt19937 &, boost::uniform_int<> > UniformIntGenerator
 

Functions

template<typename T >
DLLEXPORT_OST_IMG_BASERandom ()
 
template<>
Complex Random< Complex > ()
 
template<>
Word Random< Word > ()
 
template<typename T >
Random ()
 
UniformIntGenerator GetUniformIntGenerator (int min, int max)
 
template<typename V , typename R >
DLLEXPORT_OST_IMG_BASEVal2Val (const V &v)
 
template<>
Real Val2Val< Complex, Real > (const Complex &c)
 
template<>
Word Val2Val< Complex, Word > (const Complex &c)
 
template<typename V , typename R >
Val2Val (const V &v)
 
template<typename T >
DLLEXPORT_OST_IMG_BASE DataType Val2Type ()
 
template<>
DataType Val2Type< Complex > ()
 
template<>
DataType Val2Type< Real > ()
 
template<>
DataType Val2Type< Word > ()
 
template<typename T >
DLLEXPORT_OST_IMG_BASE String Val2String ()
 
template<>
String Val2String< Complex > ()
 
template<>
String Val2String< Real > ()
 
template<>
String Val2String< Word > ()