MultiAgentDecisionProcess  Release 0.2.1
PolicyPoolJPolValPair.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _POLICYPOOLJPOLVALPAIR_H_
30 #define _POLICYPOOLJPOLVALPAIR_H_ 1
31 
32 /* the include directives */
33 #include <iostream>
34 #include <queue>
35 #include "Globals.h"
36 #include "JointPolicyValuePair.h"
37 #include "PolicyPoolInterface.h"
38 
39 
43 {
44  private:
46  std::priority_queue<JointPolicyValuePair*> * _m_jpvpQueue_p;
47 
48  protected:
49 
50  public:
51  // Constructor, destructor and copy assignment.
59 
60  //operators:
61 
62  //data manipulation (set) functions:
70 
85  void Pop();
99  {return(Select());};
110  {Pop();};
115  void Insert(PolicyPoolItemInterface* ppi);
116 
121  void Union(PolicyPoolInterface* pp);
122  void Prune(double v);
123  //get (data) functions:
124 
129  size_t Size() const
130  {
131  return(_m_jpvpQueue_p->size());
132  }
133 };
134 
135 
136 #endif /* !_POLICYPOOLJPOLVALPAIR_H_ */
137 
138 // Local Variables: ***
139 // mode:c++ ***
140 // End: ***