Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

FixedT Class Template Reference

A fixed point integer representation. More...

#include <Fixed.h>

List of all members.

Public Types

typedef signed long fixed_t
enum  { MASK = ((1L << BITS) -1) }

Public Methods

 FixedT ()
 FixedT (double value)
FixedT& operator= (const FixedT& rhs)
FixedT& operator= (double value)
FixedT& operator- ()
FixedT& operator *= (const FixedT& rhs)
FixedT& operator/= (const FixedT& rhs)
FixedT& operator *= (const unsigned long& rhs)
FixedT& operator+= (const FixedT& rhs)
FixedT& operator-= (const FixedT& rhs)
FixedT operator- (const FixedT& rhs)
FixedT operator+ (const FixedT& rhs)
FixedT operator * (const FixedT& rhs)
FixedT operator/ (const FixedT& rhs)
bool operator== (const FixedT& rhs) const
bool operator< (const FixedT& rhs) const
FixedT operator% (const FixedT& rhs)
FixedT operator% (unsigned long rhs)
FixedT& operator%= (const FixedT& rhs)
FixedT fractional () const
long c_long () const
double c_double () const


Detailed Description

template<signed long BITS> template class FixedT

A fixed point integer representation.

BITS is the number of bits to use to represent the fractional part. BITS should be positive despite the fact that it is signed.


The documentation for this class was generated from the following file:
Generated at Mon Nov 27 01:46:53 2000 for LibPenguinPlay by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000