Class Rational |
||
---|---|---|
変数
|
||
|
||
メソッド
|
||
|
||
|
class Rational
No. | 名称 | 属性 | 型 | 説明 |
---|---|---|---|---|
1 |
normalize() | Protected | void | |
2 |
Rational() | Public | ||
3 |
Rational() | Public | ||
4 |
Rational() | Public | ||
5 |
Rational() | Public | ||
6 |
Rational() | Public | ||
7 |
Rational() | Public | ||
8 |
Rational() | Public | ||
9 |
Rational() | Public | ||
10 |
Rational() | Public | ||
11 |
Rational() | Public | ||
12 |
Rational() | Public | ||
13 |
Rational() | Public | ||
14 |
~Rational() | Public | ||
15 |
operator =() | Public | Rational& | |
16 |
operator ==() | Public | friend int | |
17 |
operator !=() | Public | friend int | |
18 |
operator <() | Public | friend int | |
19 |
operator <=() | Public | friend int | |
20 |
operator >() | Public | friend int | |
21 |
operator >=() | Public | friend int | |
22 |
operator +() | Public | friend Rational | |
23 |
operator -() | Public | friend Rational | |
24 |
operator *() | Public | friend Rational | |
25 |
operator /() | Public | friend Rational | |
26 |
operator +=() | Public | Rational& | |
27 |
operator -=() | Public | Rational& | |
28 |
operator *=() | Public | Rational& | |
29 |
operator /=() | Public | Rational& | |
30 |
operator <?() | Public | friend Rational | min |
31 |
operator >?() | Public | friend Rational | max |
32 |
operator -() | Public | friend Rational | |
33 |
negate() | Public | void | x = -x |
34 |
invert() | Public | void | x = 1/x |
35 |
sign() | Public | friend int | -1, 0, or +1 |
36 |
abs() | Public | friend Rational | absolute value |
37 |
sqr() | Public | friend Rational | square |
38 |
pow() | Public | friend Rational | |
39 |
pow() | Public | friend Rational | |
40 |
numerator() | Public | const Integer& | |
41 |
denominator() | Public | const Integer& | |
42 |
operator double() | Public | ||
43 |
floor() | Public | friend Integer | |
44 |
ceil() | Public | friend Integer | |
45 |
trunc() | Public | friend Integer | |
46 |
round() | Public | friend Integer | |
47 |
operator >>() | Public | friend istream& | |
48 |
operator <<() | Public | friend ostream& | |
49 |
fits_in_float() | Public | int | |
50 |
fits_in_double() | Public | int | |
51 |
compare() | Public | friend int | |
52 |
add() | Public | friend void | |
53 |
sub() | Public | friend void | |
54 |
mul() | Public | friend void | |
55 |
div() | Public | friend void | |
56 |
error() | Public | void | |
57 |
OK() | Public | int |
No. | 名称 | 属性 | 型 | 説明 |
---|---|---|---|---|
1 |
num | Protected | Integer | |
2 |
den | Protected | Integer |
目次 | ファイル一覧 | 関数一覧 | ネームスペース一覧 | クラス一覧 | #define一覧 | マクロ一覧 | 外部変数一覧 | 構造体一覧 | 共用体一覧 | 列挙体一覧 | Const一覧 | 索引 | サイドメニュー