#include <NvBlastFixedPriorityQueue.h>
Public Member Functions | |
| void | clear () |
| Empty the priority queue. | |
| bool | empty () const |
| Check to whether the priority queue is empty. | |
| FixedPriorityQueue (const Comparator &less=Comparator()) | |
| Element | pop () |
| Delete the highest priority element. Only valid when non-empty. | |
| void | push (const Element &value) |
| Insert a new element into the priority queue. Only valid when size() is less than Capacity. | |
| uint32_t | size () const |
| Return number of elements in the priority queue. | |
| Element | top () |
| Get the element with the highest priority. | |
| const Element | top () const |
| Get the element with the highest priority. | |
| bool | valid () const |
| Make sure the priority queue sort all elements correctly. | |
| ~FixedPriorityQueue () | |
Static Public Member Functions | |
| static size_t | requiredMemorySize (uint32_t capacity) |
| Nv::Blast::FixedPriorityQueue< Element, Comparator >::FixedPriorityQueue | ( | const Comparator & | less = Comparator() |
) | [inline] |
| Nv::Blast::FixedPriorityQueue< Element, Comparator >::~FixedPriorityQueue | ( | ) | [inline] |
| void Nv::Blast::FixedPriorityQueue< Element, Comparator >::clear | ( | ) | [inline] |
Empty the priority queue.
| bool Nv::Blast::FixedPriorityQueue< Element, Comparator >::empty | ( | ) | const [inline] |
Check to whether the priority queue is empty.
| Element Nv::Blast::FixedPriorityQueue< Element, Comparator >::pop | ( | ) | [inline] |
Delete the highest priority element. Only valid when non-empty.
| void Nv::Blast::FixedPriorityQueue< Element, Comparator >::push | ( | const Element & | value | ) | [inline] |
Insert a new element into the priority queue. Only valid when size() is less than Capacity.
| static size_t Nv::Blast::FixedPriorityQueue< Element, Comparator >::requiredMemorySize | ( | uint32_t | capacity | ) | [inline, static] |
| uint32_t Nv::Blast::FixedPriorityQueue< Element, Comparator >::size | ( | ) | const [inline] |
Return number of elements in the priority queue.
| Element Nv::Blast::FixedPriorityQueue< Element, Comparator >::top | ( | ) | [inline] |
Get the element with the highest priority.
| const Element Nv::Blast::FixedPriorityQueue< Element, Comparator >::top | ( | ) | const [inline] |
Get the element with the highest priority.
| bool Nv::Blast::FixedPriorityQueue< Element, Comparator >::valid | ( | ) | const [inline] |
Make sure the priority queue sort all elements correctly.