19 lines
267 B
C++
19 lines
267 B
C++
#ifndef FIXED_HPP
|
|
#define FIXED_HPP
|
|
|
|
class Fixed {
|
|
public:
|
|
Fixed();
|
|
Fixed(Fixed &other);
|
|
Fixed &operator=(Fixed &other);
|
|
~Fixed();
|
|
|
|
int getRawBits(void) const;
|
|
void setRawBits(int const raw);
|
|
|
|
private:
|
|
int value;
|
|
static const int fracbits;
|
|
};
|
|
|
|
#endif
|