summaryrefslogtreecommitdiff
path: root/ex00/Fixed.hpp
diff options
context:
space:
mode:
authorDominik Kaiser2025-02-13 14:47:48 +0100
committerDominik Kaiser2025-02-13 14:47:48 +0100
commitb013c2457c45d369c9fc9a854caacdffd414ca25 (patch)
treec192fe7a2ef49d33e4587099826d8806ef3a0a39 /ex00/Fixed.hpp
parent80234b81fd22f737d3c86f5993745b1c7053a56a (diff)
downloadcpp02-b013c2457c45d369c9fc9a854caacdffd414ca25.tar.gz
cpp02-b013c2457c45d369c9fc9a854caacdffd414ca25.zip
Add main and fix format
Diffstat (limited to 'ex00/Fixed.hpp')
-rw-r--r--ex00/Fixed.hpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/ex00/Fixed.hpp b/ex00/Fixed.hpp
index 89ccfe5..4c834df 100644
--- a/ex00/Fixed.hpp
+++ b/ex00/Fixed.hpp
@@ -6,26 +6,27 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/12 17:05:34 by dkaiser #+# #+# */
-/* Updated: 2025/02/13 13:06:51 by dkaiser ### ########.fr */
+/* Updated: 2025/02/13 14:38:28 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FIXED_H_
#define FIXED_H_
-class Fixed {
- public:
- Fixed(void);
- Fixed(const Fixed &other);
- Fixed &operator=(const Fixed &other);
- ~Fixed(void);
+class Fixed
+{
+ public:
+ Fixed(void);
+ Fixed(const Fixed &other);
+ Fixed &operator=(const Fixed &other);
+ ~Fixed(void);
- int getRawBits(void) const;
- void setRawBits(int const raw);
+ int getRawBits(void) const;
+ void setRawBits(int const raw);
- private:
- static const int fractional_bits = 8;
- int raw_value;
+ private:
+ static const int fractional_bits = 8;
+ int raw_value;
};
#endif