Empirical
Public Member Functions | Friends | List of all members
emp::fixed< FRAC_BITS > Class Template Reference

#include <fixed.h>

Public Member Functions

 fixed ()
 
 fixed (const fixed &in_value)
 
 fixed (int in_value)
 
 fixed (double in_value)
 
 ~fixed ()
 
int bits () const
 
int AsInt () const
 
double AsDouble () const
 
fixedoperator= (const fixed &other)
 
fixedoperator= (int other)
 
fixedoperator= (double other)
 
fixedoperator+= (const fixed &rhs)
 
fixedoperator-= (const fixed &rhs)
 
fixedoperator*= (const fixed &rhs)
 
fixedoperator/= (const fixed &rhs)
 
fixedoperator++ ()
 
fixed operator++ (int)
 
fixedoperator-- ()
 
fixed operator-- (int)
 

Friends

fixed operator+ (const fixed &lhs, const fixed &rhs)
 
fixed operator- (const fixed &lhs, const fixed &rhs)
 
fixed operator* (const fixed &lhs, const fixed &rhs)
 
fixed operator/ (const fixed &lhs, const fixed &rhs)
 
bool operator== (const fixed &lhs, const fixed &rhs)
 
bool operator!= (const fixed &lhs, const fixed &rhs)
 
bool operator< (const fixed &lhs, const fixed &rhs)
 
bool operator<= (const fixed &lhs, const fixed &rhs)
 
bool operator> (const fixed &lhs, const fixed &rhs)
 
bool operator>= (const fixed &lhs, const fixed &rhs)
 

Constructor & Destructor Documentation

template<int FRAC_BITS = 10>
emp::fixed< FRAC_BITS >::fixed ( )
inline
template<int FRAC_BITS = 10>
emp::fixed< FRAC_BITS >::fixed ( const fixed< FRAC_BITS > &  in_value)
inline
template<int FRAC_BITS = 10>
emp::fixed< FRAC_BITS >::fixed ( int  in_value)
inline
template<int FRAC_BITS = 10>
emp::fixed< FRAC_BITS >::fixed ( double  in_value)
inline
template<int FRAC_BITS = 10>
emp::fixed< FRAC_BITS >::~fixed ( )
inline

Member Function Documentation

template<int FRAC_BITS = 10>
double emp::fixed< FRAC_BITS >::AsDouble ( ) const
inline
template<int FRAC_BITS = 10>
int emp::fixed< FRAC_BITS >::AsInt ( ) const
inline
template<int FRAC_BITS = 10>
int emp::fixed< FRAC_BITS >::bits ( ) const
inline
template<int FRAC_BITS = 10>
fixed& emp::fixed< FRAC_BITS >::operator*= ( const fixed< FRAC_BITS > &  rhs)
inline
template<int FRAC_BITS = 10>
fixed& emp::fixed< FRAC_BITS >::operator++ ( )
inline
template<int FRAC_BITS = 10>
fixed emp::fixed< FRAC_BITS >::operator++ ( int  )
inline
template<int FRAC_BITS = 10>
fixed& emp::fixed< FRAC_BITS >::operator+= ( const fixed< FRAC_BITS > &  rhs)
inline
template<int FRAC_BITS = 10>
fixed& emp::fixed< FRAC_BITS >::operator-- ( )
inline
template<int FRAC_BITS = 10>
fixed emp::fixed< FRAC_BITS >::operator-- ( int  )
inline
template<int FRAC_BITS = 10>
fixed& emp::fixed< FRAC_BITS >::operator-= ( const fixed< FRAC_BITS > &  rhs)
inline
template<int FRAC_BITS = 10>
fixed& emp::fixed< FRAC_BITS >::operator/= ( const fixed< FRAC_BITS > &  rhs)
inline
template<int FRAC_BITS = 10>
fixed& emp::fixed< FRAC_BITS >::operator= ( const fixed< FRAC_BITS > &  other)
inline
template<int FRAC_BITS = 10>
fixed& emp::fixed< FRAC_BITS >::operator= ( int  other)
inline
template<int FRAC_BITS = 10>
fixed& emp::fixed< FRAC_BITS >::operator= ( double  other)
inline

Friends And Related Function Documentation

template<int FRAC_BITS = 10>
bool operator!= ( const fixed< FRAC_BITS > &  lhs,
const fixed< FRAC_BITS > &  rhs 
)
friend
template<int FRAC_BITS = 10>
fixed operator* ( const fixed< FRAC_BITS > &  lhs,
const fixed< FRAC_BITS > &  rhs 
)
friend
template<int FRAC_BITS = 10>
fixed operator+ ( const fixed< FRAC_BITS > &  lhs,
const fixed< FRAC_BITS > &  rhs 
)
friend
template<int FRAC_BITS = 10>
fixed operator- ( const fixed< FRAC_BITS > &  lhs,
const fixed< FRAC_BITS > &  rhs 
)
friend
template<int FRAC_BITS = 10>
fixed operator/ ( const fixed< FRAC_BITS > &  lhs,
const fixed< FRAC_BITS > &  rhs 
)
friend
template<int FRAC_BITS = 10>
bool operator< ( const fixed< FRAC_BITS > &  lhs,
const fixed< FRAC_BITS > &  rhs 
)
friend
template<int FRAC_BITS = 10>
bool operator<= ( const fixed< FRAC_BITS > &  lhs,
const fixed< FRAC_BITS > &  rhs 
)
friend
template<int FRAC_BITS = 10>
bool operator== ( const fixed< FRAC_BITS > &  lhs,
const fixed< FRAC_BITS > &  rhs 
)
friend
template<int FRAC_BITS = 10>
bool operator> ( const fixed< FRAC_BITS > &  lhs,
const fixed< FRAC_BITS > &  rhs 
)
friend
template<int FRAC_BITS = 10>
bool operator>= ( const fixed< FRAC_BITS > &  lhs,
const fixed< FRAC_BITS > &  rhs 
)
friend

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