overload operators en cours

This commit is contained in:
Hugo LAMY
2022-02-16 13:48:33 +01:00
parent abb66473ab
commit d45a096244
6 changed files with 112 additions and 26 deletions

View File

@@ -16,13 +16,18 @@ public:
Fixed(float const floater);
Fixed & operator= (Fixed const & rhs); // assignement operator
// Fixed operator+ (Fixed const & rhs) const;
bool operator< (Fixed const & rhs) const;
// Fixed operator> (Fixed const & rhs) const;
// Fixed operator<=(Fixed const & rhs) const;
// Fixed operator>=(Fixed const & rhs) const;
// Fixed operator==(Fixed const & rhs) const;
// Fixed operator!=(Fixed const & rhs) const;
bool operator> (Fixed const & rhs) const;
bool operator<=(Fixed const & rhs) const;
bool operator>=(Fixed const & rhs) const;
bool operator==(Fixed const & rhs) const;
bool operator!=(Fixed const & rhs) const;
Fixed operator+ (Fixed const & rhs) const;
Fixed operator- (Fixed const & rhs) const;
Fixed operator* (Fixed const & rhs) const;
Fixed operator/ (Fixed const & rhs) const;
// void operator++(void);
// void operator--(void);
int getRawBits(void) const;
void setRawBits(int const raw);