00001 #ifndef __RMOL_BOM_PARTIALSUMHOLDER_HPP 00002 #define __RMOL_BOM_PARTIALSUMHOLDER_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // STL 00008 #include <iostream> 00009 // RMOL 00010 #include <rmol/bom/BomAbstract.hpp> 00011 #include <rmol/bom/PartialSumList.hpp> 00012 00013 namespace RMOL { 00014 00017 class PartialSumHolder : public BomAbstract { 00021 friend class FacPartialSumHolder; 00022 00023 public: 00024 // ///////// Getters ///////// 00026 const double getPartialSum (const int k) const; 00027 00029 void initSize (const int K); 00030 00032 void addPartialSum (const double iPartialSum); 00033 00037 void sort (); 00038 00039 public: 00040 // ///////// Display methods //////// 00043 void toStream (std::ostream&) const; 00044 00047 void fromStream (std::istream&); 00048 00050 std::string toString() const; 00051 00054 const std::string describeKey() const; 00055 00058 const std::string describeShortKey() const; 00059 00061 const std::string display() const; 00062 00064 const std::string shortDisplay() const; 00065 00066 00067 private: 00069 PartialSumHolder (); 00070 PartialSumHolder (const PartialSumHolder&); 00071 00073 virtual ~PartialSumHolder(); 00074 00075 00076 private: 00077 // ///////// Attributes ///////// 00079 PartialSumList_T _partialSumList; 00080 }; 00081 } 00082 #endif // __RMOL_BOM_PARTIALSUMHOLDER_HPP
Generated on Sun Jun 14 23:33:59 2009 for RMOL by Doxygen 1.5.8