Classes | Macros | Typedefs | Functions
IceTypes.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  scell
 Union of a float and a sdword. More...
 
union  ucell
 Union of a float and a udword. More...
 

Macros

#define AND   &
 ... More...
 
#define CUBE(x)   ((x)*(x)*(x))
 Returns x cube. More...
 
#define DECLARE_ICE_HANDLE(name)   struct name##__ { int unused; }; typedef struct name##__ *name
 TO BE DOCUMENTED. More...
 
#define DEGTORAD   0.01745329251994329577f
 PI / 180.0, convert degrees to radians. More...
 
#define EXP   2.71828182845904523536f
 e More...
 
#define HALFPI   1.57079632679489661923f
 0.5 * PI More...
 
#define IEEE_1_0   0x3f800000
 integer representation of 1.0 More...
 
#define IEEE_255_0   0x437f0000
 integer representation of 255.0 More...
 
#define IEEE_MAX_FLOAT   0x7f7fffff
 integer representation of MAX_FLOAT More...
 
#define IEEE_MIN_FLOAT   0xff7fffff
 integer representation of MIN_FLOAT More...
 
#define IEEE_UNDERFLOW_LIMIT   0x1a000000
 
#define INV255   0.00392156862745098039f
 1/255 More...
 
#define INV3   0.33333333333333333333f
 1/3 More...
 
#define INV6   0.16666666666666666666f
 1/6 More...
 
#define INV7   0.14285714285714285714f
 1/7 More...
 
#define INV9   0.11111111111111111111f
 1/9 More...
 
#define INVALID_ID   0xffffffff
 Invalid dword ID (counterpart of null pointers) More...
 
#define INVALID_KID   0xffffffff
 Invalid Kernel ID. More...
 
#define INVALID_NUMBER   0xDEADBEEF
 Standard junk value. More...
 
#define INVLN2   1.44269504089f
 1.0f / ln(2) More...
 
#define INVLOG2   3.32192809488736234787f
 1.0 / log10(2) More...
 
#define INVPI   0.31830988618379067154f
 1.0 / PI More...
 
#define INVSQRT2   0.707106781188f
 1 / sqrt(2) More...
 
#define INVSQRT3   0.577350269189f
 1 / sqrt(3) More...
 
#define LN2   0.693147180559945f
 ln(2) More...
 
#define MAX(a, b)   ((a) > (b) ? (a) : (b))
 Returns the max value between a and b. More...
 
#define MAX_FLOAT   FLT_MAX
 max possible float value More...
 
#define MAX_SBYTE   0x7f
 max possible sbyte value More...
 
#define MAX_SDWORD   0x7fffffff
 max possible sdword value More...
 
#define MAX_SWORD   0x7fff
 max possible sword value More...
 
#define MAX_UBYTE   0xff
 max possible ubyte value More...
 
#define MAX_UDWORD   0xffffffff
 max possible udword value More...
 
#define MAX_UWORD   0xffff
 max possible uword value More...
 
#define MAXMAX(a, b, c)   ((a) > (b) ? MAX (a,c) : MAX (b,c))
 Returns the max value between a, b and c. More...
 
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
 Returns the min value between a and b. More...
 
#define MIN_FLOAT   (-FLT_MAX)
 min possible loat value More...
 
#define MIN_SBYTE   0x80
 min possible sbyte value More...
 
#define MIN_SDWORD   0x80000000
 min possible sdword value More...
 
#define MIN_SWORD   0x8000
 min possible sword value More...
 
#define MIN_UBYTE   0x00
 min possible ubyte value More...
 
#define MIN_UDWORD   0x00000000
 min possible udword value More...
 
#define MIN_UWORD   0x0000
 min possible uword value More...
 
#define null   0
 our own NULL pointer More...
 
#define ONE_OVER_RAND_MAX   (1.0f / float(RAND_MAX))
 Inverse of the max possible value returned by rand() More...
 
#define OR   |
 ... More...
 
#define PI   3.1415926535897932384626433832795028841971693993751f
 PI. More...
 
#define QUADRAT(x)   ((x)*(x))
 Returns x square. More...
 
#define RADTODEG   57.2957795130823208768f
 180.0 / PI, convert radians to degrees More...
 
#define SQR(x)   ((x)*(x))
 Returns x square. More...
 
#define SQRT2   1.41421356237f
 sqrt(2) More...
 
#define SQRT3   1.73205080757f
 sqrt(3) More...
 
#define TWOPI   6.28318530717958647692f
 2.0 * PI More...
 
#define USE_HANDLE_MANAGER
 
#define XOR   ^
 ... More...
 

Typedefs

typedef int BOOL
 Another boolean type. More...
 
typedef udword DynID
 Dynamic identifier. More...
 
typedef bool(* ENUMERATION) (udword value, udword param, udword context)
 ICE standard enumeration call. More...
 
typedef float float32
 sizeof(float32) must be 4 More...
 
typedef double float64
 sizeof(float64) must be 4 More...
 
typedef udword KID
 Kernel ID. More...
 
typedef int(__stdcallPROC) ()
 A standard procedure call. More...
 
typedef udword RTYPE
 Relationship-type (!) between owners and references. More...
 
typedef signed char sbyte
 sizeof(sbyte) must be 1 More...
 
typedef signed int sdword
 sizeof(sdword) must be 4 More...
 
typedef signed __int64 sqword
 sizeof(sqword) must be 8 More...
 
typedef signed short sword
 sizeof(sword) must be 2 More...
 
typedef unsigned char ubyte
 sizeof(ubyte) must be 1 More...
 
typedef unsigned int udword
 sizeof(udword) must be 4 More...
 
typedef unsigned __int64 uqword
 sizeof(uqword) must be 8 More...
 
typedef unsigned short uword
 sizeof(uword) must be 2 More...
 
typedef void ** VTABLE
 A V-Table. More...
 

Functions

 ICE_COMPILE_TIME_ASSERT (sizeof(bool)==1)
 
 ICE_COMPILE_TIME_ASSERT (sizeof(ubyte)==1)
 
 ICE_COMPILE_TIME_ASSERT (sizeof(sbyte)==1)
 
 ICE_COMPILE_TIME_ASSERT (sizeof(sword)==2)
 
 ICE_COMPILE_TIME_ASSERT (sizeof(uword)==2)
 
 ICE_COMPILE_TIME_ASSERT (sizeof(udword)==4)
 
 ICE_COMPILE_TIME_ASSERT (sizeof(sdword)==4)
 
 ICE_COMPILE_TIME_ASSERT (sizeof(uqword)==8)
 
 ICE_COMPILE_TIME_ASSERT (sizeof(sqword)==8)
 
template<class T >
inline_ const T & TMax (const T &a, const T &b)
 
template<class T >
inline_ const T & TMin (const T &a, const T &b)
 
template<class T >
inline_ void TSetMax (T &a, const T &b)
 
template<class T >
inline_ void TSetMin (T &a, const T &b)
 

Detailed Description

Contains custom types.

Author
Pierre Terdiman
Date
April, 4, 2000

Definition in file IceTypes.h.

Macro Definition Documentation

◆ AND

#define AND   &

...

Definition at line 158 of file IceTypes.h.

◆ CUBE

#define CUBE (   x)    ((x)*(x)*(x))

Returns x cube.

Definition at line 156 of file IceTypes.h.

◆ DECLARE_ICE_HANDLE

#define DECLARE_ICE_HANDLE (   name)    struct name##__ { int unused; }; typedef struct name##__ *name

TO BE DOCUMENTED.

Definition at line 82 of file IceTypes.h.

◆ DEGTORAD

#define DEGTORAD   0.01745329251994329577f

PI / 180.0, convert degrees to radians.

Definition at line 38 of file IceTypes.h.

◆ EXP

#define EXP   2.71828182845904523536f

e

Definition at line 40 of file IceTypes.h.

◆ HALFPI

#define HALFPI   1.57079632679489661923f

0.5 * PI

Definition at line 33 of file IceTypes.h.

◆ IEEE_1_0

#define IEEE_1_0   0x3f800000

integer representation of 1.0

Definition at line 132 of file IceTypes.h.

◆ IEEE_255_0

#define IEEE_255_0   0x437f0000

integer representation of 255.0

Definition at line 133 of file IceTypes.h.

◆ IEEE_MAX_FLOAT

#define IEEE_MAX_FLOAT   0x7f7fffff

integer representation of MAX_FLOAT

Definition at line 134 of file IceTypes.h.

◆ IEEE_MIN_FLOAT

#define IEEE_MIN_FLOAT   0xff7fffff

integer representation of MIN_FLOAT

Definition at line 135 of file IceTypes.h.

◆ IEEE_UNDERFLOW_LIMIT

#define IEEE_UNDERFLOW_LIMIT   0x1a000000

Definition at line 136 of file IceTypes.h.

◆ INV255

#define INV255   0.00392156862745098039f

1/255

Definition at line 49 of file IceTypes.h.

◆ INV3

#define INV3   0.33333333333333333333f

1/3

Definition at line 45 of file IceTypes.h.

◆ INV6

#define INV6   0.16666666666666666666f

1/6

Definition at line 46 of file IceTypes.h.

◆ INV7

#define INV7   0.14285714285714285714f

1/7

Definition at line 47 of file IceTypes.h.

◆ INV9

#define INV9   0.11111111111111111111f

1/9

Definition at line 48 of file IceTypes.h.

◆ INVALID_ID

#define INVALID_ID   0xffffffff

Invalid dword ID (counterpart of null pointers)

Definition at line 92 of file IceTypes.h.

◆ INVALID_KID

#define INVALID_KID   0xffffffff

Invalid Kernel ID.

Definition at line 94 of file IceTypes.h.

◆ INVALID_NUMBER

#define INVALID_NUMBER   0xDEADBEEF

Standard junk value.

Definition at line 98 of file IceTypes.h.

◆ INVLN2

#define INVLN2   1.44269504089f

1.0f / ln(2)

Definition at line 43 of file IceTypes.h.

◆ INVLOG2

#define INVLOG2   3.32192809488736234787f

1.0 / log10(2)

Definition at line 41 of file IceTypes.h.

◆ INVPI

#define INVPI   0.31830988618379067154f

1.0 / PI

Definition at line 35 of file IceTypes.h.

◆ INVSQRT2

#define INVSQRT2   0.707106781188f

1 / sqrt(2)

Definition at line 52 of file IceTypes.h.

◆ INVSQRT3

#define INVSQRT3   0.577350269189f

1 / sqrt(3)

Definition at line 55 of file IceTypes.h.

◆ LN2

#define LN2   0.693147180559945f

ln(2)

Definition at line 42 of file IceTypes.h.

◆ MAX

#define MAX (   a,
  b 
)    ((a) > (b) ? (a) : (b))

Returns the max value between a and b.

Definition at line 147 of file IceTypes.h.

◆ MAX_FLOAT

#define MAX_FLOAT   FLT_MAX

max possible float value

Definition at line 130 of file IceTypes.h.

◆ MAX_SBYTE

#define MAX_SBYTE   0x7f

max possible sbyte value

Definition at line 118 of file IceTypes.h.

◆ MAX_SDWORD

#define MAX_SDWORD   0x7fffffff

max possible sdword value

Definition at line 126 of file IceTypes.h.

◆ MAX_SWORD

#define MAX_SWORD   0x7fff

max possible sword value

Definition at line 122 of file IceTypes.h.

◆ MAX_UBYTE

#define MAX_UBYTE   0xff

max possible ubyte value

Definition at line 120 of file IceTypes.h.

◆ MAX_UDWORD

#define MAX_UDWORD   0xffffffff

max possible udword value

Definition at line 128 of file IceTypes.h.

◆ MAX_UWORD

#define MAX_UWORD   0xffff

max possible uword value

Definition at line 124 of file IceTypes.h.

◆ MAXMAX

#define MAXMAX (   a,
  b,
 
)    ((a) > (b) ? MAX (a,c) : MAX (b,c))

Returns the max value between a, b and c.

Definition at line 148 of file IceTypes.h.

◆ MIN

#define MIN (   a,
  b 
)    ((a) < (b) ? (a) : (b))

Returns the min value between a and b.

Definition at line 146 of file IceTypes.h.

◆ MIN_FLOAT

#define MIN_FLOAT   (-FLT_MAX)

min possible loat value

Definition at line 131 of file IceTypes.h.

◆ MIN_SBYTE

#define MIN_SBYTE   0x80

min possible sbyte value

Definition at line 119 of file IceTypes.h.

◆ MIN_SDWORD

#define MIN_SDWORD   0x80000000

min possible sdword value

Definition at line 127 of file IceTypes.h.

◆ MIN_SWORD

#define MIN_SWORD   0x8000

min possible sword value

Definition at line 123 of file IceTypes.h.

◆ MIN_UBYTE

#define MIN_UBYTE   0x00

min possible ubyte value

Definition at line 121 of file IceTypes.h.

◆ MIN_UDWORD

#define MIN_UDWORD   0x00000000

min possible udword value

Definition at line 129 of file IceTypes.h.

◆ MIN_UWORD

#define MIN_UWORD   0x0000

min possible uword value

Definition at line 125 of file IceTypes.h.

◆ null

#define null   0

our own NULL pointer

Definition at line 57 of file IceTypes.h.

◆ ONE_OVER_RAND_MAX

#define ONE_OVER_RAND_MAX   (1.0f / float(RAND_MAX))

Inverse of the max possible value returned by rand()

Definition at line 138 of file IceTypes.h.

◆ OR

#define OR   |

...

Definition at line 159 of file IceTypes.h.

◆ PI

#define PI   3.1415926535897932384626433832795028841971693993751f

PI.

Definition at line 32 of file IceTypes.h.

◆ QUADRAT

#define QUADRAT (   x)    ((x)*(x))

Returns x square.

Definition at line 162 of file IceTypes.h.

◆ RADTODEG

#define RADTODEG   57.2957795130823208768f

180.0 / PI, convert radians to degrees

Definition at line 37 of file IceTypes.h.

◆ SQR

#define SQR (   x)    ((x)*(x))

Returns x square.

Definition at line 155 of file IceTypes.h.

◆ SQRT2

#define SQRT2   1.41421356237f

sqrt(2)

Definition at line 51 of file IceTypes.h.

◆ SQRT3

#define SQRT3   1.73205080757f

sqrt(3)

Definition at line 54 of file IceTypes.h.

◆ TWOPI

#define TWOPI   6.28318530717958647692f

2.0 * PI

Definition at line 34 of file IceTypes.h.

◆ USE_HANDLE_MANAGER

#define USE_HANDLE_MANAGER

Definition at line 29 of file IceTypes.h.

◆ XOR

#define XOR   ^

...

Definition at line 160 of file IceTypes.h.

Typedef Documentation

◆ BOOL

typedef int BOOL

Another boolean type.

Definition at line 102 of file IceTypes.h.

◆ DynID

typedef udword DynID

Dynamic identifier.

Definition at line 84 of file IceTypes.h.

◆ ENUMERATION

typedef bool(* ENUMERATION) (udword value, udword param, udword context)

ICE standard enumeration call.

Definition at line 141 of file IceTypes.h.

◆ float32

typedef float float32

sizeof(float32) must be 4

Definition at line 68 of file IceTypes.h.

◆ float64

typedef double float64

sizeof(float64) must be 4

Definition at line 69 of file IceTypes.h.

◆ KID

typedef udword KID

Kernel ID.

Definition at line 86 of file IceTypes.h.

◆ PROC

typedef int(__stdcall* PROC) ()

A standard procedure call.

Definition at line 140 of file IceTypes.h.

◆ RTYPE

typedef udword RTYPE

Relationship-type (!) between owners and references.

Definition at line 91 of file IceTypes.h.

◆ sbyte

typedef signed char sbyte

sizeof(sbyte) must be 1

Definition at line 60 of file IceTypes.h.

◆ sdword

typedef signed int sdword

sizeof(sdword) must be 4

Definition at line 64 of file IceTypes.h.

◆ sqword

typedef signed __int64 sqword

sizeof(sqword) must be 8

Definition at line 66 of file IceTypes.h.

◆ sword

typedef signed short sword

sizeof(sword) must be 2

Definition at line 62 of file IceTypes.h.

◆ ubyte

typedef unsigned char ubyte

sizeof(ubyte) must be 1

Definition at line 61 of file IceTypes.h.

◆ udword

typedef unsigned int udword

sizeof(udword) must be 4

Definition at line 65 of file IceTypes.h.

◆ uqword

typedef unsigned __int64 uqword

sizeof(uqword) must be 8

Definition at line 67 of file IceTypes.h.

◆ uword

typedef unsigned short uword

sizeof(uword) must be 2

Definition at line 63 of file IceTypes.h.

◆ VTABLE

typedef void** VTABLE

A V-Table.

Definition at line 142 of file IceTypes.h.

Function Documentation

◆ ICE_COMPILE_TIME_ASSERT() [1/9]

ICE_COMPILE_TIME_ASSERT ( sizeof(bool)  = =1)

◆ ICE_COMPILE_TIME_ASSERT() [2/9]

ICE_COMPILE_TIME_ASSERT ( sizeof(ubyte = =1)

◆ ICE_COMPILE_TIME_ASSERT() [3/9]

ICE_COMPILE_TIME_ASSERT ( sizeof(sbyte = =1)

◆ ICE_COMPILE_TIME_ASSERT() [4/9]

ICE_COMPILE_TIME_ASSERT ( sizeof(sword = =2)

◆ ICE_COMPILE_TIME_ASSERT() [5/9]

ICE_COMPILE_TIME_ASSERT ( sizeof(uword = =2)

◆ ICE_COMPILE_TIME_ASSERT() [6/9]

ICE_COMPILE_TIME_ASSERT ( sizeof(udword = =4)

◆ ICE_COMPILE_TIME_ASSERT() [7/9]

ICE_COMPILE_TIME_ASSERT ( sizeof(sdword = =4)

◆ ICE_COMPILE_TIME_ASSERT() [8/9]

ICE_COMPILE_TIME_ASSERT ( sizeof(uqword = =8)

◆ ICE_COMPILE_TIME_ASSERT() [9/9]

ICE_COMPILE_TIME_ASSERT ( sizeof(sqword = =8)

◆ TMax()

template<class T >
inline_ const T& TMax ( const T &  a,
const T &  b 
)

Definition at line 151 of file IceTypes.h.

◆ TMin()

template<class T >
inline_ const T& TMin ( const T &  a,
const T &  b 
)

Definition at line 150 of file IceTypes.h.

◆ TSetMax()

template<class T >
inline_ void TSetMax ( T &  a,
const T &  b 
)

Definition at line 153 of file IceTypes.h.

◆ TSetMin()

template<class T >
inline_ void TSetMin ( T &  a,
const T &  b 
)

Definition at line 152 of file IceTypes.h.



openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:06