cpp02/ex00/Fixed.hpp

37 lines
1.2 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Fixed.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lfirmin <lfirmin@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/02 12:25:41 by lfirmin #+# #+# */
/* Updated: 2025/07/16 14:42:26 by lfirmin ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FIXED_HPP
# define FIXED_HPP
# include <iostream>
class Fixed
{
private:
int _fixed_p_n;
static const int _number_fractional_bits;
public:
Fixed();
Fixed(const Fixed &copy);
Fixed &operator=(const Fixed &copy);
~Fixed();
int getRawBits(void) const;
void setRawBits(int const raw);
};
#endif