yosys-master
|
#include <Heap.h>
Public Member Functions | |
Heap (const Comp &c, MkIndex _index=MkIndex()) | |
int | size () const |
bool | empty () const |
bool | inHeap (K k) const |
int | operator[] (int index) const |
void | decrease (K k) |
void | increase (K k) |
void | update (K k) |
void | insert (K k) |
void | remove (K k) |
K | removeMin () |
void | build (const vec< K > &ns) |
void | clear (bool dispose=false) |
Private Member Functions | |
void | percolateUp (int i) |
void | percolateDown (int i) |
Static Private Member Functions | |
static int | left (int i) |
static int | right (int i) |
static int | parent (int i) |
Private Attributes | |
vec< K > | heap |
IntMap< K, int, MkIndex > | indices |
Comp | lt |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticprivate |
|
inline |
|
inlinestaticprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inlinestaticprivate |
|
inline |
|
inline |
|
private |
|
private |
|
private |