Util.h File Reference

#include <PVLE/Export.h>
#include <PVLE/Util/TracedException.h>
#include <PVLE/Util/Assert.h>
#include <boost/foreach.hpp>

Include dependency graph for Util.h:

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

Go to the source code of this file.


Classes

struct  TrivialPair< T1, T2 >
 Trivial pair used inside an union (std::pair doesn't compile because it has a user-defined constructor). More...

Namespaces

namespace  Util
 Contains various utility functions, classes and typedefs.

Defines

#define NOP   ((void)0)
#define format_str(fmtString, args)   ::boost::str(::boost::format(fmtString) % args)
 Shortcut for boost::str(boost::format(str) % args).

Typedefs

typedef unsigned long ULONG
typedef unsigned int UINT
typedef unsigned short USHORT
typedef unsigned char UCHAR

Functions

template<typename TNum1 , typename TNum2 >
TNum1 copySign (TNum1 number, TNum2 sign)
 Gets number with the sign of sign. Does not test if sign is zero.


Define Documentation

#define format_str ( fmtString,
args   )     ::boost::str(::boost::format(fmtString) % args)

Shortcut for boost::str(boost::format(str) % args).

Definition at line 85 of file Util.h.

Referenced by Version::toShortString(), and Version::toString().

#define NOP   ((void)0)

Definition at line 49 of file Util.h.


Typedef Documentation

typedef unsigned char UCHAR

Definition at line 37 of file Util.h.

typedef unsigned int UINT

Definition at line 35 of file Util.h.

typedef unsigned long ULONG

Definition at line 34 of file Util.h.

typedef unsigned short USHORT

Definition at line 36 of file Util.h.


Function Documentation

template<typename TNum1 , typename TNum2 >
TNum1 copySign ( TNum1  number,
TNum2  sign 
) [inline]

Gets number with the sign of sign. Does not test if sign is zero.

Definition at line 55 of file Util.h.

Referenced by ControlMapper::computeMouseMovement().


Generated on Sun Jan 17 11:39:21 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9