#include <ogdf/basic/MinPriorityQueue.h>
Public Member Functions | |
| MinPriorityQueue (int _size) | |
| ~MinPriorityQueue () | |
| bool | empty () const |
| int | count () const |
| int | size () const |
| const X & | getMin () const |
| void | decreasePriority (const HeapElement< Score, X > *elem, Score sc) |
| const HeapElement< Score, X > * | insert (const HeapElement< Score, X > &elem) |
| HeapElement< Score, X > | pop () |
| void | outHeap () |
Private Member Functions | |
| void | swap (int pos1, int pos2) |
| void | minHeapify (int pos) |
| int | getParent (int pos) const |
| int | getLeft (int pos) const |
| int | getRight (int pos) const |
Private Attributes | |
| HeapElement< Score, X > ** | heapElements |
| int | number |
| int | s |
Definition at line 84 of file MinPriorityQueue.h.
| ogdf::MinPriorityQueue< Score, X >::MinPriorityQueue | ( | int | _size | ) | [inline] |
Definition at line 126 of file MinPriorityQueue.h.
| ogdf::MinPriorityQueue< Score, X >::~MinPriorityQueue | ( | ) | [inline] |
Definition at line 134 of file MinPriorityQueue.h.
| int ogdf::MinPriorityQueue< Score, X >::count | ( | ) | const [inline] |
Definition at line 146 of file MinPriorityQueue.h.
| void ogdf::MinPriorityQueue< Score, X >::decreasePriority | ( | const HeapElement< Score, X > * | elem, |
| Score | sc | ||
| ) | [inline] |
Definition at line 156 of file MinPriorityQueue.h.
| bool ogdf::MinPriorityQueue< Score, X >::empty | ( | ) | const [inline] |
Definition at line 145 of file MinPriorityQueue.h.
| int ogdf::MinPriorityQueue< Score, X >::getLeft | ( | int | pos | ) | const [inline, private] |
Definition at line 119 of file MinPriorityQueue.h.
| const X& ogdf::MinPriorityQueue< Score, X >::getMin | ( | ) | const [inline] |
Definition at line 150 of file MinPriorityQueue.h.
| int ogdf::MinPriorityQueue< Score, X >::getParent | ( | int | pos | ) | const [inline, private] |
Definition at line 118 of file MinPriorityQueue.h.
| int ogdf::MinPriorityQueue< Score, X >::getRight | ( | int | pos | ) | const [inline, private] |
Definition at line 120 of file MinPriorityQueue.h.
| const HeapElement<Score, X>* ogdf::MinPriorityQueue< Score, X >::insert | ( | const HeapElement< Score, X > & | elem | ) | [inline] |
Definition at line 172 of file MinPriorityQueue.h.
| void ogdf::MinPriorityQueue< Score, X >::minHeapify | ( | int | pos | ) | [inline, private] |
Definition at line 102 of file MinPriorityQueue.h.
| void ogdf::MinPriorityQueue< Score, X >::outHeap | ( | ) | [inline] |
Definition at line 206 of file MinPriorityQueue.h.
| HeapElement<Score, X> ogdf::MinPriorityQueue< Score, X >::pop | ( | ) | [inline] |
Definition at line 188 of file MinPriorityQueue.h.
| int ogdf::MinPriorityQueue< Score, X >::size | ( | ) | const [inline] |
Definition at line 147 of file MinPriorityQueue.h.
| void ogdf::MinPriorityQueue< Score, X >::swap | ( | int | pos1, |
| int | pos2 | ||
| ) | [inline, private] |
Definition at line 93 of file MinPriorityQueue.h.
HeapElement<Score, X>** ogdf::MinPriorityQueue< Score, X >::heapElements [private] |
Definition at line 88 of file MinPriorityQueue.h.
int ogdf::MinPriorityQueue< Score, X >::number [private] |
Definition at line 90 of file MinPriorityQueue.h.
int ogdf::MinPriorityQueue< Score, X >::s [private] |
Definition at line 91 of file MinPriorityQueue.h.