scc
2022.4.0
SystemC components library
|
priority event queue More...
#include <peq.h>
Public Types | |
using | pair_type = std::pair< const sc_core::sc_time, TYPE > |
using | map_type = std::map< const sc_core::sc_time, std::deque< TYPE > * > |
Public Member Functions | |
peq () | |
default constructor creating a unnamed peq | |
peq (const char *name) | |
named peq constructor More... | |
~peq () | |
destructor | |
void | notify (const TYPE &entry, const sc_core::sc_time &t) |
non-blocking push. More... | |
void | notify (TYPE &&entry) |
void | notify (TYPE const &entry) |
non-blocking push More... | |
boost::optional< TYPE > | get_next () |
non-blocking get More... | |
TYPE | get () |
blocking get More... | |
sc_core::sc_event & | event () |
get the available event More... | |
void | cancel_all () |
cancel all events from the event queue | |
bool | has_next () |
check if value is available at current time More... | |
void | clear () |
priority event queue
A simple priority event queue with a copy of the original value
TYPE | the type name of the object to keep in th equeue |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |