#include <_fixed.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
fixed_base () ETL_ATTRIB_INLINE | |
fixed_base (const float &f) ETL_ATTRIB_INLINE | |
fixed_base (const double &f) ETL_ATTRIB_INLINE | |
fixed_base (const long double &f) ETL_ATTRIB_INLINE | |
fixed_base (const int &i) ETL_ATTRIB_INLINE | |
fixed_base (const int &n, const int &d) ETL_ATTRIB_INLINE | |
Fraction constructor. | |
fixed_base (const _fixed &x) ETL_ATTRIB_INLINE | |
fixed_base (value_type x, raw) ETL_ATTRIB_INLINE | |
T & | data () ETL_ATTRIB_PURE ETL_ATTRIB_INLINE |
const T & | data () const ETL_ATTRIB_PURE ETL_ATTRIB_INLINE |
const _fixed & | operator+= (const _fixed &rhs) ETL_ATTRIB_INLINE |
const _fixed & | operator-= (const _fixed &rhs) ETL_ATTRIB_INLINE |
template<typename U> | |
const _fixed & | operator *= (const U &rhs) ETL_ATTRIB_INLINE |
template<typename U> | |
const _fixed & | operator/= (const U &rhs) ETL_ATTRIB_INLINE |
const _fixed & | operator *= (const _fixed &rhs) ETL_ATTRIB_INLINE |
const _fixed & | operator/= (const _fixed &rhs) ETL_ATTRIB_INLINE |
const _fixed & | operator *= (const int &rhs) ETL_ATTRIB_INLINE |
fixed*=int | |
const _fixed & | operator/= (const int &rhs) ETL_ATTRIB_INLINE |
fixed/=int | |
template<typename U> | |
_fixed | operator+ (const U &rhs) const ETL_ATTRIB_INLINE |
fixed + ... | |
template<typename U> | |
_fixed | operator- (const U &rhs) const ETL_ATTRIB_INLINE |
fixed - ... | |
template<typename U> | |
_fixed | operator * (const U &rhs) const ETL_ATTRIB_INLINE |
fixed * ... | |
template<typename U> | |
_fixed | operator/ (const U &rhs) const ETL_ATTRIB_INLINE |
fixed / ... | |
_fixed | operator+ (const _fixed &rhs) const ETL_ATTRIB_INLINE |
_fixed | operator- (const _fixed &rhs) const ETL_ATTRIB_INLINE |
_fixed | operator * (const _fixed &rhs) const ETL_ATTRIB_INLINE |
_fixed | operator/ (const _fixed &rhs) const ETL_ATTRIB_INLINE |
_fixed | operator * (const int &rhs) const ETL_ATTRIB_INLINE |
fixed * int | |
_fixed | operator/ (const int &rhs) const ETL_ATTRIB_INLINE |
fixed / int | |
_fixed | operator * (const float &rhs) const ETL_ATTRIB_INLINE |
fixed * float | |
_fixed | operator * (const double &rhs) const ETL_ATTRIB_INLINE |
fixed * double | |
_fixed | operator- () const ETL_ATTRIB_INLINE |
operator float () const ETL_ATTRIB_INLINE | |
operator double () const ETL_ATTRIB_INLINE | |
operator long double () const ETL_ATTRIB_INLINE | |
operator int () const ETL_ATTRIB_INLINE | |
operator bool () const ETL_ATTRIB_INLINE | |
_fixed | floor () const |
_fixed | ceil () const |
_fixed | round () const |
bool | operator== (const _fixed &rhs) const |
bool | operator!= (const _fixed &rhs) const |
bool | operator< (const _fixed &rhs) const |
bool | operator> (const _fixed &rhs) const |
bool | operator<= (const _fixed &rhs) const |
bool | operator>= (const _fixed &rhs) const |
Private Types | |
typedef fixed_base< T, FIXED_BITS > | _fixed |
typedef fixed_base< T, FIXED_BITS > | self_type |
Static Private Member Functions | |
static bool | _TYPE_SMALLER_THAN_INT () ETL_ATTRIB_CONST ETL_ATTRIB_INLINE |
static bool | _USING_ALL_BITS () ETL_ATTRIB_CONST ETL_ATTRIB_INLINE |
static value_type | _ONE () ETL_ATTRIB_CONST ETL_ATTRIB_INLINE |
static value_type | _F_MASK () ETL_ATTRIB_CONST ETL_ATTRIB_INLINE |
static float | _EPSILON () ETL_ATTRIB_CONST ETL_ATTRIB_INLINE |
Private Attributes | |
T | _data |
Classes | |
class | raw |
========================================================================
A more detailed description needs to be written.
Definition at line 95 of file _fixed.h.
typedef T fixed_base< T, FIXED_BITS >::value_type |
typedef fixed_base<T,FIXED_BITS> fixed_base< T, FIXED_BITS >::_fixed [private] |
typedef fixed_base<T,FIXED_BITS> fixed_base< T, FIXED_BITS >::self_type [private] |
fixed_base< T, FIXED_BITS >::fixed_base | ( | ) | [inline] |
fixed_base< T, FIXED_BITS >::fixed_base | ( | const float & | f | ) | [inline] |
fixed_base< T, FIXED_BITS >::fixed_base | ( | const double & | f | ) | [inline] |
fixed_base< T, FIXED_BITS >::fixed_base | ( | const long double & | f | ) | [inline] |
fixed_base< T, FIXED_BITS >::fixed_base | ( | const int & | i | ) | [inline] |
fixed_base< T, FIXED_BITS >::fixed_base | ( | const int & | n, | |
const int & | d | |||
) | [inline] |
fixed_base< T, FIXED_BITS >::fixed_base | ( | const _fixed & | x | ) | [inline] |
fixed_base< T, FIXED_BITS >::fixed_base | ( | value_type | x, | |
raw | ||||
) | [inline] |
bool fixed_base< T, FIXED_BITS >::_TYPE_SMALLER_THAN_INT | ( | ) | [inline, static, private] |
bool fixed_base< T, FIXED_BITS >::_USING_ALL_BITS | ( | ) | [inline, static, private] |
Definition at line 210 of file _fixed.h.
Referenced by fixed_base< T, FIXED_BITS >::_F_MASK(), and fixed_base< T, FIXED_BITS >::_ONE().
T fixed_base< T, FIXED_BITS >::_ONE | ( | ) | [inline, static, private] |
Definition at line 216 of file _fixed.h.
References fixed_base< T, FIXED_BITS >::_USING_ALL_BITS().
Referenced by fixed_base< T, FIXED_BITS >::_EPSILON(), fixed_base< T, FIXED_BITS >::_F_MASK(), fixed_base< T, FIXED_BITS >::ceil(), fixed_base< T, FIXED_BITS >::operator double(), fixed_base< T, FIXED_BITS >::operator float(), fixed_base< T, FIXED_BITS >::operator long double(), and fixed_base< T, FIXED_BITS >::round().
T fixed_base< T, FIXED_BITS >::_F_MASK | ( | ) | [inline, static, private] |
Definition at line 222 of file _fixed.h.
References fixed_base< T, FIXED_BITS >::_ONE(), and fixed_base< T, FIXED_BITS >::_USING_ALL_BITS().
Referenced by fixed_base< T, FIXED_BITS >::ceil(), fixed_base< T, FIXED_BITS >::floor(), and fixed_base< T, FIXED_BITS >::round().
float fixed_base< T, FIXED_BITS >::_EPSILON | ( | ) | [inline, static, private] |
T & fixed_base< T, FIXED_BITS >::data | ( | ) | [inline] |
Definition at line 235 of file _fixed.h.
References fixed_base< T, FIXED_BITS >::_data.
Referenced by fastangle::cos::cos(), fastangle::tan::get(), fastangle::cos::get(), fastangle::sin::get(), fixed_base< T, FIXED_BITS >::operator!=(), fixed_base< T, FIXED_BITS >::operator<(), fixed_base< T, FIXED_BITS >::operator<=(), fixed_base< T, FIXED_BITS >::operator==(), fixed_base< T, FIXED_BITS >::operator>(), fixed_base< T, FIXED_BITS >::operator>=(), fastangle::sin::sin(), and fastangle::tan::tan().
const T & fixed_base< T, FIXED_BITS >::data | ( | ) | const [inline] |
const _fixed& fixed_base< T, FIXED_BITS >::operator+= | ( | const _fixed & | rhs | ) |
const _fixed& fixed_base< T, FIXED_BITS >::operator-= | ( | const _fixed & | rhs | ) |
const fixed_base< T, FIXED_BITS > & fixed_base< T, FIXED_BITS >::operator *= | ( | const U & | rhs | ) | [inline] |
const fixed_base< T, FIXED_BITS > & fixed_base< T, FIXED_BITS >::operator/= | ( | const U & | rhs | ) | [inline] |
const _fixed& fixed_base< T, FIXED_BITS >::operator *= | ( | const _fixed & | rhs | ) |
const _fixed& fixed_base< T, FIXED_BITS >::operator/= | ( | const _fixed & | rhs | ) |
const fixed_base< T, FIXED_BITS > & fixed_base< T, FIXED_BITS >::operator *= | ( | const int & | rhs | ) | [inline] |
const fixed_base< T, FIXED_BITS > & fixed_base< T, FIXED_BITS >::operator/= | ( | const int & | rhs | ) | [inline] |
fixed_base< T, FIXED_BITS > fixed_base< T, FIXED_BITS >::operator+ | ( | const U & | rhs | ) | const [inline] |
fixed_base< T, FIXED_BITS > fixed_base< T, FIXED_BITS >::operator- | ( | const U & | rhs | ) | const [inline] |
fixed - ...
Definition at line 370 of file _fixed.h.
References fixed_base< T, FIXED_BITS >::operator-().
fixed_base< T, FIXED_BITS > fixed_base< T, FIXED_BITS >::operator * | ( | const U & | rhs | ) | const [inline] |
fixed_base< T, FIXED_BITS > fixed_base< T, FIXED_BITS >::operator/ | ( | const U & | rhs | ) | const [inline] |
_fixed fixed_base< T, FIXED_BITS >::operator+ | ( | const _fixed & | rhs | ) | const |
_fixed fixed_base< T, FIXED_BITS >::operator- | ( | const _fixed & | rhs | ) | const |
_fixed fixed_base< T, FIXED_BITS >::operator * | ( | const _fixed & | rhs | ) | const |
_fixed fixed_base< T, FIXED_BITS >::operator/ | ( | const _fixed & | rhs | ) | const |
fixed_base< T, FIXED_BITS > fixed_base< T, FIXED_BITS >::operator * | ( | const int & | rhs | ) | const [inline] |
fixed_base< T, FIXED_BITS > fixed_base< T, FIXED_BITS >::operator/ | ( | const int & | rhs | ) | const [inline] |
fixed_base< T, FIXED_BITS > fixed_base< T, FIXED_BITS >::operator * | ( | const float & | rhs | ) | const [inline] |
fixed_base< T, FIXED_BITS > fixed_base< T, FIXED_BITS >::operator * | ( | const double & | rhs | ) | const [inline] |
fixed_base< T, FIXED_BITS > fixed_base< T, FIXED_BITS >::operator- | ( | ) | const [inline] |
Definition at line 445 of file _fixed.h.
References fixed_base< T, FIXED_BITS >::_data.
Referenced by fixed_base< T, FIXED_BITS >::operator-().
fixed_base< T, FIXED_BITS >::operator float | ( | ) | const [inline] |
Definition at line 452 of file _fixed.h.
References fixed_base< T, FIXED_BITS >::_data, and fixed_base< T, FIXED_BITS >::_ONE().
fixed_base< T, FIXED_BITS >::operator double | ( | ) | const [inline] |
Definition at line 458 of file _fixed.h.
References fixed_base< T, FIXED_BITS >::_data, and fixed_base< T, FIXED_BITS >::_ONE().
fixed_base< T, FIXED_BITS >::operator long double | ( | ) | const [inline] |
Definition at line 464 of file _fixed.h.
References fixed_base< T, FIXED_BITS >::_data, and fixed_base< T, FIXED_BITS >::_ONE().
fixed_base< T, FIXED_BITS >::operator int | ( | ) | const [inline] |
fixed_base< T, FIXED_BITS >::operator bool | ( | ) | const [inline] |
fixed_base< T, FIXED_BITS > fixed_base< T, FIXED_BITS >::floor | ( | ) | const [inline] |
Definition at line 483 of file _fixed.h.
References fixed_base< T, FIXED_BITS >::_data, and fixed_base< T, FIXED_BITS >::_F_MASK().
Referenced by floor().
fixed_base< T, FIXED_BITS > fixed_base< T, FIXED_BITS >::ceil | ( | ) | const [inline] |
Definition at line 491 of file _fixed.h.
References fixed_base< T, FIXED_BITS >::_data, fixed_base< T, FIXED_BITS >::_F_MASK(), and fixed_base< T, FIXED_BITS >::_ONE().
Referenced by ceil().
fixed_base< T, FIXED_BITS > fixed_base< T, FIXED_BITS >::round | ( | ) | const [inline] |
Definition at line 502 of file _fixed.h.
References fixed_base< T, FIXED_BITS >::_data, fixed_base< T, FIXED_BITS >::_F_MASK(), and fixed_base< T, FIXED_BITS >::_ONE().
Referenced by round().
bool fixed_base< T, FIXED_BITS >::operator== | ( | const _fixed & | rhs | ) | const [inline] |
bool fixed_base< T, FIXED_BITS >::operator!= | ( | const _fixed & | rhs | ) | const [inline] |
bool fixed_base< T, FIXED_BITS >::operator< | ( | const _fixed & | rhs | ) | const [inline] |
bool fixed_base< T, FIXED_BITS >::operator> | ( | const _fixed & | rhs | ) | const [inline] |
bool fixed_base< T, FIXED_BITS >::operator<= | ( | const _fixed & | rhs | ) | const [inline] |
bool fixed_base< T, FIXED_BITS >::operator>= | ( | const _fixed & | rhs | ) | const [inline] |
T fixed_base< T, FIXED_BITS >::_data [private] |
Definition at line 100 of file _fixed.h.
Referenced by fixed_base< T, FIXED_BITS >::ceil(), fixed_base< T, FIXED_BITS >::data(), fixed_base< T, FIXED_BITS >::floor(), fixed_base< T, FIXED_BITS >::operator *(), fixed_base< T, FIXED_BITS >::operator *=(), fixed_base< T, FIXED_BITS >::operator bool(), fixed_base< T, FIXED_BITS >::operator double(), fixed_base< T, FIXED_BITS >::operator float(), fixed_base< T, FIXED_BITS >::operator int(), fixed_base< T, FIXED_BITS >::operator long double(), fixed_base< T, FIXED_BITS >::operator-(), fixed_base< T, FIXED_BITS >::operator/(), fixed_base< T, FIXED_BITS >::operator/=(), and fixed_base< T, FIXED_BITS >::round().