roadrunner  2.6.0
Fast simulator for SBML models
Public Types | Public Member Functions | Friends | List of all members
rrllvm::EventQueue Class Reference

The EventQueue class is when events are queued to execute, but have not yet executed. More...

#include <EventQueue.h>

Public Types

typedef std::list< rrllvm::Event_Sequence
 
typedef std::less< _Sequence::value_type > _Compare
 
typedef _Sequence::const_iterator const_iterator
 
typedef _Sequence::iterator iterator
 
typedef _Sequence::const_reference const_reference
 

Public Member Functions

bool eraseExpiredEvents ()
 remove expired events from the queue.
 
bool hasCurrentEvents ()
 are any events current (delay == 0 and triggered or persistant)
 
bool applyEvents ()
 assign all of the top most events with the same priority and remove them from the queue. More...
 
uint size () const
 number of events in the queue
 
const_reference top ()
 event with lowest time to assignment and highest priority.
 
void push (const Event &e)
 insert a new event into the queue. More...
 
double getNextPendingEventTime ()
 the time the next event is sceduled to be assigned.
 
void saveState (std::ostream &out)
 
void loadState (std::istream &in, LLVMExecutableModel &model)
 

Friends

std::ostream & operator<< (std::ostream &stream, const EventQueue &queue)
 

Detailed Description

The EventQueue class is when events are queued to execute, but have not yet executed.

Some events may be 'de-listed' from the Event Queue if thier trigger changes back to 'false', if they are set persistent=False.

Member Function Documentation

◆ applyEvents()

bool rrllvm::EventQueue::applyEvents ( )

assign all of the top most events with the same priority and remove them from the queue.

Returns
true if any events were assigned, false otherwise.

◆ push()

void rrllvm::EventQueue::push ( const Event e)

insert a new event into the queue.

The queue is re-sorted.


The documentation for this class was generated from the following files: