Fixed.class.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* Fixed.class.hpp :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@gmail.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2025/07/16 15:46:39 by bchanot #+# #+# */
  9. /* Updated: 2025/07/16 16:14:21 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #ifndef FIXED_CLASS_H
  13. # define FIXED_CLASS_H
  14. class Fixed {
  15. public:
  16. Fixed(void);
  17. Fixed(Fixed const &src);
  18. ~Fixed(void);
  19. int getRawBits(void) const;
  20. void setRawBits(int const raw);
  21. Fixed &operator=(Fixed const &rhs);
  22. private:
  23. int _value;
  24. int const _integer;
  25. };
  26. #ifndef