#include <HeapBase.h>
Public Member Functions | |
| HeapBase () | |
| Constructor. | |
| virtual | ~HeapBase () |
| virtual void | makeHeap ()=0 |
| build a heap out of a given set of elements | |
| HeapObject | minRet () |
| virtual void | insert (HeapObject, Priority) |
| insert a new element with priority key | |
| virtual void | decreaseKey () |
| update the data structure by decreasing the key of an object | |
| int | size () const |
| bool | empty () const |
Protected Attributes | |
| int | m_size |
Definition at line 96 of file HeapBase.h.
| ogdf::HeapBase< Priority, HeapObject >::HeapBase | ( | ) | [inline] |
| virtual ogdf::HeapBase< Priority, HeapObject >::~HeapBase | ( | ) | [inline, virtual] |
Definition at line 102 of file HeapBase.h.
| virtual void ogdf::HeapBase< Priority, HeapObject >::makeHeap | ( | ) | [pure virtual] |
build a heap out of a given set of elements
Implemented in ogdf::BinaryHeap< key, HeapObject >, and ogdf::BinaryHeap< double, ogdf::ELabelPos::PosInfo * >.
| HeapObject ogdf::HeapBase< Priority, HeapObject >::minRet | ( | ) | [inline] |
Definition at line 108 of file HeapBase.h.
| virtual void ogdf::HeapBase< Priority, HeapObject >::insert | ( | HeapObject | , | |
| Priority | ||||
| ) | [inline, virtual] |
| virtual void ogdf::HeapBase< Priority, HeapObject >::decreaseKey | ( | ) | [inline, virtual] |
update the data structure by decreasing the key of an object
Definition at line 122 of file HeapBase.h.
| int ogdf::HeapBase< Priority, HeapObject >::size | ( | ) | const [inline] |
Reimplemented in ogdf::BinaryHeap< key, HeapObject >, and ogdf::BinaryHeap< double, ogdf::ELabelPos::PosInfo * >.
Definition at line 126 of file HeapBase.h.
| bool ogdf::HeapBase< Priority, HeapObject >::empty | ( | ) | const [inline] |
Reimplemented in ogdf::BinaryHeap< key, HeapObject >, and ogdf::BinaryHeap< double, ogdf::ELabelPos::PosInfo * >.
Definition at line 128 of file HeapBase.h.
int ogdf::HeapBase< Priority, HeapObject >::m_size [protected] |
Definition at line 132 of file HeapBase.h.