Camargue
Public Member Functions | Private Attributes | Friends | List of all members
CMR::util::Fixed64 Class Reference

A 64-bit fixed precision number type "implemented" as a wrapper to CCbigguy. More...

#include <fixed64.hpp>

Public Member Functions

 Fixed64 (int i)
 Construct from integer.
 
 Fixed64 (double d)
 
double to_d () const
 Construct from double. More...
 
Fixed64operator+= (Fixed64 f)
 Plus increment.
 
Fixed64operator-= (Fixed64 f)
 Minus decrement.
 
Fixed64 ceil () const
 Integer ceiling.
 
bool operator< (const Fixed64 &f) const
 
bool operator== (const Fixed64 &f) const
 
bool operator!= (const Fixed64 &f) const
 
bool operator> (const Fixed64 &f) const
 
bool operator<= (const Fixed64 &f) const
 
bool operator>= (const Fixed64 &f) const
 

Private Attributes

CCbigguy bg
 The underlying Concorde structure.
 

Friends

void add_mult (Fixed64 &f, const Fixed64 &g, int m)
 

Detailed Description

A 64-bit fixed precision number type "implemented" as a wrapper to CCbigguy.

Warning
Concorde will call abort if any of these computations overflow.

Member Function Documentation

double CMR::util::Fixed64::to_d ( ) const
inline

Construct from double.

Convert to double.


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