#include <num.hh>
Public Member Functions | |
num (int x=0) | |
num (double x) | |
num (const num &n) | |
num & | operator= (int n) |
num & | operator= (double n) |
bool | operator== (const num &n) const |
bool | operator!= (const num &n) const |
int | type () const |
operator int () const | |
operator double () const | |
Private Attributes | |
int | fType |
union { | |
int i | |
double f | |
} | fData |
Definition at line 58 of file num.hh.
num::num | ( | int | x = 0 |
) | [inline] |
num::num | ( | double | x | ) | [inline] |
num::num | ( | const num & | n | ) | [inline] |
num::operator double | ( | ) | const [inline] |
num::operator int | ( | ) | const [inline] |
bool num::operator!= | ( | const num & | n | ) | const [inline] |
num& num::operator= | ( | double | n | ) | [inline] |
num& num::operator= | ( | int | n | ) | [inline] |
bool num::operator== | ( | const num & | n | ) | const [inline] |
int num::type | ( | ) | const [inline] |
union { ... } num::fData [private] |
Referenced by num(), operator double(), operator int(), operator!=(), operator=(), and operator==().
int num::fType [private] |
Definition at line 60 of file num.hh.
Referenced by operator double(), operator int(), operator!=(), operator=(), operator==(), and type().
int num::i |
Definition at line 62 of file num.hh.
Referenced by num(), operator!=(), and operator==().