add a setNum to the event class
This commit is contained in:
parent
bf8d3c78a5
commit
e3aad796f0
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user