WARPXM v1.10.0
Loading...
Searching...
No Matches
WmUDGFunctions Namespace Reference

Classes

struct  typeString
 
struct  typeString< double >
 
struct  typeString< float >
 
struct  typeString< int >
 
struct  typeString< unsigned >
 

Functions

size_t getTypeSize (const std::type_info &typeinfo)
 
bool isaspace (unsigned char const c)
 
bool isjustaspace (unsigned char const c)
 
bool isacomma (unsigned char const c)
 
template<typename T >
stringToValue (const std::string &text)
 
template<typename T >
std::vector< T > stringToValueVec (const std::string &text)
 
template<typename T >
std::string valueToString (T value)
 
template<typename T >
void arrayPrinter (const T *array, const int n)
 
template<typename T >
void arrayPrinter (const std::vector< T > &array)
 
template<typename T >
std::string defineOption (const std::string &name, T value)
 
template<typename T >
std::string define (const std::string &name, T value)
 
std::string readFile (const std::string &filename)
 
void writeFile (const std::string &filename, const std::string &text)
 
template<typename T >
parseStringForValue (const std::string &string, const std::string &key)
 
template<typename T >
std::vector< T > parseStringForVector (const std::string &string, const std::string &key, const int expectedLength=-1)
 
template<typename T >
std::string toString (const T &val)
 
template<typename T >
bool hasDuplicates (const std::vector< T > &array)
 

Function Documentation

◆ arrayPrinter() [1/2]

template<typename T >
void WmUDGFunctions::arrayPrinter ( const std::vector< T > &  array)
inline

◆ arrayPrinter() [2/2]

template<typename T >
void WmUDGFunctions::arrayPrinter ( const T *  array,
const int  n 
)
inline

◆ define()

template<typename T >
std::string WmUDGFunctions::define ( const std::string &  name,
value 
)
inline

◆ defineOption()

template<typename T >
std::string WmUDGFunctions::defineOption ( const std::string &  name,
value 
)
inline

◆ getTypeSize()

size_t WmUDGFunctions::getTypeSize ( const std::type_info &  typeinfo)
inline

◆ hasDuplicates()

template<typename T >
bool WmUDGFunctions::hasDuplicates ( const std::vector< T > &  array)
inline

◆ isacomma()

bool WmUDGFunctions::isacomma ( unsigned char const  c)
inline

◆ isaspace()

bool WmUDGFunctions::isaspace ( unsigned char const  c)
inline

◆ isjustaspace()

bool WmUDGFunctions::isjustaspace ( unsigned char const  c)
inline

◆ parseStringForValue()

template<typename T >
T WmUDGFunctions::parseStringForValue ( const std::string &  string,
const std::string &  key 
)

◆ parseStringForVector()

template<typename T >
std::vector< T > WmUDGFunctions::parseStringForVector ( const std::string &  string,
const std::string &  key,
const int  expectedLength = -1 
)

◆ readFile()

std::string WmUDGFunctions::readFile ( const std::string &  filename)
inline

◆ stringToValue()

template<typename T >
T WmUDGFunctions::stringToValue ( const std::string &  text)
inline

◆ stringToValueVec()

template<typename T >
std::vector< T > WmUDGFunctions::stringToValueVec ( const std::string &  text)
inline

◆ toString()

template<typename T >
std::string WmUDGFunctions::toString ( const T &  val)
inline

◆ valueToString()

template<typename T >
std::string WmUDGFunctions::valueToString ( value)
inline

◆ writeFile()

void WmUDGFunctions::writeFile ( const std::string &  filename,
const std::string &  text 
)
inline