2025-05-13 13:38:40 +02:00
|
|
|
#ifndef FIXED_HPP
|
|
|
|
|
#define FIXED_HPP
|
|
|
|
|
|
|
|
|
|
class Fixed {
|
|
|
|
|
public:
|
|
|
|
|
Fixed();
|
2025-05-14 14:06:26 +02:00
|
|
|
Fixed(const Fixed &other);
|
|
|
|
|
Fixed &operator=(const Fixed &other);
|
2025-05-13 13:38:40 +02:00
|
|
|
~Fixed();
|
|
|
|
|
|
|
|
|
|
int getRawBits(void) const;
|
|
|
|
|
void setRawBits(int const raw);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
int value;
|
|
|
|
|
static const int fracbits;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|