00001 00034 #ifndef ABA_HISTORY_H 00035 #define ABA_HISTORY_H 00036 #include <iomanip> 00037 using namespace std; 00038 00039 #include "abacus/array.h" 00040 00041 class ABA_MASTER; 00042 00043 class ABA_HISTORY : public ABA_ABACUSROOT { 00044 public: 00045 00052 ABA_HISTORY(ABA_MASTER *master); 00053 00055 virtual ~ABA_HISTORY(); 00056 friend ostream& operator<<(ostream& out, const ABA_HISTORY &rhs); 00064 00074 void update(); 00075 00076 private: 00077 00080 int size() const; 00081 00083 void realloc(); 00084 00087 ABA_MASTER *master_; 00088 00091 ABA_ARRAY<double> primalBound_; 00092 00095 ABA_ARRAY<double> dualBound_; 00096 00099 ABA_ARRAY<long> time_; 00100 00103 int n_; 00104 }; 00105 00106 00107 inline int ABA_HISTORY::size() const 00108 { 00109 return primalBound_.size(); 00110 } 00111 00112 00113 #endif // ABA_HISTORY_H 00114 00115