#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/MutablePriorityQueue.hpp>
Public Types | |
| using | iterator = typename std::vector<T>::iterator |
| using | const_iterator = typename std::vector<T>::const_iterator |
Public Member Functions | |
| MutablePriorityQueue (IndexSetter &&index_setter, LessPredicate &&less_predicate) | |
| ~MutablePriorityQueue () | |
| void | clear () |
| void | reserve (size_t cnt) |
| void | push (const T &item) |
| void | push (T &&item) |
| void | pop () |
| T & | top () |
| void | remove (size_t idx) |
| void | update (size_t idx) |
| size_t | size () const |
| bool | empty () const |
| T & | operator[] (std::size_t idx) noexcept |
| const T & | operator[] (std::size_t idx) const noexcept |
| iterator | begin () |
| iterator | end () |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
Protected Member Functions | |
| void | update_heap_up (size_t top, size_t bottom) |
| void | update_heap_down (size_t top, size_t bottom) |
Private Attributes | |
| std::vector< T > | m_heap |
| IndexSetter | m_index_setter |
| LessPredicate | m_less_predicate |
| using MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::const_iterator = typename std::vector<T>::const_iterator |
| using MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::iterator = typename std::vector<T>::iterator |
|
inline |
References m_index_setter, and m_less_predicate.
|
inline |
|
inline |
References m_heap.
|
inline |
|
inline |
|
inline |
References m_heap, and m_index_setter.
Referenced by ~MutablePriorityQueue().
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
References m_heap, m_index_setter, and update_heap_down().
|
inline |
References m_heap, m_index_setter, and update_heap_up().
Referenced by update().
|
inline |
References m_heap, m_index_setter, and update_heap_up().
|
inline |
References m_heap, m_index_setter, update_heap_down(), and update_heap_up().
Referenced by update().
|
inline |
|
inline |
|
inline |
References m_heap.
Referenced by update_heap_down(), and update_heap_up().
|
inline |
|
inlineprotected |
References m_heap, m_index_setter, m_less_predicate, and top().
Referenced by pop(), and remove().
|
inlineprotected |
References m_heap, m_index_setter, m_less_predicate, and top().
Referenced by push(), push(), and remove().
|
private |
Referenced by begin(), cbegin(), cend(), clear(), empty(), end(), operator[](), operator[](), pop(), push(), push(), remove(), reserve(), size(), top(), update(), update_heap_down(), and update_heap_up().
|
private |
Referenced by MutablePriorityQueue(), clear(), pop(), push(), push(), remove(), update_heap_down(), and update_heap_up().
|
private |
Referenced by MutablePriorityQueue(), update_heap_down(), and update_heap_up().