base_funcs2.hh File Reference

Various small functions: function macros, inline functions, template functions. More...

Go to the source code of this file.

Namespaces

namespace  base

Defines

#define BASE_FUNCS2_HH   1

Functions

INLINE bool base::FEQ (fp a, fp b)
INLINE bool base::FNE (fp a, fp b)
INLINE bool base::FEQ_FLOAT_LARGE (fp f)
INLINE bool base::FEQ_FLOAT_SMALL (fp f)
template<typename FP>
bool base::FEQ (const FP a, const FP b)
template<typename FP>
bool base::FEQ (const FP a, const FP b, const uint fracDigits)
 Slower but flexible variant of FEQ().
INLINE int base::Clamp (int i, int limit)
INLINE uint8 base::ClampFF (uint i)
INLINE uint8 base::ClampFF (int i)
INLINE uint8 base::ClampFF (fp f)
INLINE fp base::Clamp1 (fp f)
INLINE fp base::Clamp (fp f, fp low=0.0, fp high=1.0)
INLINE fp base::PrintableMegabyte (const long bytes)
 Convert bytes for printing as "n.nMB".
template<typename T>
T * base::PTR (vector< T > &v)
template<typename T>
const T * base::CONST_PTR (const vector< T > &v)
template<typename SEQCONT>
void base::Expand (SEQCONT &seqcont, uint idx)
template<typename T>
void base::Remove (vector< T > &container, T item)
template<typename T>
void base::Remove (deque< T > &container, T item)
template<typename T>
void base::Remove (list< T > &container, T item)
template<typename KEY>
void base::Remove (set< KEY > &container, KEY item)
template<typename KEY, typename VAL>
void base::Remove (map< KEY, VAL > &container, VAL item)
template<typename CONTAINER>
bool base::IfDuplicate (const CONTAINER &c1, const CONTAINER &c2)


Detailed Description

Various small functions: function macros, inline functions, template functions.

Id
LastChangedDate

Author:
Jim E. Brooks http://www.palomino3d.org
Remarks:
Include this after base_types.hh. Writing "inline" in template functions does increase speed (gcc 3.4). Omitted (mostly) functions for C++ arrays to encourage use of STL containers or Array.

Define Documentation

#define BASE_FUNCS2_HH   1

Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:13 2007