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

Header file for the Fixed class representing fixed-point numbers with constructors for integer and float, conversion methods, and output stream operator. [詳解]

#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 constructors for integer and float, conversion methods, and output stream operator.

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 to initialize from integers and floating-point numbers, the Orthodox Canonical Form members, methods to access and modify the raw bit representation, and methods to convert to float and int. 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 行目に定義があります。