Stg::World::Event Class Reference

#include <stage.hh>

Public Member Functions

 Event (usec_t time, Model *mod, model_callback_t cb, void *arg)
 
bool operator< (const Event &other) const
 

Public Attributes

void * arg
 
model_callback_t cb
 
Modelmod
 model to pass into callback More...
 
usec_t time
 time that event occurs More...
 

Constructor & Destructor Documentation

◆ Event()

Stg::World::Event::Event ( usec_t  time,
Model mod,
model_callback_t  cb,
void *  arg 
)
inline

Member Function Documentation

◆ operator<()

bool World::Event::operator< ( const Event other) const

order by time. Break ties by value of Model*, then cb*.

Parameters
eventto compare with this one.

Member Data Documentation

◆ arg

void* Stg::World::Event::arg

◆ cb

model_callback_t Stg::World::Event::cb

◆ mod

Model* Stg::World::Event::mod

model to pass into callback

◆ time

usec_t Stg::World::Event::time

time that event occurs


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