30 #define DEBUG_PPJPVP_ASSIGN 0
37 _m_jpvpQueue_p =
new priority_queue<PartialJPDPValuePair*>();
49 while(_m_jpvpQueue_p->size() > 0)
51 delete _m_jpvpQueue_p->top();
52 _m_jpvpQueue_p->pop();
54 delete _m_jpvpQueue_p;
61 cout <<
"PolicyPoolPartialJPolValPair& PolicyPoolPartialJPolValPair::operator= \
64 if (
this == &o)
return *
this;
68 while(_m_jpvpQueue_p->size() > 0)
70 delete _m_jpvpQueue_p->top();
71 _m_jpvpQueue_p->pop();
73 *_m_jpvpQueue_p = *(o._m_jpvpQueue_p);
81 cout <<
"PartialPolicyPoolInterface& PolicyPoolPartialJPolValPair::operator= \
83 if (
this == &o)
return *
this;
87 return(
operator=(casted_o));
95 #if 0 // old code, now we can specify the depth in the constructors,
106 _m_jpvpQueue_p->push(jpv_empty);
112 if(_m_jpvpQueue_p->size() > 0)
115 _m_jpvpQueue_p->top();
119 throw E(
"Pool empty!");
124 _m_jpvpQueue_p->pop();
133 throw(
E(
"PolicyPoolPartialJPolValPair::Insert could not cast input to PartialJPDPValuePair"));
135 _m_jpvpQueue_p->push(jp);
144 throw(
E(
"PolicyPoolPartialJPolValPair::Union could not cast input to PolicyPoolPartialJPolValPair"));
155 priority_queue<PartialJPDPValuePair*> * new_jpvpQueue_p =
156 new priority_queue<PartialJPDPValuePair*>;
158 while(_m_jpvpQueue_p->size() > 0)
163 new_jpvpQueue_p->push(jpvp);
167 _m_jpvpQueue_p->pop();
170 delete _m_jpvpQueue_p;
171 _m_jpvpQueue_p = new_jpvpQueue_p;