MultiAgentDecisionProcess
|
FixedCapacityPriorityQueue is a class that represents a priority queue with a fixed size. More...
#include <FixedCapacityPriorityQueue.h>
Public Member Functions | |
const T & | back () const |
bool | empty () const |
FixedCapacityPriorityQueue (size_t capacity) | |
(default) Constructor More... | |
bool | insert (T &a, T &overflown_T) |
inserts a in the priority q. More... | |
void | pop () |
size_t | size () const |
std::string | SoftPrint () const |
const T & | top () const |
Private Attributes | |
size_t | _m_capacity |
std::list< T > | _m_l |
FixedCapacityPriorityQueue is a class that represents a priority queue with a fixed size.
-all overflowed items (i.e., items that do not fit) are returned, such that the user can delete them
|
inline |
(default) Constructor
|
inline |
|
inline |
bool FixedCapacityPriorityQueue< T, _Compare >::insert | ( | T & | a, |
T & | overflown_T | ||
) |
inserts a in the priority q.
returns true if the capacity overflows in this case, overflown_T is set to the overflown value (which can then be recovered or deleted by the user).
Referenced by BGIPSolution::AddSolution(), Problem_CGBG_FF::AssignAgentActionsToHouses(), and Problem_CGBG_FF::AssignAgentTypesToHouses().
|
inline |
|
inline |
|
inline |
Referenced by BGIPSolution::SoftPrint().
|
inline |
Referenced by Problem_CGBG_FF::AssignAgentActionsToHouses(), Problem_CGBG_FF::AssignAgentTypesToHouses(), BGIPSolution::GetJointPolicy(), BGIPSolution::GetJointPolicyPureVector(), BGIPSolution::GetJointPolicyPureVectorForClusteredBG(), BGIPSolution::GetNextSolutionJPPV(), BGIPSolution::GetNextSolutionPJPDP(), and BGIPSolution::GetPayoff().
|
private |
|
private |