Priority Queue which is based on a List. The order of the elements is defined by a compare function which is provided in the constructor. If the function returns > 0 if v1 > v2, the data will be provided in increasing order.
More...
#include <PriorityQueue.h>
template<class T>
class audio_tools::PriorityQueue< T >
Priority Queue which is based on a List. The order of the elements is defined by a compare function which is provided in the constructor. If the function returns > 0 if v1 > v2, the data will be provided in increasing order.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
- Template Parameters
-
◆ PriorityQueue()
◆ clear()
◆ dequeue()
◆ empty()
◆ enqueue()
template<class T >
| bool enqueue |
( |
T && |
data | ) |
|
|
inline |
◆ peek()
◆ setAllocator()
◆ size()
◆ compare_cb
template<class T >
| int(* compare_cb) (T &v1, T &v2) |
|
protected |
The documentation for this class was generated from the following file: