Functions | |
| string | StringF (const char *const format,...) |
| void | removeEmptyStrings (vector< string > &s) |
| string | Clean (string s) |
| void | clean (string &s) |
| void | clean (vector< string > &sa) |
| string | chomp (const string &s) |
| string | squeeze (const string &s, char tosearch) |
| string | replace (const string &s, char tosearch, char toreplace) |
| string | uppercase (const string &s) |
| string | toupper (const string &s) |
| string | lowercase (const string &s) |
| string | tolower (const string &s) |
| vector< string > | tokenize (const string &s, const string &delim, bool squeeze_delim) |
| string | trim (string in) |
| string | Trim (string in) |
| bool | readPipe (vector< string > &dest, string command) |
| string | runCommand (string command) |
| string | CheckDir (const string &folder) |
| const char * | basename (const char *filename) |
| void | outProgress (int progress, int period, ostream &out) |
| void | OutProgress (int progress, int period, ostream &out) |
| void | endProgress (int end, ostream &out) |
| void | EndProgress (int end, ostream &out) |
| void | outProgressPercentage (int progress, int end, ostream &out) |
| void | endProgressPercentage (ostream &out) |
| istream & | readTag (istream &is, const char *tag) |
| ostream & | writeTag (ostream &os, const char *tag) |
| void | initrand () |
| int | irand (int min, int max) |
| double | urand (double min, double max) |
| double | grand (double mean, double std) |
| double | square (double v) |
| short | tofixed (float v) |
| float | tofloat (short v) |
| bool | firstCombination (vector< uint > &counters, uint n, uint k) |
| bool | nextCombination (vector< uint > &counters, uint n, uint k) |
| void | printCombination (vector< uint > &counters, uint n, uint k) |
| template<class ValueType> | |
| ValueType | maxval (ValueType v1, ValueType v2) |
| template<class ValueType> | |
| ValueType | minval (ValueType v1, ValueType v2) |
| template<class ReturnType, class ValueType> | |
| ReturnType | cast (const ValueType &in_value) |
| template<class T> | |
| bool | getnext (char **nav, T &val) |
| template<class T> | |
| bool | getnext (vector< string >::iterator &nav, vector< string >::iterator &end, T &val) |
| template<class C> | |
| string | tostring (C &container) |
| template<class ReturnType> | |
| ReturnType | get (istream &is) |
| template<class T> | |
| void | readfile (vector< T > &dst, string filename) |
| template<class ValueType> | |
| istream & | readOption (istream &is, const char *tag, ValueType &value) |
| template<class ValueType> | |
| istream & | readOptionArray (istream &is, const char *tag, ValueType *values, int size) |
| template<class ValueType> | |
| ostream & | writeOption (ostream &os, const char *tag, ValueType &value) |
| template<class ValueType> | |
| ostream & | writeOptionArray (ostream &os, const char *tag, ValueType *values, int size) |
| template<class T> | |
| T | square (T x) |
| ReturnType Util::cast | ( | const ValueType & | in_value | ) |
| string Util::chomp | ( | const string & | s | ) |
| void Util::clean | ( | vector< string > & | sa | ) |
| void Util::EndProgress | ( | int | end, | |
| ostream & | out = cout | |||
| ) |
| void Util::endProgress | ( | int | end, | |
| ostream & | out = cout | |||
| ) |
Definition at line 222 of file Util.cpp.
References StringF().
Referenced by EndProgress(), and main().
| bool Util::firstCombination | ( | vector< uint > & | counters, | |
| uint | n, | |||
| uint | k | |||
| ) |
| ReturnType Util::get | ( | istream & | is | ) |
| bool Util::getnext | ( | vector< string >::iterator & | nav, | |
| vector< string >::iterator & | end, | |||
| T & | val | |||
| ) |
| double Util::grand | ( | double | mean, | |
| double | std | |||
| ) |
| string Util::lowercase | ( | const string & | s | ) |
| ValueType Util::maxval | ( | ValueType | v1, | |
| ValueType | v2 | |||
| ) |
| ValueType Util::minval | ( | ValueType | v1, | |
| ValueType | v2 | |||
| ) |
| bool Util::nextCombination | ( | vector< uint > & | counters, | |
| uint | n, | |||
| uint | k | |||
| ) |
| void Util::OutProgress | ( | int | progress, | |
| int | period, | |||
| ostream & | out = cout | |||
| ) |
| void Util::outProgress | ( | int | progress, | |
| int | period, | |||
| ostream & | out = cout | |||
| ) |
Definition at line 206 of file Util.cpp.
References StringF().
Referenced by main(), and OutProgress().
| void Util::outProgressPercentage | ( | int | progress, | |
| int | end, | |||
| ostream & | out = cout | |||
| ) |
| void Util::printCombination | ( | vector< uint > & | counters, | |
| uint | n, | |||
| uint | k | |||
| ) |
| void Util::readfile | ( | vector< T > & | dst, | |
| string | filename | |||
| ) |
| istream& Util::readOption | ( | istream & | is, | |
| const char * | tag, | |||
| ValueType & | value | |||
| ) |
| istream& Util::readOptionArray | ( | istream & | is, | |
| const char * | tag, | |||
| ValueType * | values, | |||
| int | size | |||
| ) |
| bool Util::readPipe | ( | vector< string > & | dest, | |
| string | command | |||
| ) |
| istream & Util::readTag | ( | istream & | is, | |
| const char * | tag | |||
| ) |
Definition at line 249 of file Util.cpp.
References Exception::Assert().
Referenced by readOption(), and readOptionArray().
| string Util::replace | ( | const string & | s, | |
| char | tosearch, | |||
| char | toreplace | |||
| ) |
| string Util::squeeze | ( | const string & | s, | |
| char | tosearch = ' ' | |||
| ) |
| string Util::StringF | ( | const char *const | format, | |
| ... | ||||
| ) |
Definition at line 10 of file Util.cpp.
Referenced by endProgress(), outProgress(), and printCombination().
| float Util::tofloat | ( | short | v | ) |
| vector< string > Util::tokenize | ( | const string & | s, | |
| const string & | delim = " ", |
|||
| bool | squeeze_delim = false | |||
| ) |
| string Util::tolower | ( | const string & | s | ) |
| string Util::tostring | ( | C & | container | ) |
| string Util::toupper | ( | const string & | s | ) |
| string Util::trim | ( | string | in | ) |
Definition at line 139 of file Util.cpp.
Referenced by plugin_kernel_setparm(), readPipe(), and Trim().
| string Util::uppercase | ( | const string & | s | ) |
| double Util::urand | ( | double | min, | |
| double | max | |||
| ) |
| ostream& Util::writeOption | ( | ostream & | os, | |
| const char * | tag, | |||
| ValueType & | value | |||
| ) |
| ostream& Util::writeOptionArray | ( | ostream & | os, | |
| const char * | tag, | |||
| ValueType * | values, | |||
| int | size | |||
| ) |
| ostream & Util::writeTag | ( | ostream & | os, | |
| const char * | tag | |||
| ) |
1.5.1