31#pragma GCC visibility push(default)
35template<
class Type,
class Key>
40template<
class Type,
class Key>
41void AbaPrioQueue<Type, Key>::insert(Type elem, Key key)
43 heap_.insert(elem, key);
47template<
class Type,
class Key>
48int AbaPrioQueue<Type, Key>::getMin(Type &min)
const
51 if (heap_.empty())
return 1;
58template<
class Type,
class Key>
59int AbaPrioQueue<Type, Key>::getMinKey(Key &minKey)
const
62 if (heap_.empty())
return 1;
64 minKey = heap_.getMinKey();
69template<
class Type,
class Key>
70int AbaPrioQueue<Type, Key>::extractMin(Type& min)
73 if (heap_.empty())
return 1;
75 min = heap_.extractMin();
80template<
class Type,
class Key>
81void AbaPrioQueue<Type, Key>::clear()
87template<
class Type,
class Key>
88inline int AbaPrioQueue<Type, Key>::size()
const
94template<
class Type,
class Key>
95inline int AbaPrioQueue<Type, Key>::number()
const
97 return heap_.number();
101template<
class Type,
class Key>
102void AbaPrioQueue<Type, Key>::realloc(
int newSize)
104 if (newSize <
size()) {
105 Logger::ifout() <<
"AbaPrioQueue::realloc : priority queue cannot be decreased\n";
109 heap_.realloc(newSize);
113#pragma GCC visibility pop
AbaPrioQueue(int size)
The constructor of an empty priority queue.
#define OGDF_THROW_PARAM(CLASS, PARAM)
Replacement for throw.