CPP02 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
Fixed.hpp ファイル

Header file for the Fixed class representing fixed-point numbers with overloaded operators and min/max functions. [詳解]

#include <iostream>
Fixed.hpp の依存先関係図:
被依存関係図:

[ソースコード]

クラス

class  Fixed
 ex00 Fixed Class [詳解]
 

関数

std::ostreamoperator<< (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 に定義があります。

関数詳解

◆ operator<<()

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.

引数
oThe output stream object.
fixedThe Fixed object to insert.
戻り値
A reference to the output stream.

< [add_overload_insertion] [add_overload_insertion]

Fixed.cpp113 行目に定義があります。