blob: 1f956d7c2b415b4f9ed2f739bad7eb06600f4094 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Fixed.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/13 11:40:49 by charles #+# #+# */
/* Updated: 2020/04/13 11:53:30 by charles ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FIXED_HPP
# define FIXED_HPP
# include <iostream>
class Fixed
{
public:
Fixed();
Fixed(Fixed const& other);
~Fixed();
void operator=(Fixed const& other);
int getRawBits() const;
void setRawBits(int const raw);
private:
int m_value;
static int const m_fractional_bits = 8;
};
#endif
|