MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
MGEReal クラス

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
 
MGERealoperator+= (double)
 
MGERealoperator+= (const MGEReal &)
 
MGEReal operator- () const
 Unary minus. [詳解]
 
MGEReal operator- (double) const
 
MGEReal operator- (const MGEReal &) const
 
MGERealoperator-= (double)
 
MGERealoperator-= (const MGEReal &)
 
MGEReal operator* (double) const
 
MGEReal operator* (const MGEReal &) const
 
MGERealoperator*= (double)
 
MGERealoperator*= (const MGEReal &)
 
MGEReal operator/ (double) const
 
MGEReal operator/ (const MGEReal &) const
 
MGERealoperator/= (double)
 
MGERealoperator/= (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.

構築子と解体子

MGEReal::MGEReal ( double  val = 0.0)
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
bool MGEReal::finite ( ) const
inline
bool MGEReal::infinite ( ) const
inline
int MGEReal::infinite_coef ( ) const

return -1 if minus_infinite(), 1 if plus_infinite(), else 0.

void MGEReal::invert ( )
inline
bool MGEReal::minus_infinite ( ) const
inline
bool MGEReal::operator!= ( double  t) const
inline
bool MGEReal::operator!= ( const MGEReal er2) const
inline
MGEReal MGEReal::operator* ( double  ) const
MGEReal MGEReal::operator* ( const MGEReal ) const
MGEReal& MGEReal::operator*= ( double  )
MGEReal& MGEReal::operator*= ( const MGEReal )
MGEReal MGEReal::operator+ ( double  ) const
MGEReal MGEReal::operator+ ( const MGEReal ) const
MGEReal& MGEReal::operator+= ( double  )
MGEReal& MGEReal::operator+= ( const MGEReal )
MGEReal MGEReal::operator- ( ) const

Unary minus.

MGEReal MGEReal::operator- ( double  ) const
MGEReal MGEReal::operator- ( const MGEReal ) const
MGEReal& MGEReal::operator-= ( double  )
MGEReal& MGEReal::operator-= ( const MGEReal )
MGEReal MGEReal::operator/ ( double  ) const
MGEReal MGEReal::operator/ ( const MGEReal ) const
MGEReal& MGEReal::operator/= ( double  )
MGEReal& MGEReal::operator/= ( const MGEReal )
bool MGEReal::operator< ( double  t) const
bool MGEReal::operator< ( const MGEReal er2) const
inline
bool MGEReal::operator<= ( const MGEReal er2) const
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
bool MGEReal::plus_infinite ( ) const
inline
int MGEReal::restore ( MGIfstream )

Restore Function.

void MGEReal::set_minus_infinite ( )
inline
void MGEReal::set_plus_infinite ( )
inline
void MGEReal::set_real ( double  val)
inline
void MGEReal::set_zero ( )
inline
double MGEReal::value ( ) const
inline

フレンドと関連関数の詳解

MG_DLL_DECLR friend bool operator!= ( double  ,
const MGEReal  
)
friend
MG_DLL_DECLR friend MGEReal operator* ( double  ,
const MGEReal  
)
friend
MG_DLL_DECLR friend MGEReal operator+ ( double  ,
const MGEReal  
)
friend
MG_DLL_DECLR friend MGEReal operator- ( double  ,
const MGEReal  
)
friend
MG_DLL_DECLR friend MGEReal operator/ ( double  ,
const MGEReal  
)
friend
MG_DLL_DECLR friend bool operator< ( double  ,
const MGEReal  
)
friend
MG_DLL_DECLR friend std::ostream& operator<< ( std::ostream &  ,
const MGEReal  
)
friend

String stream Function.

MG_DLL_DECLR friend bool operator<= ( double  ,
const MGEReal  
)
friend
MG_DLL_DECLR friend bool operator== ( double  ,
const MGEReal  
)
friend
MG_DLL_DECLR friend bool operator> ( double  ,
const MGEReal  
)
friend
MG_DLL_DECLR friend bool operator>= ( double  ,
const MGEReal  
)
friend

このクラス詳解は次のファイルから抽出されました: