![]() |
Prusa Slicer 2.6.0
|
#include <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 () | |
| MutablePriorityQueue (MutablePriorityQueue &&)=default | |
| MutablePriorityQueue & | operator= (MutablePriorityQueue &&)=default |
| MutablePriorityQueue (const MutablePriorityQueue &)=delete | |
| MutablePriorityQueue & | operator= (const MutablePriorityQueue &)=delete |
| 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 |
Static Public Member Functions | |
| static constexpr size_t | invalid_id () |
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 Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::const_iterator = typename std::vector<T>::const_iterator |
| using Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::iterator = typename std::vector<T>::iterator |
|
inline |
|
inline |
References Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::clear().
Here is the call graph for this function:
|
default |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::~MutablePriorityQueue().
Here is the caller graph for this function:
|
inline |
|
inline |
|
inlinestaticconstexpr |
References Slic3r::InvalidQueueID.
|
delete |
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
Referenced by Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::update().
Here is the caller graph for this function:
|
inline |
|
inline |
Referenced by Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::update().
Here is the caller graph for this function:
|
inline |
References Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::m_heap.
|
inline |
|
inline |
|
inline |
References Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::m_heap, Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::push(), and Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::remove().
Here is the call graph for this function:
|
inlineprotected |
|
inlineprotected |
|
private |
Referenced by Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::begin(), Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::cbegin(), Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::cend(), Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::empty(), Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::end(), Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::operator[](), Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::operator[](), Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::reserve(), Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::size(), Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::top(), and Slic3r::MutablePriorityQueue< T, IndexSetter, LessPredicate, ResetIndexWhenRemoved >::update().
|
private |
|
private |