Functions | |
template<class T > | |
T | Abs (const T &x) |
template<class T > | |
const T & | Max (const T &x, const T &y) |
template<class T > | |
const T & | Max (const T &x, const T &y, const T &z) |
template<class T > | |
const T & | Min (const T &x, const T &y) |
template<class T > | |
const T & | Min (const T &x, const T &y, const T &z) |
template<class T > | |
void | Swap (T &x, T &y) |
template<class T > | |
void | FreeMemoryOfStlContainer (T &container) |
Really frees memory of vector. | |
template<class T > | |
void | MinimizeMemoryOfStlContainer (T &container) |
Minimizes the memory usage of a vector. | |
template<class T > | |
void | SafeRelease (T &mem) |
Function template for safe memory pointer deletion. | |
template<class T > | |
void | SafeReleaseArray (T &mem) |
Function template for safe memory pointer deletion of an allocated array. | |
template<class T > | |
uint32 | ArraySize (const T &array) |
void | SwapBytes (uint8 &) |
Swaps the bytes of an uint8 value. | |
void | SwapBytes (uint16 &val) |
Swaps the bytes of an uint16 value. | |
void | SwapBytes (uint32 &val) |
Swaps the bytes of an uint32 value. | |
void | SwapBytes (uint64 &val) |
Swaps the bytes of an uint64 value. | |
void | SwapBytes (sint8 &) |
Swaps the bytes of an sint8 value. | |
void | SwapBytes (sint16 &val) |
Swaps the bytes of an sint16 value. | |
void | SwapBytes (sint32 &val) |
Swaps the bytes of an sint32 value. | |
void | SwapBytes (sint64 &val) |
Swaps the bytes of an sint64 value. | |
void | SwapBytes (float &val) |
Swaps the bytes of an float value. | |
void | SwapBytes (double &val) |
Swaps the bytes of an double value. | |
template<class T > | |
void | SwapBytes (T &val) |
Swaps the bytes of any type. | |
bool | IsBigEndian () |
bool | IsLittleEndian () |
..
T TC::Util::Abs | ( | const T & | x | ) | [inline] |
const T& TC::Util::Max | ( | const T & | x, | |
const T & | y | |||
) | [inline] |
const T& TC::Util::Max | ( | const T & | x, | |
const T & | y, | |||
const T & | z | |||
) | [inline] |
const T& TC::Util::Min | ( | const T & | x, | |
const T & | y | |||
) | [inline] |
const T& TC::Util::Min | ( | const T & | x, | |
const T & | y, | |||
const T & | z | |||
) | [inline] |
void TC::Util::Swap | ( | T & | x, | |
T & | y | |||
) | [inline] |
Definition at line 96 of file TCUtil.h.
Referenced by TC::Math::Normalize().
void TC::Util::FreeMemoryOfStlContainer | ( | T & | container | ) | [inline] |
void TC::Util::MinimizeMemoryOfStlContainer | ( | T & | container | ) | [inline] |
void TC::Util::SafeRelease | ( | T & | mem | ) | [inline] |
void TC::Util::SafeReleaseArray | ( | T & | mem | ) | [inline] |
uint32 TC::Util::ArraySize | ( | const T & | array | ) | [inline] |
void TC::Util::SwapBytes | ( | uint8 & | ) | [inline] |
Swaps the bytes of an uint8 value.
Definition at line 155 of file TCUtil.h.
Referenced by SwapBytes().
void TC::Util::SwapBytes | ( | uint16 & | val | ) | [inline] |
void TC::Util::SwapBytes | ( | uint32 & | val | ) | [inline] |
void TC::Util::SwapBytes | ( | uint64 & | val | ) | [inline] |
Swaps the bytes of an uint64 value.
Definition at line 169 of file TCUtil.h.
References SwapBytes().
void TC::Util::SwapBytes | ( | sint8 & | ) | [inline] |
void TC::Util::SwapBytes | ( | sint16 & | val | ) | [inline] |
Swaps the bytes of an sint16 value.
Definition at line 185 of file TCUtil.h.
References SwapBytes().
void TC::Util::SwapBytes | ( | sint32 & | val | ) | [inline] |
Swaps the bytes of an sint32 value.
Definition at line 190 of file TCUtil.h.
References SwapBytes().
void TC::Util::SwapBytes | ( | sint64 & | val | ) | [inline] |
Swaps the bytes of an sint64 value.
Definition at line 195 of file TCUtil.h.
References SwapBytes().
void TC::Util::SwapBytes | ( | float & | val | ) | [inline] |
Swaps the bytes of an float value.
Definition at line 200 of file TCUtil.h.
References SwapBytes().
void TC::Util::SwapBytes | ( | double & | val | ) | [inline] |
Swaps the bytes of an double value.
Definition at line 205 of file TCUtil.h.
References SwapBytes().
void TC::Util::SwapBytes | ( | T & | val | ) | [inline] |
bool TC::Util::IsBigEndian | ( | ) | [inline] |
Definition at line 224 of file TCUtil.h.
Referenced by IsLittleEndian().
bool TC::Util::IsLittleEndian | ( | ) | [inline] |
Definition at line 236 of file TCUtil.h.
References IsBigEndian().
Referenced by TC::ByteOrderedValue< T, false >::SwapBytes().