OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TFixedPoint Class Reference

#include <owl/fixedpnt.h>

Public Member Functions

 TFixedPoint (int s=0)
 
 TFixedPoint (int num, int denom)
 
TFixedPoint operator- ()
 
void operator++ (int)
 
void operator-- (int)
 
TFixedPoint operator<< (unsigned n)
 
TFixedPoint operator>> (unsigned n)
 
TFixedPointoperator<<= (unsigned n)
 
TFixedPointoperator>>= (unsigned n)
 
TFixedPointoperator+= (const TFixedPoint &f)
 
TFixedPointoperator-= (const TFixedPoint &f)
 
TFixedPointoperator*= (int s)
 
TFixedPointoperator*= (const TFixedPoint &f)
 
TFixedPointoperator/= (int s)
 
TFixedPointoperator/= (const TFixedPoint &f)
 
 operator int ()
 

Friends

TFixedPoint operator+ (const TFixedPoint &l, const TFixedPoint &r)
 
TFixedPoint operator+ (int l, const TFixedPoint &r)
 
TFixedPoint operator+ (const TFixedPoint &l, int r)
 
TFixedPoint operator- (const TFixedPoint &l, const TFixedPoint &r)
 
TFixedPoint operator- (int l, const TFixedPoint &r)
 
TFixedPoint operator- (const TFixedPoint &l, int r)
 
TFixedPoint operator* (const TFixedPoint &l, const TFixedPoint &r)
 
TFixedPoint operator* (int l, const TFixedPoint &r)
 
TFixedPoint operator* (const TFixedPoint &l, int r)
 
TFixedPoint operator/ (const TFixedPoint &l, const TFixedPoint &r)
 
TFixedPoint operator/ (int l, const TFixedPoint &r)
 
TFixedPoint operator/ (const TFixedPoint &l, int r)
 
bool operator== (const TFixedPoint &l, const TFixedPoint &r)
 
bool operator!= (const TFixedPoint &l, const TFixedPoint &r)
 
bool operator< (const TFixedPoint &l, const TFixedPoint &r)
 

Detailed Description

Definition at line 27 of file fixedpnt.h.

Constructor & Destructor Documentation

◆ TFixedPoint() [1/2]

owl::TFixedPoint::TFixedPoint ( int s = 0)
inline

Definition at line 29 of file fixedpnt.h.

◆ TFixedPoint() [2/2]

owl::TFixedPoint::TFixedPoint ( int num,
int denom )
inline

Definition at line 30 of file fixedpnt.h.

Member Function Documentation

◆ operator int()

owl::TFixedPoint::operator int ( )
inline

Definition at line 104 of file fixedpnt.h.

◆ operator*=() [1/2]

TFixedPoint & owl::TFixedPoint::operator*= ( const TFixedPoint & f)
inline

Definition at line 56 of file fixedpnt.h.

◆ operator*=() [2/2]

TFixedPoint & owl::TFixedPoint::operator*= ( int s)
inline

Definition at line 55 of file fixedpnt.h.

◆ operator++()

void owl::TFixedPoint::operator++ ( int )
inline

Definition at line 38 of file fixedpnt.h.

◆ operator+=()

TFixedPoint & owl::TFixedPoint::operator+= ( const TFixedPoint & f)
inline

Definition at line 51 of file fixedpnt.h.

◆ operator-()

TFixedPoint owl::TFixedPoint::operator- ( )
inline

Definition at line 34 of file fixedpnt.h.

◆ operator--()

void owl::TFixedPoint::operator-- ( int )
inline

Definition at line 39 of file fixedpnt.h.

◆ operator-=()

TFixedPoint & owl::TFixedPoint::operator-= ( const TFixedPoint & f)
inline

Definition at line 53 of file fixedpnt.h.

◆ operator/=() [1/2]

TFixedPoint & owl::TFixedPoint::operator/= ( const TFixedPoint & f)
inline

Definition at line 60 of file fixedpnt.h.

◆ operator/=() [2/2]

TFixedPoint & owl::TFixedPoint::operator/= ( int s)
inline

Definition at line 59 of file fixedpnt.h.

◆ operator<<()

TFixedPoint owl::TFixedPoint::operator<< ( unsigned n)
inline

Definition at line 43 of file fixedpnt.h.

◆ operator<<=()

TFixedPoint & owl::TFixedPoint::operator<<= ( unsigned n)
inline

Definition at line 48 of file fixedpnt.h.

◆ operator>>()

TFixedPoint owl::TFixedPoint::operator>> ( unsigned n)
inline

Definition at line 44 of file fixedpnt.h.

◆ operator>>=()

TFixedPoint & owl::TFixedPoint::operator>>= ( unsigned n)
inline

Definition at line 49 of file fixedpnt.h.

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const TFixedPoint & l,
const TFixedPoint & r )
friend

Definition at line 97 of file fixedpnt.h.

◆ operator* [1/3]

TFixedPoint operator* ( const TFixedPoint & l,
const TFixedPoint & r )
friend

Definition at line 79 of file fixedpnt.h.

◆ operator* [2/3]

TFixedPoint operator* ( const TFixedPoint & l,
int r )
friend

Definition at line 83 of file fixedpnt.h.

◆ operator* [3/3]

TFixedPoint operator* ( int l,
const TFixedPoint & r )
friend

Definition at line 81 of file fixedpnt.h.

◆ operator+ [1/3]

TFixedPoint operator+ ( const TFixedPoint & l,
const TFixedPoint & r )
friend

Definition at line 65 of file fixedpnt.h.

◆ operator+ [2/3]

TFixedPoint operator+ ( const TFixedPoint & l,
int r )
friend

Definition at line 69 of file fixedpnt.h.

◆ operator+ [3/3]

TFixedPoint operator+ ( int l,
const TFixedPoint & r )
friend

Definition at line 67 of file fixedpnt.h.

◆ operator- [1/3]

TFixedPoint operator- ( const TFixedPoint & l,
const TFixedPoint & r )
friend

Definition at line 72 of file fixedpnt.h.

◆ operator- [2/3]

TFixedPoint operator- ( const TFixedPoint & l,
int r )
friend

Definition at line 76 of file fixedpnt.h.

◆ operator- [3/3]

TFixedPoint operator- ( int l,
const TFixedPoint & r )
friend

Definition at line 74 of file fixedpnt.h.

◆ operator/ [1/3]

TFixedPoint operator/ ( const TFixedPoint & l,
const TFixedPoint & r )
friend

Definition at line 86 of file fixedpnt.h.

◆ operator/ [2/3]

TFixedPoint operator/ ( const TFixedPoint & l,
int r )
friend

Definition at line 90 of file fixedpnt.h.

◆ operator/ [3/3]

TFixedPoint operator/ ( int l,
const TFixedPoint & r )
friend

Definition at line 88 of file fixedpnt.h.

◆ operator<

bool operator< ( const TFixedPoint & l,
const TFixedPoint & r )
friend

Definition at line 99 of file fixedpnt.h.

◆ operator==

bool operator== ( const TFixedPoint & l,
const TFixedPoint & r )
friend

Definition at line 95 of file fixedpnt.h.


The documentation for this class was generated from the following file: