FCT
载入中...
搜索中...
未找到
FCT::Fraction结构体 参考

#include <Fraction.h>

FCT::Fraction 的协作图:
Collaboration graph

Public 成员函数

 Fraction () noexcept
 Fraction (int32_t num) noexcept
 Fraction (int32_t num, int32_t den) noexcept
void simplify () noexcept
Fraction operator* (const Fraction &other) const noexcept
Fraction operator/ (const Fraction &other) const noexcept
bool operator== (const Fraction &other) const noexcept
bool operator!= (const Fraction &other) const noexcept
float toFloat () const noexcept
bool isUnit () const noexcept

Public 属性

int32_t numerator
int32_t denominator

详细描述

在文件 Fraction.h11 行定义.

构造及析构函数说明

◆ Fraction() [1/3]

FCT::Fraction::Fraction ( )
inlinenoexcept

在文件 Fraction.h15 行定义.

这是这个函数的调用关系图:

◆ Fraction() [2/3]

FCT::Fraction::Fraction ( int32_t num)
inlinenoexcept

在文件 Fraction.h16 行定义.

◆ Fraction() [3/3]

FCT::Fraction::Fraction ( int32_t num,
int32_t den )
inlinenoexcept

在文件 Fraction.h17 行定义.

函数调用图:

成员函数说明

◆ isUnit()

bool FCT::Fraction::isUnit ( ) const
inlinenoexcept

在文件 Fraction.h55 行定义.

◆ operator!=()

bool FCT::Fraction::operator!= ( const Fraction & other) const
inlinenoexcept

在文件 Fraction.h47 行定义.

函数调用图:

◆ operator*()

Fraction FCT::Fraction::operator* ( const Fraction & other) const
inlinenoexcept

在文件 Fraction.h35 行定义.

函数调用图:

◆ operator/()

Fraction FCT::Fraction::operator/ ( const Fraction & other) const
inlinenoexcept

在文件 Fraction.h39 行定义.

函数调用图:

◆ operator==()

bool FCT::Fraction::operator== ( const Fraction & other) const
inlinenoexcept

在文件 Fraction.h43 行定义.

函数调用图:

◆ simplify()

void FCT::Fraction::simplify ( )
inlinenoexcept

在文件 Fraction.h25 行定义.

这是这个函数的调用关系图:

◆ toFloat()

float FCT::Fraction::toFloat ( ) const
inlinenoexcept

在文件 Fraction.h51 行定义.

这是这个函数的调用关系图:

类成员变量说明

◆ denominator

int32_t FCT::Fraction::denominator

在文件 Fraction.h13 行定义.

◆ numerator

int32_t FCT::Fraction::numerator

在文件 Fraction.h12 行定义.


该结构体的文档由以下文件生成: