TCUtil.h File Reference

This header file provides the definition of the namespace TC::Util. More...

#include "TCTypes.h"

Include dependency graph for TCUtil.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Namespaces

namespace  TC
namespace  TC::Util
 Defines basic functions like Min, Max, Swap .

Functions

template<class T >
TC::Util::Abs (const T &x)
template<class T >
const T & TC::Util::Max (const T &x, const T &y)
template<class T >
const T & TC::Util::Max (const T &x, const T &y, const T &z)
template<class T >
const T & TC::Util::Min (const T &x, const T &y)
template<class T >
const T & TC::Util::Min (const T &x, const T &y, const T &z)
template<class T >
void TC::Util::Swap (T &x, T &y)
template<class T >
void TC::Util::FreeMemoryOfStlContainer (T &container)
 Really frees memory of vector.
template<class T >
void TC::Util::MinimizeMemoryOfStlContainer (T &container)
 Minimizes the memory usage of a vector.
template<class T >
void TC::Util::SafeRelease (T &mem)
 Function template for safe memory pointer deletion.
template<class T >
void TC::Util::SafeReleaseArray (T &mem)
 Function template for safe memory pointer deletion of an allocated array.
template<class T >
uint32 TC::Util::ArraySize (const T &array)
void TC::Util::SwapBytes (uint8 &)
 Swaps the bytes of an uint8 value.
void TC::Util::SwapBytes (uint16 &val)
 Swaps the bytes of an uint16 value.
void TC::Util::SwapBytes (uint32 &val)
 Swaps the bytes of an uint32 value.
void TC::Util::SwapBytes (uint64 &val)
 Swaps the bytes of an uint64 value.
void TC::Util::SwapBytes (sint8 &)
 Swaps the bytes of an sint8 value.
void TC::Util::SwapBytes (sint16 &val)
 Swaps the bytes of an sint16 value.
void TC::Util::SwapBytes (sint32 &val)
 Swaps the bytes of an sint32 value.
void TC::Util::SwapBytes (sint64 &val)
 Swaps the bytes of an sint64 value.
void TC::Util::SwapBytes (float &val)
 Swaps the bytes of an float value.
void TC::Util::SwapBytes (double &val)
 Swaps the bytes of an double value.
template<class T >
void TC::Util::SwapBytes (T &val)
 Swaps the bytes of any type.
bool TC::Util::IsBigEndian ()
bool TC::Util::IsLittleEndian ()


Detailed Description

This header file provides the definition of the namespace TC::Util.

Author:
Thomas Goessler

Definition in file TCUtil.h.


Copyright (c) Thomas Goessler 2003 - 2008