MultiAgentDecisionProcess  Release 0.2.1
JointPolicyValuePair.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _JOINTPOLICYVALUEPAIR_H_
30 #define _JOINTPOLICYVALUEPAIR_H_ 1
31 
32 /* the include directives */
33 #include <iostream>
34 #include "Globals.h"
36 
48  : public PolicyPoolItemInterface
49 {
50  private:
51  double _m_val;
52 
53  protected:
54  public:
57  {
58  _m_val = val;
59  }
60 
63 
66  {
67  throw E("Assigning JointPolicyValuePair - but operator= not def'd");
68  }
69 
70  double GetValue() const
71  {return(_m_val);}
72 
73 };
74 
75 namespace std{
78  template <>
79  struct less< JointPolicyValuePair* > //struct, so operator() is public by def.
80  {
81  bool operator()(const JointPolicyValuePair* x, const JointPolicyValuePair* y) const
82  {
83  //cout << "specialized less<JointPolicyValuePair> called!"<<endl;
84  return( x->GetValue() < y->GetValue() );
85  }
86 
87  };
88 }
89 
90 #endif /* !_JPOLVALPAIR_H_ */
91 
92 // Local Variables: ***
93 // mode:c++ ***
94 // End: ***