/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Fixed.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/06/20 10:06:37 by narnaud #+# #+# */ /* Updated: 2022/06/20 10:38:33 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ #pragma once #include class Fixed { public: Fixed (void); Fixed (const int init_val); Fixed (Fixed const & src); ~Fixed (void); Fixed & operator= (Fixed const & src); int getRawBits(void) const; void setRawBits(int const raw); private: int _raw_bits; static const int _fract_bits; };