OpenMesh
|
An efficient, highly customizable heap. More...
#include <OSG/Utils/HeapT.hh>
Protected Attributes | |
HeapInterface | interface_ |
Instance of HeapInterface. | |
An efficient, highly customizable heap.
The main difference (and performance boost) of this heap compared to e.g. the heap of the STL is that here the positions of the heap's elements are accessible from the elements themself. Therefore if one changes the priority of an element one does not have to remove and re-insert this element, but can just call the update(HeapEntry) method.
This heap class is parameterized by two template arguments:
HeapEntry
, that will be stored in the heap As an example how to use the class see declaration of class Decimater::DecimaterT.