11 #include "rrOSSpecifics.h"
20 class LLVMExecutableModel;
36 bool isExpired()
const;
43 double getPriority()
const;
45 bool isPersistent()
const;
47 bool useValuesFromTriggerTime()
const;
49 bool isTriggered()
const;
75 friend bool operator<(
const Event& a,
const Event& b);
79 std::ostream& operator <<(std::ostream& os,
const Event& data);
88 typedef std::list<rrllvm::Event> _Sequence;
89 typedef std::less<_Sequence::value_type> _Compare;
90 typedef _Sequence::const_iterator const_iterator;
91 typedef _Sequence::iterator iterator;
92 typedef _Sequence::const_reference const_reference;
120 const_reference
top();
137 void saveState(std::ostream& out);
144 friend std::ostream& operator<< (std::ostream& stream,
const EventQueue& queue);
157 std::ostream& operator<< (std::ostream& stream,
const EventQueue& queue);
The EventQueue class is when events are queued to execute, but have not yet executed.
Definition: EventQueue.h:86
bool hasCurrentEvents()
are any events current (delay == 0 and triggered or persistant)
Definition: EventQueue.cpp:206
void push(const Event &e)
insert a new event into the queue.
Definition: EventQueue.cpp:276
uint size() const
number of events in the queue
Definition: EventQueue.cpp:271
const_reference top()
event with lowest time to assignment and highest priority.
Definition: EventQueue.cpp:281
bool applyEvents()
assign all of the top most events with the same priority and remove them from the queue.
Definition: EventQueue.cpp:213
double getNextPendingEventTime()
the time the next event is sceduled to be assigned.
Definition: EventQueue.cpp:287
bool eraseExpiredEvents()
remove expired events from the queue.
Definition: EventQueue.cpp:186
bool isRipe() const
is this event ready to be applied
Definition: EventQueue.cpp:148
double * data
data block where assignment rules evaluations are stored if useValuesFromTriggerTime is set.
Definition: EventQueue.h:72
bool isCurrent() const
delay is zero and either persistent or triggered.
Definition: EventQueue.cpp:98
LLVM executable model.
Definition: LLVMExecutableModel.h:59