_types.h File Reference

Go to the source code of this file.

Defines

#define NULL   0
 Description: This file contains type definitions and general macros.

Typedefs

typedef unsigned char int8u
typedef signed char int8s
typedef unsigned short int int16u
typedef signed short int int16s
typedef unsigned long int32u
typedef signed long int32s
typedef unsigned long long int64u
typedef signed long long int64s
typedef int8u BYTE
typedef char CHAR
typedef float FLOAT
typedef double DOUBLE

Functions

template<class T >
round (DOUBLE val)
template<class T >
MAX (T x, T y)
template<class T >
MIN (T x, T y)
template<class T >
void SWAP (T &x, T &y)


Define Documentation

#define NULL   0

Description: This file contains type definitions and general macros.

Filename: _types.h

Author: Glen Kramer (kramer@cs.ucdavis.edu) University of California, Davis

Copyright (c) 2000-2004, Glen Kramer All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition at line 50 of file _types.h.


Typedef Documentation

typedef int8u BYTE

Definition at line 99 of file _types.h.

typedef char CHAR

Definition at line 100 of file _types.h.

typedef double DOUBLE

Definition at line 104 of file _types.h.

typedef float FLOAT

Definition at line 103 of file _types.h.

typedef signed short int int16s

Definition at line 79 of file _types.h.

typedef unsigned short int int16u

Definition at line 78 of file _types.h.

typedef signed long int32s

Definition at line 82 of file _types.h.

typedef unsigned long int32u

Definition at line 81 of file _types.h.

typedef signed long long int64s

Definition at line 86 of file _types.h.

typedef unsigned long long int64u

Definition at line 85 of file _types.h.

typedef signed char int8s

Definition at line 76 of file _types.h.

typedef unsigned char int8u

Definition at line 75 of file _types.h.


Function Documentation

template<class T >
T MAX ( x,
y 
) [inline]

Definition at line 109 of file _types.h.

00109 { return x > y? x : y;     }

template<class T >
T MIN ( x,
y 
) [inline]

Definition at line 110 of file _types.h.

00110 { return x < y? x : y;     }

template<class T >
T round ( DOUBLE  val  )  [inline]

Definition at line 108 of file _types.h.

00108 { return (T)( val + 0.5 ); }

template<class T >
void SWAP ( T &  x,
T &  y 
) [inline]

Definition at line 112 of file _types.h.

00112 { T z = x; x = y; y = z;   }


Generated on Thu Nov 28 14:47:20 2013 for red_wireless by  doxygen 1.5.7.1