class with static utility functions
More...
#include <Util.h>
|
template<typename T > |
static T | float2int (float fInput) |
|
template<typename T > |
static T | double2int (double fInput) |
|
static bool | isPowOf2 (int n) |
|
static int | nextPowOf2 (int n) |
|
template<typename T > |
static void | swap (T &tValue1, T &tValue2) |
|
class with static utility functions
◆ double2int()
template<typename T >
static T CUtil::double2int |
( |
double |
fInput | ) |
|
|
inlinestatic |
converts a double to an int
- Parameters
-
- Returns
- T
◆ float2int()
template<typename T >
static T CUtil::float2int |
( |
float |
fInput | ) |
|
|
inlinestatic |
converts a float to an int
- Parameters
-
- Returns
- T
◆ isPowOf2()
static bool CUtil::isPowOf2 |
( |
int |
n | ) |
|
|
inlinestatic |
checks if the input is a power of 2
- Parameters
-
- Returns
- bool
◆ nextPowOf2()
static int CUtil::nextPowOf2 |
( |
int |
n | ) |
|
|
inlinestatic |
converts an arbitrary integer (positive) to the next larger power of two
- Parameters
-
- Returns
- int
◆ swap()
template<typename T >
static void CUtil::swap |
( |
T & |
tValue1, |
|
|
T & |
tValue2 |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: