![]() |
SG++-Doxygen-Documentation
|
Implements a max heap using a binary heap. More...
#include <BinaryHeap.hpp>
Classes | |
| struct | Handle |
| struct | HeapElement |
Public Types | |
| typedef Handle | handle_type |
| typedef std::shared_ptr< HeapElement > | HeapElementPointer |
Public Member Functions | |
| BinaryHeap () | |
| BinaryHeap (size_t size) | |
| BinaryHeap (std::vector< T > v) | |
| void | clear () |
| bool | empty () |
| HeapElementPointer | get (size_t index) |
| void | pop () |
| void | print () |
| Handle | push (T elem) |
| void | set (size_t index, T value) |
| T const & | top () |
| void | update (Handle h_in, T const &value) |
| void | update (Handle h_in) |
| ~BinaryHeap () | |
Implements a max heap using a binary heap.
We need this as a priority queue implementation with a updatePriority() function because we do not want to have boost as a dependency.
| typedef Handle sgpp::combigrid::BinaryHeap< T, Comparator >::handle_type |
| typedef std::shared_ptr<HeapElement> sgpp::combigrid::BinaryHeap< T, Comparator >::HeapElementPointer |
|
inline |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
Referenced by sgpp::combigrid::LevelManager::initAdaption().
|
inline |
Referenced by sgpp::combigrid::LevelManager::addLevelsAdaptive(), sgpp::combigrid::LevelManager::addLevelsAdaptiveParallel(), sgpp::combigrid::LevelManager::initAdaption(), sgpp::combigrid::BinaryHeap< QueueEntry, QueueComparator >::pop(), and sgpp::combigrid::BinaryHeap< QueueEntry, QueueComparator >::top().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |