Definition at line 25 of file pqueue.cpp.
◆ size_type
◆ pqueue()
ssim::pqueue::pqueue |
( |
bool |
smaller = true | ) |
|
|
inlineexplicit |
◆ ~pqueue()
virtual ssim::pqueue::~pqueue |
( |
| ) |
|
|
virtualdefault |
◆ cancel()
void ssim::pqueue::cancel |
( |
Rcpp::Function |
predicate | ) |
|
|
inline |
Cancel any events that satisfy a predicate (which is an R function).
Definition at line 106 of file pqueue.cpp.
◆ clear()
void ssim::pqueue::clear |
( |
| ) |
|
|
inline |
Clear the priority queue
Definition at line 100 of file pqueue.cpp.
◆ empty()
bool ssim::pqueue::empty |
( |
| ) |
|
|
inline |
Check whether the priority queue is either empty or has only inactive events
Definition at line 88 of file pqueue.cpp.
◆ for_each()
template<class F >
void ssim::pqueue::for_each |
( |
F |
f, |
|
|
bool |
remake = false |
|
) |
| |
|
inline |
General method to apply a function f() to each element Use remake=true if f() may change the order in the priority queue.
Definition at line 119 of file pqueue.cpp.
◆ pop()
List ssim::pqueue::pop |
( |
| ) |
|
|
inline |
Pop an active event from the priority queue.
Definition at line 81 of file pqueue.cpp.
◆ popElement()
Pop an elements from the priority queue (that is, get the next element) Ignores whether an element is active or not.
Definition at line 58 of file pqueue.cpp.
◆ push()
void ssim::pqueue::push |
( |
double |
priority, |
|
|
SEXP |
event |
|
) |
| |
|
inline |
◆ pushElement()
Push an elements to the priority queue
Definition at line 41 of file pqueue.cpp.
◆ _anyCancelled
bool ssim::pqueue::_anyCancelled |
|
private |
◆ _compare
◆ _elements
◆ _entryOrder
long ssim::pqueue::_entryOrder |
|
private |
The documentation for this class was generated from the following file: