MGCL V10
V10
MGCL V10
|
MGEReal is extended real number to define infinity. [詳解]
公開メンバ関数 | |
MGEReal (double val=0.0) | |
Default Constructor. [詳解] | |
MGEReal (MGINFINITE_TYPE infinite) | |
MGEReal | operator+ (double) const |
MGEReal | operator+ (const MGEReal &) const |
MGEReal & | operator+= (double) |
MGEReal & | operator+= (const MGEReal &) |
MGEReal | operator- () const |
Unary minus. [詳解] | |
MGEReal | operator- (double) const |
MGEReal | operator- (const MGEReal &) const |
MGEReal & | operator-= (double) |
MGEReal & | operator-= (const MGEReal &) |
MGEReal | operator* (double) const |
MGEReal | operator* (const MGEReal &) const |
MGEReal & | operator*= (double) |
MGEReal & | operator*= (const MGEReal &) |
MGEReal | operator/ (double) const |
MGEReal | operator/ (const MGEReal &) const |
MGEReal & | operator/= (double) |
MGEReal & | operator/= (const MGEReal &) |
bool | operator== (double t) const |
bool | operator== (const MGEReal &) const |
bool | operator!= (double t) const |
bool | operator!= (const MGEReal &er2) const |
bool | operator> (double t) const |
bool | operator> (const MGEReal &) const |
bool | operator< (double t) const |
bool | operator< (const MGEReal &er2) const |
bool | operator>= (const MGEReal &er2) const |
bool | operator<= (const MGEReal &er2) const |
bool | operator>= (double t) const |
bool | operator<= (double t) const |
int | infinite_coef () const |
return -1 if minus_infinite(), 1 if plus_infinite(), else 0. [詳解] | |
bool | equal_base (double t, double base) const |
bool | equal_base (const MGEReal &t, double base) const |
bool | finite () const |
bool | infinite () const |
void | invert () |
bool | minus_infinite () const |
bool | plus_infinite () const |
void | set_real (double val) |
void | set_plus_infinite () |
void | set_minus_infinite () |
void | set_zero () |
double | value () const |
int | dump_size () const |
int | dump (MGOfstream &) const |
Dump Function. [詳解] | |
int | restore (MGIfstream &) |
Restore Function. [詳解] | |
フレンド | |
MG_DLL_DECLR friend MGEReal | operator+ (double, const MGEReal &) |
MG_DLL_DECLR friend MGEReal | operator- (double, const MGEReal &) |
MG_DLL_DECLR friend MGEReal | operator* (double, const MGEReal &) |
MG_DLL_DECLR friend MGEReal | operator/ (double, const MGEReal &) |
MG_DLL_DECLR friend bool | operator== (double, const MGEReal &) |
MG_DLL_DECLR friend bool | operator!= (double, const MGEReal &) |
MG_DLL_DECLR friend bool | operator> (double, const MGEReal &) |
MG_DLL_DECLR friend bool | operator< (double, const MGEReal &) |
MG_DLL_DECLR friend bool | operator>= (double, const MGEReal &) |
MG_DLL_DECLR friend bool | operator<= (double, const MGEReal &) |
MG_DLL_DECLR friend std::ostream & | operator<< (std::ostream &, const MGEReal &) |
String stream Function. [詳解] | |
MGEReal is extended real number to define infinity.
Includes minus infinite and plus infinite, adding to ordinary real number.
|
inline |
Default Constructor.
MGEReal::MGEReal | ( | MGINFINITE_TYPE | infinite | ) |
infinite=-1 means minus_infinite, +1 means plus_infinite.
int MGEReal::dump | ( | MGOfstream & | ) | const |
Dump Function.
int MGEReal::dump_size | ( | ) | const |
Dump Functions. Calculate dump size
bool MGEReal::equal_base | ( | double | t, |
double | base | ||
) | const |
bool MGEReal::equal_base | ( | const MGEReal & | t, |
double | base | ||
) | const |
|
inline |
|
inline |
int MGEReal::infinite_coef | ( | ) | const |
return -1 if minus_infinite(), 1 if plus_infinite(), else 0.
|
inline |
|
inline |
|
inline |
|
inline |
MGEReal MGEReal::operator* | ( | double | ) | const |
MGEReal& MGEReal::operator*= | ( | double | ) |
MGEReal MGEReal::operator+ | ( | double | ) | const |
MGEReal& MGEReal::operator+= | ( | double | ) |
MGEReal MGEReal::operator- | ( | ) | const |
Unary minus.
MGEReal MGEReal::operator- | ( | double | ) | const |
MGEReal& MGEReal::operator-= | ( | double | ) |
MGEReal MGEReal::operator/ | ( | double | ) | const |
MGEReal& MGEReal::operator/= | ( | double | ) |
bool MGEReal::operator< | ( | double | t | ) | const |
|
inline |
|
inline |
bool MGEReal::operator<= | ( | double | t | ) | const |
bool MGEReal::operator== | ( | double | t | ) | const |
bool MGEReal::operator== | ( | const MGEReal & | ) | const |
bool MGEReal::operator> | ( | double | t | ) | const |
bool MGEReal::operator> | ( | const MGEReal & | ) | const |
bool MGEReal::operator>= | ( | const MGEReal & | er2 | ) | const |
bool MGEReal::operator>= | ( | double | t | ) | const |
|
inline |
int MGEReal::restore | ( | MGIfstream & | ) |
Restore Function.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
String stream Function.
|
friend |
|
friend |
|
friend |
|
friend |