num.hh File Reference
Go to the source code of this file.
Classes |
class | num |
Functions |
int | isfloat (const num &n) |
const num | operator+ (const num &x, const num &y) |
const num | operator- (const num &x, const num &y) |
const num | operator* (const num &x, const num &y) |
const num | operator/ (const num &x, const num &y) |
const num | operator% (const num &x, const num &y) |
const num | operator<< (const num &x, const num &y) |
const num | operator>> (const num &x, const num &y) |
const num | operator& (const num &x, const num &y) |
const num | operator| (const num &x, const num &y) |
const num | operator^ (const num &x, const num &y) |
const num | operator> (const num &x, const num &y) |
const num | operator< (const num &x, const num &y) |
const num | operator>= (const num &x, const num &y) |
const num | operator<= (const num &x, const num &y) |
const num | operator== (const num &x, const num &y) |
const num | operator!= (const num &x, const num &y) |
Function Documentation
int isfloat |
( |
const num & |
n |
) |
[inline] |
const num operator!= |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
const num operator% |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
Definition at line 102 of file num.hh.
00103 { return num(int(x)%int(y)); }
const num operator& |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
Definition at line 115 of file num.hh.
00116 { return num(int(x)&int(y)); }
const num operator* |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
const num operator+ |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
const num operator- |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
const num operator/ |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
const num operator< |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
const num operator<< |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
Definition at line 107 of file num.hh.
00108 { return num(int(x)<<int(y)); }
const num operator<= |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
const num operator== |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
const num operator> |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
const num operator>= |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
const num operator>> |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
Definition at line 110 of file num.hh.
00111 { return num(int(x)>>int(y)); }
const num operator^ |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
Definition at line 121 of file num.hh.
00122 { return num(int(x)^int(y)); }
const num operator| |
( |
const num & |
x, |
|
|
const num & |
y | |
|
) |
| | [inline] |
Definition at line 118 of file num.hh.
00119 { return num(int(x)|int(y)); }