34template<
class Type,
class Key>
39template<
class Type,
class Key>
40void AbaPrioQueue<Type, Key>::insert(Type
elem, Key key)
42 heap_.insert(
elem, key);
46template<
class Type,
class Key>
47int AbaPrioQueue<Type, Key>::getMin(Type &min)
const
50 if (heap_.empty())
return 1;
57template<
class Type,
class Key>
58int AbaPrioQueue<Type, Key>::getMinKey(Key &
minKey)
const
61 if (heap_.empty())
return 1;
63 minKey = heap_.getMinKey();
68template<
class Type,
class Key>
69int AbaPrioQueue<Type, Key>::extractMin(Type& min)
72 if (heap_.empty())
return 1;
74 min = heap_.extractMin();
79template<
class Type,
class Key>
80void AbaPrioQueue<Type, Key>::clear()
86template<
class Type,
class Key>
87inline int AbaPrioQueue<Type, Key>::size()
const
93template<
class Type,
class Key>
94inline int AbaPrioQueue<Type, Key>::number()
const
96 return heap_.number();
100template<
class Type,
class Key>
101void AbaPrioQueue<Type, Key>::realloc(
int newSize)
104 Logger::ifout() <<
"AbaPrioQueue::realloc : priority queue cannot be decreased\n";
AbaPrioQueue(int size)
The constructor of an empty priority queue.
#define OGDF_THROW_PARAM(CLASS, PARAM)
Replacement for throw.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()