tbx  0.7.6
Public Member Functions | List of all members
tbx::Fixed16 Class Reference

Class to represent a fixed point number with 16bits before and after the point. More...

#include <fixed16.h>

Public Member Functions

 Fixed16 (const Fixed16 &other)
 
 Fixed16 (int value)
 
 Fixed16 (double value)
 
 operator int () const
 
 operator double () const
 
int bits () const
 Get bits used to represent this number.
 
Fixed16operator= (const Fixed16 &other)
 
bool operator< (const Fixed16 &other)
 
bool operator> (const Fixed16 &other)
 
bool operator<= (const Fixed16 &other)
 
bool operator>= (const Fixed16 &other)
 
Fixed16operator++ ()
 
Fixed16operator-- ()
 
Fixed16 operator++ (int)
 
Fixed16 operator-- (int)
 
Fixed16operator+= (const Fixed16 &other)
 
Fixed16operator-= (const Fixed16 &other)
 
Fixed16operator*= (const Fixed16 &other)
 
Fixed16operator/= (const Fixed16 &other)
 
Fixed16 operator- ()
 
Fixed16operator= (int value)
 
bool operator== (int value) const
 
bool operator!= (int value) const
 
bool operator< (int value) const
 
bool operator> (int value) const
 
bool operator<= (int value) const
 
bool operator>= (int value) const
 
Fixed16operator+= (int value)
 
Fixed16operator-= (int value)
 
Fixed16operator*= (int value)
 
Fixed16operator/= (int value)
 
Fixed16operator= (double value)
 
bool operator== (double value) const
 
bool operator!= (double value) const
 
bool operator< (double value) const
 
bool operator> (double value) const
 
bool operator<= (double value) const
 
bool operator>= (double value) const
 
Fixed16operator+= (double value)
 
Fixed16operator-= (double value)
 
Fixed16operator*= (double value)
 
Fixed16operator/= (double value)
 

Detailed Description

Class to represent a fixed point number with 16bits before and after the point.

There is no checking for range errors.


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