The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Classes | Functions
floating_point_emulation Namespace Reference

Namespaces

 detail
 

Classes

class  tfloat
 Template class for the emulation. More...
 

Functions

template<class T , unsigned S>
bool operator== (const int lhs, const tfloat< T, S > rhs)
 
template<class T , unsigned S>
bool operator== (const double lhs, const tfloat< T, S > rhs)
 
template<class T , unsigned S>
bool operator!= (const int lhs, const tfloat< T, S > rhs)
 
template<class T , unsigned S>
bool operator!= (const double lhs, const tfloat< T, S > rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator* (tfloat< T, S > lhs, const tfloat< T, S > rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator* (tfloat< T, S > lhs, const int rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator* (tfloat< T, S > lhs, const double rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator* (const int lhs, tfloat< T, S > rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator* (const double lhs, tfloat< T, S > rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator/ (tfloat< T, S > lhs, const tfloat< T, S > rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator/ (tfloat< T, S > lhs, const int rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator/ (tfloat< T, S > lhs, const double rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator/ (const int lhs, tfloat< T, S > rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator/ (const double lhs, tfloat< T, S > rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator+ (tfloat< T, S > lhs, const tfloat< T, S > rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator+ (tfloat< T, S > lhs, const int rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator+ (tfloat< T, S > lhs, const double rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator+ (const int lhs, const tfloat< T, S > rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator+ (const double lhs, const tfloat< T, S > rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator- (tfloat< T, S > lhs, const tfloat< T, S > rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator- (tfloat< T, S > lhs, const int rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator- (tfloat< T, S > lhs, const double rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator- (const int lhs, tfloat< T, S > rhs)
 
template<class T , unsigned S>
tfloat< T, Soperator- (const double lhs, tfloat< T, S > rhs)
 
template<class T , unsigned S>
int floor (tfloat< T, S > lhs)
 
template<class T , unsigned S>
std::ostream & operator<< (std::ostream &stream, const tfloat< T, S > &rhs)
 

Function Documentation

template<class T , unsigned S>
int floating_point_emulation::floor ( tfloat< T, S lhs)
inline
template<class T , unsigned S>
bool floating_point_emulation::operator!= ( const int  lhs,
const tfloat< T, S rhs 
)
inline

Definition at line 958 of file floating_point_emulation.hpp.

template<class T , unsigned S>
bool floating_point_emulation::operator!= ( const double  lhs,
const tfloat< T, S rhs 
)
inline

Definition at line 965 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator* ( tfloat< T, S lhs,
const tfloat< T, S rhs 
)
inline
template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator* ( tfloat< T, S lhs,
const int  rhs 
)
inline

Definition at line 1003 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator* ( tfloat< T, S lhs,
const double  rhs 
)
inline

Definition at line 1010 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator* ( const int  lhs,
tfloat< T, S rhs 
)
inline

Definition at line 1017 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator* ( const double  lhs,
tfloat< T, S rhs 
)
inline

Definition at line 1024 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator+ ( tfloat< T, S lhs,
const tfloat< T, S rhs 
)
inline

Definition at line 1070 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator+ ( tfloat< T, S lhs,
const int  rhs 
)
inline

Definition at line 1077 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator+ ( tfloat< T, S lhs,
const double  rhs 
)
inline

Definition at line 1084 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator+ ( const int  lhs,
const tfloat< T, S rhs 
)
inline

Definition at line 1091 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator+ ( const double  lhs,
const tfloat< T, S rhs 
)
inline

Definition at line 1098 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator- ( tfloat< T, S lhs,
const tfloat< T, S rhs 
)
inline

Definition at line 1107 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator- ( tfloat< T, S lhs,
const int  rhs 
)
inline

Definition at line 1114 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator- ( tfloat< T, S lhs,
const double  rhs 
)
inline

Definition at line 1121 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator- ( const int  lhs,
tfloat< T, S rhs 
)
inline

Definition at line 1128 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator- ( const double  lhs,
tfloat< T, S rhs 
)
inline

Definition at line 1135 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator/ ( tfloat< T, S lhs,
const tfloat< T, S rhs 
)
inline

Definition at line 1033 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator/ ( tfloat< T, S lhs,
const int  rhs 
)
inline

Definition at line 1040 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator/ ( tfloat< T, S lhs,
const double  rhs 
)
inline

Definition at line 1047 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator/ ( const int  lhs,
tfloat< T, S rhs 
)
inline

Definition at line 1054 of file floating_point_emulation.hpp.

template<class T , unsigned S>
tfloat<T, S> floating_point_emulation::operator/ ( const double  lhs,
tfloat< T, S rhs 
)
inline

Definition at line 1061 of file floating_point_emulation.hpp.

template<class T , unsigned S>
std::ostream& floating_point_emulation::operator<< ( std::ostream &  stream,
const tfloat< T, S > &  rhs 
)
inline

Definition at line 22 of file floating_point_emulation.cpp.

References S.

template<class T , unsigned S>
bool floating_point_emulation::operator== ( const int  lhs,
const tfloat< T, S rhs 
)
inline

Definition at line 944 of file floating_point_emulation.hpp.

template<class T , unsigned S>
bool floating_point_emulation::operator== ( const double  lhs,
const tfloat< T, S rhs 
)
inline

Definition at line 951 of file floating_point_emulation.hpp.