Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Basics.h File Reference

#include "cl/CLConfig.h"
#include <iostream.h>
#include <math.h>

Include dependency graph for Basics.h:

Go to the source code of this file.

Defines

#define SELF   (*this)
#define _Error(e)    _Assert(false, e, __FILE__, __LINE__)
#define _Warning(w)    _Expect(false, w, __FILE__, __LINE__)
#define Assert(b, e)
#define Expect(b, w)
#define CheckRange(a, l, u, r)

Typedefs

typedef void Void
typedef float Float
typedef double Double
typedef int Int
typedef long Long
typedef signed int SInt
typedef signed long SLong
typedef signed short SInt16
typedef signed long SInt32
typedef unsigned int UInt
typedef unsigned long ULong
typedef unsigned short UInt16
typedef unsigned int UInt32
typedef signed long SAddrInt
typedef unsigned long UAddrInt
typedef unsigned char Byte
typedef unsigned char SByte
typedef char Char
typedef Double Real
typedef bool Bool

Functions

Void _Assert (Int condition, const Char *errorMessage, const Char *file, Int line)
Void _Expect (Int condition, const Char *warningMessage, const Char *file, Int line)
Void _CheckRange (Int i, Int lowerBound, Int upperBound, const Char *rangeMessage, const Char *file, Int line)
template<class Value> Value Min (Value x, Value y)
template<class Value> Value Max (Value x, Value y)
template<class Value> Void Swap (Value &x, Value &y)
template<class Value> Value Mix (Value x, Value y, Real s)
template<class Value> Value Clip (Value x, Value min, Value max)
template<class Value> Value sqr (Value x)


Define Documentation

#define Assert(b, e)

Definition at line 121 of file Basics.h.

#define CheckRange(a, l, u, r)

Definition at line 123 of file Basics.h.

#define Expect(b, w)

Definition at line 122 of file Basics.h.

#define SELF   (*this)

Definition at line 73 of file Basics.h.

#define _Error(e)   _Assert(false, e, __FILE__, __LINE__)

Definition at line 109 of file Basics.h.

#define _Warning(w)   _Expect(false, w, __FILE__, __LINE__)

Definition at line 110 of file Basics.h.


Typedef Documentation

typedef bool Bool

Definition at line 86 of file Basics.h.

typedef unsigned char Byte

Definition at line 63 of file Basics.h.

typedef char Char

Definition at line 65 of file Basics.h.

typedef double Double

Definition at line 35 of file Basics.h.

typedef float Float

Definition at line 34 of file Basics.h.

typedef int Int

Definition at line 37 of file Basics.h.

typedef long Long

Definition at line 38 of file Basics.h.

typedef Double Real

Definition at line 68 of file Basics.h.

typedef signed long SAddrInt

Definition at line 55 of file Basics.h.

typedef unsigned char SByte

Definition at line 64 of file Basics.h.

typedef signed int SInt

Definition at line 40 of file Basics.h.

typedef signed short SInt16

Definition at line 42 of file Basics.h.

typedef signed long SInt32

Definition at line 43 of file Basics.h.

typedef signed long SLong

Definition at line 41 of file Basics.h.

typedef unsigned long UAddrInt

Definition at line 56 of file Basics.h.

typedef unsigned int UInt

Definition at line 45 of file Basics.h.

typedef unsigned short UInt16

Definition at line 47 of file Basics.h.

typedef unsigned int UInt32

Definition at line 48 of file Basics.h.

typedef unsigned long ULong

Definition at line 46 of file Basics.h.

typedef void Void

Definition at line 33 of file Basics.h.


Function Documentation

template<class Value>
Value Clip (Value x, Value min, Value max) [inline]

Definition at line 169 of file Basics.h.

template<class Value>
Value Max (Value x, Value y) [inline]

Definition at line 144 of file Basics.h.

template<class Value>
Value Min (Value x, Value y) [inline]

Definition at line 135 of file Basics.h.

template<class Value>
Value Mix (Value x, Value y, Real s) [inline]

Definition at line 163 of file Basics.h.

template<class Value>
Void Swap (Value & x, Value & y) [inline]

Definition at line 153 of file Basics.h.

Void _Assert (Int condition, const Char * errorMessage, const Char * file, Int line)

Definition at line 28 of file Basics.cc.

Void _CheckRange (Int i, Int lowerBound, Int upperBound, const Char * rangeMessage, const Char * file, Int line)

Definition at line 54 of file Basics.cc.

Void _Expect (Int condition, const Char * warningMessage, const Char * file, Int line)

Definition at line 47 of file Basics.cc.

template<class Value>
Value sqr (Value x) [inline]

Definition at line 180 of file Basics.h.


Generated at Sat Aug 5 00:16:31 2000 for Class Library by doxygen 1.1.0 written by Dimitri van Heesch, © 1997-2000