add a setNum to the event class

This commit is contained in:
daniel 2017-04-24 22:35:44 -04:00
parent bf8d3c78a5
commit e3aad796f0
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;