fixed.h File Reference

#include <QString>
#include <QChar>

Go to the source code of this file.

Data Structures

class  Fixed

Typedefs

typedef long long int Fixed_numerator

Functions

long long int integer (Fixed_numerator x)
bool operator!= (Fixed x, Fixed y)
bool operator!= (Fixed x, int y)
bool operator!= (int x, Fixed y)
bool operator>= (Fixed x, Fixed y)
bool operator>= (Fixed x, int y)
bool operator>= (int x, Fixed y)
bool operator> (Fixed x, Fixed y)
bool operator> (Fixed x, int y)
bool operator> (int x, Fixed y)
bool operator<= (Fixed x, Fixed y)
bool operator<= (Fixed x, int y)
bool operator<= (int x, Fixed y)

Variables

const int MAX_FIXED_PRECISION = 12
const int MAX_FIXED_LENGTH = 25


Typedef Documentation

typedef long long int Fixed_numerator

Definition at line 19 of file fixed.h.


Function Documentation

long long int integer ( Fixed_numerator  x  )  [inline]

Definition at line 21 of file fixed.h.

Referenced by Fixed::toQString().

00021                                                 {
00022     return (int) x;
00023 }

bool operator!= ( int  x,
Fixed  y 
) [inline]

Definition at line 77 of file fixed.h.

00077                                          {
00078     return !(x == y);
00079 }

bool operator!= ( Fixed  x,
int  y 
) [inline]

Definition at line 72 of file fixed.h.

00072                                          {
00073     return !(x == y);
00074 }

bool operator!= ( Fixed  x,
Fixed  y 
) [inline]

Definition at line 67 of file fixed.h.

00067                                            {
00068     return !(x == y);
00069 }

bool operator<= ( int  x,
Fixed  y 
) [inline]

Definition at line 122 of file fixed.h.

00122                                          {
00123     return !(y < x);
00124 }

bool operator<= ( Fixed  x,
int  y 
) [inline]

Definition at line 117 of file fixed.h.

00117                                          {
00118     return !(y < x);
00119 }

bool operator<= ( Fixed  x,
Fixed  y 
) [inline]

Definition at line 112 of file fixed.h.

00112                                            {
00113     return !(y < x);
00114 }

bool operator> ( int  x,
Fixed  y 
) [inline]

Definition at line 107 of file fixed.h.

00107                                         {
00108     return y < x;
00109 }

bool operator> ( Fixed  x,
int  y 
) [inline]

Definition at line 102 of file fixed.h.

00102                                         {
00103     return y < x;
00104 }

bool operator> ( Fixed  x,
Fixed  y 
) [inline]

Definition at line 97 of file fixed.h.

00097                                           {
00098     return y < x;
00099 }

bool operator>= ( int  x,
Fixed  y 
) [inline]

Definition at line 92 of file fixed.h.

00092                                          {
00093     return !(x < y);
00094 }

bool operator>= ( Fixed  x,
int  y 
) [inline]

Definition at line 87 of file fixed.h.

00087                                          {
00088     return !(x < y);
00089 }

bool operator>= ( Fixed  x,
Fixed  y 
) [inline]

Definition at line 82 of file fixed.h.

00082                                            {
00083     return !(x < y);
00084 }


Variable Documentation

const int MAX_FIXED_LENGTH = 25

Definition at line 17 of file fixed.h.

Referenced by Fixed::toQString().

const int MAX_FIXED_PRECISION = 12

Definition at line 16 of file fixed.h.

Referenced by Fixed::fromFixed(), and Fixed::toQString().


Generated on Sat Dec 15 00:01:36 2007 for BulmaGes by  doxygen 1.5.1