MultiAgentDecisionProcess  Release 0.2.1
PartialJPDPValuePair.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _PARTIALJPDPVALUEPAIR_H_
30 #define _PARTIALJPDPVALUEPAIR_H_ 1
31 
32 /* the include directives */
33 #include <iostream>
34 #include "Globals.h"
36 
38 
39 
40 
44 {
45 private:
46 
48 
49 protected:
50 
51 public:
52  // Constructor, destructor and copy assignment.
53 
56 
59 
61  {return(_m_jpol);}
62 
63  std::string SoftPrint() const;
64  std::string SoftPrintBrief() const;
65 };
66 
67 
68 namespace std{
71  template <>
72  struct less< PartialJPDPValuePair * > //struct, so operator() is public by def.
73  {
74  bool operator()(const PartialJPDPValuePair* x, const PartialJPDPValuePair* y) const
75  {
76  //cout << "specialized less<PartialJPDPValuePair> called!"<<endl;
77  return( x->GetValue() < y->GetValue() );
78  }
79 
80  };
81 }
82 
83 
84 #endif /* !_PARTIALJPDPVALUEPAIR_H_ */
85 
86 // Local Variables: ***
87 // mode:c++ ***
88 // End: ***