![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Definition at line 43 of file adjustable_k_ary_heap.h.
#include <adjustable_k_ary_heap.h>
Public Types | |
| using | Aggregate = std::pair<Priority, Index> |
| using | HeapIndex = Index |
Public Member Functions | |
| AdjustableKAryHeap () | |
| AdjustableKAryHeap (const std::vector< Aggregate > &elements, HeapIndex universe_size) | |
| AdjustableKAryHeap (const std::vector< Index > &indices, const std::vector< Priority > &priorities, HeapIndex universe_size) | |
| void | Clear () |
| void | Load (const std::vector< Aggregate > &elements, HeapIndex universe_size) |
| void | Load (const std::vector< Index > &indices, const std::vector< Priority > &priorities, HeapIndex universe_size) |
| void | Pop () |
| Index | TopIndex () const |
| Priority | TopPriority () const |
| HeapIndex | heap_size () const |
| bool | IsEmpty () const |
| void | Insert (Aggregate element) |
| bool | Remove (Index index) |
| void | Update (Aggregate element) |
| bool | Contains (Index index) const |
| bool | CheckHeapProperty () const |
| using AdjustableKAryHeap< Priority, Index, Arity, IsMaxHeap >::Aggregate = std::pair<Priority, Index> |
Definition at line 45 of file adjustable_k_ary_heap.h.
| using AdjustableKAryHeap< Priority, Index, Arity, IsMaxHeap >::HeapIndex = Index |
Definition at line 46 of file adjustable_k_ary_heap.h.
|
inline |
Definition at line 52 of file adjustable_k_ary_heap.h.
|
inlineexplicit |
Definition at line 56 of file adjustable_k_ary_heap.h.
|
inlineexplicit |
Definition at line 61 of file adjustable_k_ary_heap.h.
|
inline |
Definition at line 174 of file adjustable_k_ary_heap.h.
|
inline |
Definition at line 67 of file adjustable_k_ary_heap.h.
|
inline |
Definition at line 169 of file adjustable_k_ary_heap.h.
|
inline |
Definition at line 122 of file adjustable_k_ary_heap.h.
|
inline |
Definition at line 128 of file adjustable_k_ary_heap.h.
|
inline |
Definition at line 125 of file adjustable_k_ary_heap.h.
|
inline |
Definition at line 73 of file adjustable_k_ary_heap.h.
|
inline |
Definition at line 84 of file adjustable_k_ary_heap.h.
|
inline |
Definition at line 99 of file adjustable_k_ary_heap.h.
|
inline |
Definition at line 147 of file adjustable_k_ary_heap.h.
|
inline |
Definition at line 107 of file adjustable_k_ary_heap.h.
|
inline |
Definition at line 116 of file adjustable_k_ary_heap.h.
|
inline |
Definition at line 155 of file adjustable_k_ary_heap.h.