Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

fixed< SH > Class Template Reference

#include </home/clem/local/src/opie/noncore/unsupported/qpdf/fixed.h>

Inheritance diagram for fixed< SH >:

Inheritance graph
[legend]
List of all members.

Public Types

typedef int fix_t

Public Member Functions

 fixed (int i=0)
 fixed (double d)
 fixed (const fixed &f)
 operator bool () const
 operator double () const
 operator float () const
 operator int () const
fixedoperator= (const fixed &f)
fixedoperator= (double d)
fixedoperator= (float f)
fixedoperator= (int i)
fixedoperator+= (const fixed &f)
fixedoperator-= (const fixed &f)
fixedoperator *= (const fixed &f)
fixedoperator/= (const fixed &f)
fixedoperator+= (int i)
fixedoperator-= (int i)
fixedoperator *= (int i)
fixedoperator/= (int i)
fixedoperator+= (double d)
fixedoperator-= (double d)
fixedoperator *= (double d)
fixedoperator/= (double d)
fixed operator- () const
fixed operator+ (const fixed &f) const
fixed operator- (const fixed &f) const
fixed operator * (const fixed &f) const
fixed operator/ (const fixed &f) const
fixed operator+ (double d) const
fixed operator- (double d) const
fixed operator * (double d) const
fixed operator/ (double d) const
fixed operator+ (int i) const
fixed operator- (int i) const
fixed operator * (int i) const
fixed operator/ (int i) const
bool operator< (const fixed &f) const
bool operator> (const fixed &f) const
bool operator<= (const fixed &f) const
bool operator>= (const fixed &f) const
bool operator== (const fixed &f) const
bool operator!= (const fixed &f) const
bool operator< (double d) const
bool operator> (double d) const
bool operator<= (double d) const
bool operator>= (double d) const
bool operator== (double d) const
bool operator!= (double d) const
bool operator< (int i) const
bool operator> (int i) const
bool operator<= (int i) const
bool operator>= (int i) const
bool operator== (int i) const
bool operator!= (int i) const
 fixed (fix_t f, bool)

Static Public Member Functions

static double f2d (fix_t f)
static fix_t d2f (double d)
static int f2i (fix_t f)
static fix_t i2f (int i)
static fix_t mul (fix_t m1, fix_t m2)
static fix_t div (fix_t d1, fix_t d2)

Public Attributes

fix_t m_f

template<unsigned int SH>
class fixed< SH >


Member Typedef Documentation

template<unsigned int SH>
typedef int fixed< SH >::fix_t
 

Definition at line 83 of file fixed.h.


Constructor & Destructor Documentation

template<unsigned int SH>
fixed< SH >::fixed int  i = 0  )  [inline]
 

Definition at line 11 of file fixed.h.

Referenced by fixed< 10 >::operator *(), fixed< 10 >::operator+(), fixed< 10 >::operator-(), and fixed< 10 >::operator/().

template<unsigned int SH>
fixed< SH >::fixed double  d  )  [inline]
 

Definition at line 12 of file fixed.h.

template<unsigned int SH>
fixed< SH >::fixed const fixed< SH > &  f  )  [inline]
 

Definition at line 13 of file fixed.h.

template<unsigned int SH>
fixed< SH >::fixed fix_t  f,
bool 
[inline]
 

Definition at line 94 of file fixed.h.


Member Function Documentation

template<unsigned int SH>
static fix_t fixed< SH >::d2f double  d  )  [inline, static]
 

Definition at line 86 of file fixed.h.

Referenced by fixed< 10 >::operator *(), fixed< 10 >::operator *=(), operator!=(), fixed< 10 >::operator!=(), operator+(), fixed< 10 >::operator+(), fixed< 10 >::operator+=(), operator-(), fixed< 10 >::operator-(), fixed< 10 >::operator-=(), fixed< 10 >::operator/(), fixed< 10 >::operator/=(), operator<(), fixed< 10 >::operator<(), operator<=(), fixed< 10 >::operator<=(), fixed< 10 >::operator=(), operator==(), fixed< 10 >::operator==(), operator>(), fixed< 10 >::operator>(), operator>=(), and fixed< 10 >::operator>=().

template<unsigned int SH>
static fix_t fixed< SH >::div fix_t  d1,
fix_t  d2
[inline, static]
 

Definition at line 92 of file fixed.h.

Referenced by operator/(), fixed< 10 >::operator/(), fixed< 10 >::operator/=(), and sqrt().

template<unsigned int SH>
static double fixed< SH >::f2d fix_t  f  )  [inline, static]
 

Definition at line 85 of file fixed.h.

Referenced by fixed< 10 >::operator double(), and fixed< 10 >::operator float().

template<unsigned int SH>
static int fixed< SH >::f2i fix_t  f  )  [inline, static]
 

Definition at line 88 of file fixed.h.

Referenced by lrint(), and fixed< 10 >::operator int().

template<unsigned int SH>
static fix_t fixed< SH >::i2f int  i  )  [inline, static]
 

Definition at line 89 of file fixed.h.

Referenced by operator!=(), fixed< 10 >::operator!=(), operator+(), fixed< 10 >::operator+(), fixed< 10 >::operator+=(), operator-(), fixed< 10 >::operator-(), fixed< 10 >::operator-=(), operator<(), fixed< 10 >::operator<(), operator<=(), fixed< 10 >::operator<=(), fixed< 10 >::operator=(), operator==(), fixed< 10 >::operator==(), operator>(), fixed< 10 >::operator>(), operator>=(), and fixed< 10 >::operator>=().

template<unsigned int SH>
static fix_t fixed< SH >::mul fix_t  m1,
fix_t  m2
[inline, static]
 

Definition at line 91 of file fixed.h.

Referenced by operator *(), fixed< 10 >::operator *(), fixed< 10 >::operator *=(), and operator/().

template<unsigned int SH>
fixed fixed< SH >::operator * int  i  )  const [inline]
 

Definition at line 54 of file fixed.h.

template<unsigned int SH>
fixed fixed< SH >::operator * double  d  )  const [inline]
 

Definition at line 49 of file fixed.h.

template<unsigned int SH>
fixed fixed< SH >::operator * const fixed< SH > &  f  )  const [inline]
 

Definition at line 44 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator *= double  d  )  [inline]
 

Definition at line 37 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator *= int  i  )  [inline]
 

Definition at line 32 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator *= const fixed< SH > &  f  )  [inline]
 

Definition at line 27 of file fixed.h.

template<unsigned int SH>
fixed< SH >::operator bool  )  const [inline]
 

Definition at line 15 of file fixed.h.

template<unsigned int SH>
fixed< SH >::operator double  )  const [inline]
 

Definition at line 16 of file fixed.h.

template<unsigned int SH>
fixed< SH >::operator float  )  const [inline]
 

Definition at line 17 of file fixed.h.

template<unsigned int SH>
fixed< SH >::operator int  )  const [inline]
 

Definition at line 18 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator!= int  i  )  const [inline]
 

Definition at line 76 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator!= double  d  )  const [inline]
 

Definition at line 69 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator!= const fixed< SH > &  f  )  const [inline]
 

Definition at line 62 of file fixed.h.

template<unsigned int SH>
fixed fixed< SH >::operator+ int  i  )  const [inline]
 

Definition at line 52 of file fixed.h.

template<unsigned int SH>
fixed fixed< SH >::operator+ double  d  )  const [inline]
 

Definition at line 47 of file fixed.h.

template<unsigned int SH>
fixed fixed< SH >::operator+ const fixed< SH > &  f  )  const [inline]
 

Definition at line 42 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator+= double  d  )  [inline]
 

Definition at line 35 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator+= int  i  )  [inline]
 

Definition at line 30 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator+= const fixed< SH > &  f  )  [inline]
 

Definition at line 25 of file fixed.h.

template<unsigned int SH>
fixed fixed< SH >::operator- int  i  )  const [inline]
 

Definition at line 53 of file fixed.h.

template<unsigned int SH>
fixed fixed< SH >::operator- double  d  )  const [inline]
 

Definition at line 48 of file fixed.h.

template<unsigned int SH>
fixed fixed< SH >::operator- const fixed< SH > &  f  )  const [inline]
 

Definition at line 43 of file fixed.h.

template<unsigned int SH>
fixed fixed< SH >::operator-  )  const [inline]
 

Definition at line 40 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator-= double  d  )  [inline]
 

Definition at line 36 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator-= int  i  )  [inline]
 

Definition at line 31 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator-= const fixed< SH > &  f  )  [inline]
 

Definition at line 26 of file fixed.h.

template<unsigned int SH>
fixed fixed< SH >::operator/ int  i  )  const [inline]
 

Definition at line 55 of file fixed.h.

template<unsigned int SH>
fixed fixed< SH >::operator/ double  d  )  const [inline]
 

Definition at line 50 of file fixed.h.

template<unsigned int SH>
fixed fixed< SH >::operator/ const fixed< SH > &  f  )  const [inline]
 

Definition at line 45 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator/= double  d  )  [inline]
 

Definition at line 38 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator/= int  i  )  [inline]
 

Definition at line 33 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator/= const fixed< SH > &  f  )  [inline]
 

Definition at line 28 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator< int  i  )  const [inline]
 

Definition at line 71 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator< double  d  )  const [inline]
 

Definition at line 64 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator< const fixed< SH > &  f  )  const [inline]
 

Definition at line 57 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator<= int  i  )  const [inline]
 

Definition at line 73 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator<= double  d  )  const [inline]
 

Definition at line 66 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator<= const fixed< SH > &  f  )  const [inline]
 

Definition at line 59 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator= int  i  )  [inline]
 

Definition at line 23 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator= float  f  )  [inline]
 

Definition at line 22 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator= double  d  )  [inline]
 

Definition at line 21 of file fixed.h.

template<unsigned int SH>
fixed& fixed< SH >::operator= const fixed< SH > &  f  )  [inline]
 

Definition at line 20 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator== int  i  )  const [inline]
 

Definition at line 75 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator== double  d  )  const [inline]
 

Definition at line 68 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator== const fixed< SH > &  f  )  const [inline]
 

Definition at line 61 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator> int  i  )  const [inline]
 

Definition at line 72 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator> double  d  )  const [inline]
 

Definition at line 65 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator> const fixed< SH > &  f  )  const [inline]
 

Definition at line 58 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator>= int  i  )  const [inline]
 

Definition at line 74 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator>= double  d  )  const [inline]
 

Definition at line 67 of file fixed.h.

template<unsigned int SH>
bool fixed< SH >::operator>= const fixed< SH > &  f  )  const [inline]
 

Definition at line 60 of file fixed.h.


Member Data Documentation

template<unsigned int SH>
fix_t fixed< SH >::m_f
 

Definition at line 97 of file fixed.h.

Referenced by fixed< 10 >::operator *(), fixed< 10 >::operator *=(), fixed< 10 >::operator bool(), fixed< 10 >::operator double(), fixed< 10 >::operator float(), fixed< 10 >::operator int(), fixed< 10 >::operator!=(), fixed< 10 >::operator+(), fixed< 10 >::operator+=(), fixed< 10 >::operator-(), fixed< 10 >::operator-=(), fixed< 10 >::operator/(), fixed< 10 >::operator/=(), fixed< 10 >::operator<(), fixed< 10 >::operator<=(), fixed< 10 >::operator=(), fixed< 10 >::operator==(), fixed< 10 >::operator>(), and fixed< 10 >::operator>=().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:32:54 2005 for OPIE by  doxygen 1.4.2