20 : _disutilityCurveHolder (iHolder._disutilityCurveHolder) {
30 FFDisutilityCurveHolder_T::const_iterator itCurve = _disutilityCurveHolder.find (iKey);
31 if (itCurve == _disutilityCurveHolder.end()) {
33 <<
"given key: " << iKey);
37 return itCurve->second;
43 bool insert = _disutilityCurveHolder.insert (FFDisutilityCurveHolder_T::value_type(iKey, iCurve)).second;
44 if (insert ==
false) {
46 <<
"given key: " << iKey
47 <<
", the key may already exist.");
63 std::ostringstream oStr;
64 for (FFDisutilityCurveHolder_T::const_iterator itCurve = _disutilityCurveHolder.begin();
65 itCurve != _disutilityCurveHolder.end(); ++itCurve) {
66 const std::string& lKey = itCurve->first;
69 for (FFDisutilityCurve_T::const_reverse_iterator itFFDisutility =
70 lCurve.rbegin();itFFDisutility != lCurve.rend(); ++itFFDisutility){
71 const DTD_T& lDTD = itFFDisutility->first;
72 const double& lFFDisutility = itFFDisutility->second;
73 oStr << lDTD <<
":" << lFFDisutility <<
";";
void addCurve(const std::string &, const FFDisutilityCurve_T &)
void fromStream(std::istream &ioIn)
std::map< const DTD_T, double > FFDisutilityCurve_T
void toStream(std::ostream &ioOut) const
Handle on the StdAir library context.
const std::string describe() const
~FFDisutilityCurveHolderStruct()
const FFDisutilityCurve_T & getFFDisutilityCurve(const std::string &) const
FFDisutilityCurveHolderStruct()
#define STDAIR_LOG_DEBUG(iToBeLogged)