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