diff --git a/src/Event.cpp b/src/Event.cpp index 6da4bce..993c911 100644 --- a/src/Event.cpp +++ b/src/Event.cpp @@ -22,6 +22,11 @@ Wire * Event::getOutput() const return out; } +void Event::setNum(int num) +{ + evNum = num; +} + bool operator<(const Event &e1, const Event &e2) { if(e1.evTime == e2.evTime) { return e1.evNum > e2.evNum; diff --git a/src/Event.h b/src/Event.h index 348cb09..6681860 100644 --- a/src/Event.h +++ b/src/Event.h @@ -12,6 +12,7 @@ class Event { int getValue() const; int getTime() const; Wire* getOutput() const; + void setNum(int num); private: int evNum, evValue, evTime; Wire *out;