This commit is contained in:
Joel Beckmeyer 2017-04-24 22:37:04 -04:00
commit 6c40ee863f
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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;