Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::math::Fixed< BaseType, fractionalBits > Class Template Reference

A class that represents a fixed-point number. More...

#include <omFixed.h>

Public Member Functions

 Fixed ()
 
 Fixed (float a)
 
 Fixed (double a)
 
 Fixed (int a)
 
 Fixed (unsigned int a)
 
 Fixed (long a)
 
 Fixed (unsigned long a)
 
 Fixed (long long a)
 
 Fixed (unsigned long long a)
 
template<typename T >
Fixedoperator= (T a)
 
 operator float () const
 
 operator double () const
 
 operator int () const
 
 operator unsigned int () const
 
 operator long () const
 
 operator unsigned long () const
 
 operator long long () const
 
 operator unsigned long long () const
 
Bool operator== (const Fixed &other) const
 
Bool operator!= (const Fixed &other) const
 
Bool operator<= (const Fixed &other) const
 
Bool operator>= (const Fixed &other) const
 
Bool operator< (const Fixed &other) const
 
Bool operator> (const Fixed &other) const
 
template<typename T >
Bool operator== (T other) const
 
template<typename T >
Bool operator!= (T other) const
 
template<typename T >
Bool operator<= (T other) const
 
template<typename T >
Bool operator>= (T other) const
 
template<typename T >
Bool operator< (T other) const
 
template<typename T >
Bool operator> (T other) const
 
Fixed operator+ () const
 
Fixed operator- () const
 
Fixed operator+ (const Fixed &other) const
 
Fixed operator- (const Fixed &other) const
 
Fixed operator* (const Fixed &other) const
 
Fixed operator/ (const Fixed &other) const
 
template<typename T >
Fixed operator+ (T value) const
 
template<typename T >
Fixed operator- (T value) const
 
template<typename T >
Fixed operator* (T value) const
 
template<typename T >
Fixed operator/ (T value) const
 
Fixedoperator+= (const Fixed &other) const
 
Fixedoperator-= (const Fixed &other) const
 
Fixedoperator*= (const Fixed &other) const
 
Fixedoperator/= (const Fixed &other) const
 
template<typename T >
Fixedoperator+= (T value) const
 
template<typename T >
Fixedoperator-= (T value) const
 
template<typename T >
Fixedoperator*= (T value) const
 
template<typename T >
Fixedoperator/= (T value) const
 
data::String toString () const
 Convert this vector into a human-readable string representation. More...
 
 operator data::String () const
 Convert this vector into a human-readable string representation. More...
 

Detailed Description

template<typename BaseType, Size fractionalBits>
class om::math::Fixed< BaseType, fractionalBits >

A class that represents a fixed-point number.

Constructor & Destructor Documentation

template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::Fixed ( )
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::Fixed ( float  a)
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::Fixed ( double  a)
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::Fixed ( int  a)
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::Fixed ( unsigned int  a)
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::Fixed ( long  a)
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::Fixed ( unsigned long  a)
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::Fixed ( long long  a)
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::Fixed ( unsigned long long  a)
inline

Member Function Documentation

template<typename BaseType , Size fractionalBits>
template<typename T >
Fixed& om::math::Fixed< BaseType, fractionalBits >::operator= ( a)
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::operator float ( ) const
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::operator double ( ) const
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::operator int ( ) const
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::operator unsigned int ( ) const
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::operator long ( ) const
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::operator unsigned long ( ) const
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::operator long long ( ) const
inline
template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::operator unsigned long long ( ) const
inline
template<typename BaseType , Size fractionalBits>
Bool om::math::Fixed< BaseType, fractionalBits >::operator== ( const Fixed< BaseType, fractionalBits > &  other) const
inline
template<typename BaseType , Size fractionalBits>
Bool om::math::Fixed< BaseType, fractionalBits >::operator!= ( const Fixed< BaseType, fractionalBits > &  other) const
inline
template<typename BaseType , Size fractionalBits>
Bool om::math::Fixed< BaseType, fractionalBits >::operator<= ( const Fixed< BaseType, fractionalBits > &  other) const
inline
template<typename BaseType , Size fractionalBits>
Bool om::math::Fixed< BaseType, fractionalBits >::operator>= ( const Fixed< BaseType, fractionalBits > &  other) const
inline
template<typename BaseType , Size fractionalBits>
Bool om::math::Fixed< BaseType, fractionalBits >::operator< ( const Fixed< BaseType, fractionalBits > &  other) const
inline
template<typename BaseType , Size fractionalBits>
Bool om::math::Fixed< BaseType, fractionalBits >::operator> ( const Fixed< BaseType, fractionalBits > &  other) const
inline
template<typename BaseType , Size fractionalBits>
template<typename T >
Bool om::math::Fixed< BaseType, fractionalBits >::operator== ( other) const
inline
template<typename BaseType , Size fractionalBits>
template<typename T >
Bool om::math::Fixed< BaseType, fractionalBits >::operator!= ( other) const
inline
template<typename BaseType , Size fractionalBits>
template<typename T >
Bool om::math::Fixed< BaseType, fractionalBits >::operator<= ( other) const
inline
template<typename BaseType , Size fractionalBits>
template<typename T >
Bool om::math::Fixed< BaseType, fractionalBits >::operator>= ( other) const
inline
template<typename BaseType , Size fractionalBits>
template<typename T >
Bool om::math::Fixed< BaseType, fractionalBits >::operator< ( other) const
inline
template<typename BaseType , Size fractionalBits>
template<typename T >
Bool om::math::Fixed< BaseType, fractionalBits >::operator> ( other) const
inline
template<typename BaseType , Size fractionalBits>
Fixed om::math::Fixed< BaseType, fractionalBits >::operator+ ( ) const
inline
template<typename BaseType , Size fractionalBits>
Fixed om::math::Fixed< BaseType, fractionalBits >::operator- ( ) const
inline
template<typename BaseType , Size fractionalBits>
Fixed om::math::Fixed< BaseType, fractionalBits >::operator+ ( const Fixed< BaseType, fractionalBits > &  other) const
inline
template<typename BaseType , Size fractionalBits>
Fixed om::math::Fixed< BaseType, fractionalBits >::operator- ( const Fixed< BaseType, fractionalBits > &  other) const
inline
template<typename BaseType , Size fractionalBits>
Fixed om::math::Fixed< BaseType, fractionalBits >::operator* ( const Fixed< BaseType, fractionalBits > &  other) const
inline
template<typename BaseType , Size fractionalBits>
Fixed om::math::Fixed< BaseType, fractionalBits >::operator/ ( const Fixed< BaseType, fractionalBits > &  other) const
inline
template<typename BaseType , Size fractionalBits>
template<typename T >
Fixed om::math::Fixed< BaseType, fractionalBits >::operator+ ( value) const
inline
template<typename BaseType , Size fractionalBits>
template<typename T >
Fixed om::math::Fixed< BaseType, fractionalBits >::operator- ( value) const
inline
template<typename BaseType , Size fractionalBits>
template<typename T >
Fixed om::math::Fixed< BaseType, fractionalBits >::operator* ( value) const
inline
template<typename BaseType , Size fractionalBits>
template<typename T >
Fixed om::math::Fixed< BaseType, fractionalBits >::operator/ ( value) const
inline
template<typename BaseType , Size fractionalBits>
Fixed& om::math::Fixed< BaseType, fractionalBits >::operator+= ( const Fixed< BaseType, fractionalBits > &  other) const
inline
template<typename BaseType , Size fractionalBits>
Fixed& om::math::Fixed< BaseType, fractionalBits >::operator-= ( const Fixed< BaseType, fractionalBits > &  other) const
inline
template<typename BaseType , Size fractionalBits>
Fixed& om::math::Fixed< BaseType, fractionalBits >::operator*= ( const Fixed< BaseType, fractionalBits > &  other) const
inline
template<typename BaseType , Size fractionalBits>
Fixed& om::math::Fixed< BaseType, fractionalBits >::operator/= ( const Fixed< BaseType, fractionalBits > &  other) const
inline
template<typename BaseType , Size fractionalBits>
template<typename T >
Fixed& om::math::Fixed< BaseType, fractionalBits >::operator+= ( value) const
inline
template<typename BaseType , Size fractionalBits>
template<typename T >
Fixed& om::math::Fixed< BaseType, fractionalBits >::operator-= ( value) const
inline
template<typename BaseType , Size fractionalBits>
template<typename T >
Fixed& om::math::Fixed< BaseType, fractionalBits >::operator*= ( value) const
inline
template<typename BaseType , Size fractionalBits>
template<typename T >
Fixed& om::math::Fixed< BaseType, fractionalBits >::operator/= ( value) const
inline
template<typename BaseType , Size fractionalBits>
data::String om::math::Fixed< BaseType, fractionalBits >::toString ( ) const
inline

Convert this vector into a human-readable string representation.

template<typename BaseType , Size fractionalBits>
om::math::Fixed< BaseType, fractionalBits >::operator data::String ( ) const
inline

Convert this vector into a human-readable string representation.


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