SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送
メインページ   名前空間一覧   クラス階層   構成   ファイル一覧   名前空間メンバ   構成メンバ   ファイルメンバ  

dkutilMPArithmetic.h

解説を見る。
00001 //dkutilMPArithmetic
00002 //dKingyoUtility Multiple-Precision arthmetic
00018 // 多倍長小数クラス
00019 
00020 #include "AllLoad.h"
00021 
00022 #ifndef  __DOUBLE_H__INCLUDE_ONCE
00023 #define  __DOUBLE_H__INCLUDE_ONCE
00024 
00025 #include <iostream>
00026 //using namespace std;
00027 
00028 
00029 namespace dkutil{//begin dkutil namespace
00030     namespace math{//begin math namespace
00031 
00032 class Double
00033 {
00034     double  dblMantissa ;   // 仮数
00035     int intExponent ;   // 指数
00036 
00037 public:
00038 // コンストラクタおよびデストラクタ
00039     Double( double = 0) ;
00040     Double( const Double&) ;
00041     ~Double() ;
00042 
00043 // 設定
00044     void SetDouble( double) ;
00045 private:
00046     void Validate( double) ;
00047 
00048 
00049 // 演算
00050     friend std::ostream &operator<<(std::ostream &, const Double &);
00051     friend std::istream &operator>>(std::istream &, Double &);
00052     friend const Double operator+(const Double &, const Double &) ;
00053     friend const Double operator-(const Double &, const Double &) ;
00054     friend const Double operator*(const Double &, const Double &) ;
00055     friend const Double operator/(const Double &, const Double &) ;
00056     friend bool operator==(const Double &, const Double &);
00057     friend bool operator==(const Double &, double);
00058     friend bool operator==(double, const Double &);
00059     friend bool operator!=(const Double &, const Double &);
00060     friend bool operator!=(const Double &, double);
00061     friend bool operator!=(double, const Double &);
00062 
00063 public:
00064     Double& operator=( const Double&) ;
00065     Double& operator+=(const Double&);
00066     Double& operator-=(const Double&);
00067     Double& operator*=(const Double&);
00068     Double& operator/=(const Double&);
00069     operator double() const ;
00070 } ;
00071 
00072 }//end of math namespace
00073 }//end of dkutil namespace
00074 
00075 #endif
00076 

dKingyoUtilClass (dkutil)に対してMon Jun 9 01:32:41 2003に生成されました。 doxygen1.3