MultiAgentDecisionProcess  Release 0.2.1
JPPVValuePair.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _JPPVVALUEPAIR_H_
30 #define _JPPVVALUEPAIR_H_ 1
31 
32 /* the include directives */
33 #include <iostream>
34 #include "Globals.h"
35 #include "JointPolicyValuePair.h"
36 
39 
40 
44 {
45 private:
46 
48 
49 protected:
50 
51 public:
52  // Constructor, destructor and copy assignment.
53 
54  JPPVValuePair(JointPolicyPureVector* jp, double value);
55  JPPVValuePair(JointPolicyPureVector& jp, double value);
56 
59 
61  {
62  //we want to inherit from JPolValuePair, but this class is not a real
63  //PolicyPoolItem...
64  throw E("JPPVValuePair::GetJPol should not be called!");
65  return(0);
66  }
68  {return(_m_jpol);}
69 
70  std::string SoftPrint() const;
71  std::string SoftPrintBrief() const;
72 };
73 
74 
75 namespace std{
78  template <>
79  struct less< JPPVValuePair * > //struct, so operator() is public by def.
80  {
81  bool operator()(const JPPVValuePair* x, const JPPVValuePair* y) const
82  {
83  //cout << "specialized less<JPPVValuePair> called!"<<endl;
84  return( x->GetValue() < y->GetValue() );
85  }
86 
87  };
88 }
89 
90 
91 #endif /* !_JPPVVALUEPAIR_H_ */
92 
93 // Local Variables: ***
94 // mode:c++ ***
95 // End: ***