|
| template<typename T > |
| T | abs (T const &t) |
| | generalized api can handle both integer and floating points More...
|
| |
| template<typename Iterator > |
std::iterator_traits< Iterator >
::value_type | sum (Iterator first, Iterator last) |
| | get summation of an array More...
|
| |
| template<typename Iterator > |
std::iterator_traits< Iterator >
::value_type | average (Iterator first, Iterator last) |
| | get average of an array More...
|
| |
| template<typename Iterator > |
std::iterator_traits< Iterator >
::value_type | max (Iterator first, Iterator last) |
| | get max of an array More...
|
| |
| template<typename Iterator > |
std::iterator_traits< Iterator >
::value_type | min (Iterator first, Iterator last) |
| | get min of an array More...
|
| |
| int | limboPrint (MessageType m, const char *format,...) |
| | formatted print with prefix More...
|
| |
| int | limboPrintStream (MessageType m, FILE *stream, const char *format,...) |
| | formatted print with prefix to stream More...
|
| |
| int | limboVPrintStream (MessageType m, FILE *stream, const char *format, va_list args) |
| | formatted print with prefix to stream More...
|
| |
| int | limboSPrint (MessageType m, char *buf, const char *format,...) |
| | formatted print with prefix to buffer More...
|
| |
| int | limboVSPrint (MessageType m, char *buf, const char *format, va_list args) |
| | formatted print with prefix to buffer More...
|
| |
| int | limboSPrintPrefix (MessageType m, char *prefix) |
| | print prefix message to buffer More...
|
| |
| void | limboPrintAssertMsg (const char *expr, const char *fileName, unsigned lineNum, const char *funcName, const char *format,...) |
| | print message for assertion failure with additional message, see limboAssertMsg(condition, args...) More...
|
| |
| void | limboPrintAssertMsg (const char *expr, const char *fileName, unsigned lineNum, const char *funcName) |
| | print message for assertion failure without additional message, see limboAssert(condition) More...
|
| |
| bool | is_integer (string const &s) |
| | check whether string represents an integer More...
|
| |
| bool | is_float (string const &s) |
| | check whether string represents an float More...
|
| |
| bool | is_number (string const &s) |
| | check whether string represents a number, either integer or floating point number More...
|
| |
| string | toupper (string const &s) |
| | convert string to upper case More...
|
| |
| string | tolower (string const &s) |
| | convert string to lower case More...
|
| |
| bool | iequals (string const &s1, string const &s2) |
| | check two strings equal, case-insensitive More...
|
| |
| string | get_file_path (const string &s) |
| | get relative path of a file More...
|
| |
| string | get_file_name (const string &s) |
| | get pure name of a file (no path) More...
|
| |
| string | get_file_suffix (const string &s) |
| | get suffix of a file More...
|
| |
| string | trim_file_suffix (string const &s) |
| | trim the suffix of a file More...
|
| |
| string | get_first_word (string const &str) |
| | fetch the first word of a string, assume delimiter is space or tab More...
|
| |
| string | to_string (int val) |
| | convert integer to string More...
|
| |
| string | to_string (long val) |
| | convert long integer to string More...
|
| |
| string | to_string (long long val) |
| | convert long long integer to string More...
|
| |
| string | to_string (unsigned int val) |
| | convert unsigned integer to string More...
|
| |
| string | to_string (unsigned long val) |
| | convert unsigned long integer to string More...
|
| |
| string | to_string (unsigned long long val) |
| | convert unsigned long long integer to string More...
|
| |
| string | to_string (float val) |
| | convert float to string More...
|
| |
| string | to_string (double val) |
| | convert double to string More...
|
| |
| string | to_string (long double val) |
| | convert long double to string More...
|
| |
|
generic function to get lowest value of numbers
- Template Parameters
-
|
|
template<typename T > |
| T | lowest () |
| |
|
template<> |
| char | lowest< char > () |
| | specialization for integer types
|
| |
|
template<> |
| unsigned char | lowest< unsigned char > () |
| | specialization for integer types
|
| |
|
template<> |
| short | lowest< short > () |
| | specialization for integer types
|
| |
|
template<> |
| unsigned short | lowest< unsigned short > () |
| | specialization for integer types
|
| |
|
template<> |
| int | lowest< int > () |
| | specialization for integer types
|
| |
|
template<> |
| unsigned int | lowest< unsigned int > () |
| | specialization for integer types
|
| |
|
template<> |
| long | lowest< long > () |
| | specialization for integer types
|
| |
|
template<> |
| unsigned long | lowest< unsigned long > () |
| | specialization for integer types
|
| |
|
template<> |
| long long | lowest< long long > () |
| | specialization for integer types
|
| |
|
template<> |
| unsigned long long | lowest< unsigned long long > () |
| | specialization for integer types
|
| |
|
template<> |
| float | lowest< float > () |
| | specialization for floating point types
|
| |
|
template<> |
| double | lowest< double > () |
| | specialization for floating point types
|
| |
|
template<> |
| long double | lowest< long double > () |
| | specialization for floating point types
|
| |