|
int | internalLog2 (unsigned int n) |
|
unsigned | _lookup (const std::string &str, const char *values[], unsigned size, int def) |
|
const std::string | _lookup (unsigned code, const char *values[], unsigned size, const std::string &def) |
|
unsigned | _lookup2 (const std::string &str, const char *values[], unsigned size, int def) |
|
const std::string | _lookup2 (unsigned code, const char *values[], unsigned size, const std::string &def) |
|
std::string | hex (const std::string &input) |
|
const std::string | escape (std::string what) |
|
void | appendEscaped (std::string &target, const std::string &data) |
|
bool | checkValidXMLChars (const std::string &data) |
|
void | replaceAll (std::string &target, const std::string &find, const std::string &replace) |
|
template<typename T , typename F > |
void | ForEach (T &t, F f) |
|
template<typename T , typename F , typename D > |
void | ForEach (T &t, F f, D &d) |
|
template<typename T , typename F , typename D1 , typename D2 > |
void | ForEach (T &t, F f, D1 &d1, D2 &d2) |
|
template<typename T , typename F , typename D1 , typename D2 , typename D3 > |
void | ForEach (T &t, F f, D1 &d1, D2 &d2, D3 &d3) |
|
template<typename T > |
void | clearList (std::list< T * > &L) |
|
template<typename Key , typename T > |
void | clearMap (std::map< Key, T * > &M) |
|
template<typename Key , typename T > |
void | clearMap (std::map< const Key, T * > &M) |
|
A namespace holding a couple utility functions.
template<typename T , typename F , typename D >
void ForEach |
( |
T & |
t, |
|
|
F |
f, |
|
|
D & |
d |
|
) |
| |
|
inline |
A convenience function that executes the given function on each object in a given list, passing the given argument.
- Parameters
-
t | The object to execute the function on. |
f | The function to execute. |
d | An argument to pass to the function. |
Definition at line 110 of file util.h.
template<typename T , typename F , typename D1 , typename D2 >
void ForEach |
( |
T & |
t, |
|
|
F |
f, |
|
|
D1 & |
d1, |
|
|
D2 & |
d2 |
|
) |
| |
|
inline |
A convenience function that executes the given function on each object in a given list, passing the given arguments.
- Parameters
-
t | The object to execute the function on. |
f | The function to execute. |
d1 | An argument to pass to the function. |
d2 | An argument to pass to the function. |
Definition at line 125 of file util.h.
template<typename T , typename F , typename D1 , typename D2 , typename D3 >
void ForEach |
( |
T & |
t, |
|
|
F |
f, |
|
|
D1 & |
d1, |
|
|
D2 & |
d2, |
|
|
D3 & |
d3 |
|
) |
| |
|
inline |
A convenience function that executes the given function on each object in a given list, passing the given arguments.
- Parameters
-
t | The object to execute the function on. |
f | The function to execute. |
d1 | An argument to pass to the function. |
d2 | An argument to pass to the function. |
d3 | An argument to pass to the function. |
Definition at line 141 of file util.h.