CPP02 1.0
|
Header file for the Fixed class representing fixed-point numbers with overloaded operators and min/max functions. [詳解]
#include <iostream>
クラス | |
class | Fixed |
ex00 Fixed Class [詳解] | |
関数 | |
std::ostream & | operator<< (std::ostream &o, const Fixed &fixed) |
Overloads the output stream operator to insert the float representation of the fixed-point number into the output stream. | |
Header file for the Fixed class representing fixed-point numbers with overloaded operators and min/max functions.
This class provides a representation for fixed-point numbers using an internal integer and a static constant for the number of fractional bits. It includes constructors for initialization, the Orthodox Canonical Form members, methods for raw bit access and conversion to float/int, overloaded comparison operators, arithmetic operators, increment/decrement operators, and static functions to find the minimum and maximum of two Fixed objects. It also declares the overloaded output stream operator.
Fixed.hpp に定義があります。
std::ostream & operator<< | ( | std::ostream & | o, |
const Fixed & | fixed | ||
) |
Overloads the output stream operator to insert the float representation of the fixed-point number into the output stream.
o | The output stream object. |
fixed | The Fixed object to insert. |
< [add_overload_insertion] [add_overload_insertion]