Fix the event constructor to be legal
This commit is contained in:
parent
da393481e3
commit
2be1e257c3
@ -1,7 +1,11 @@
|
||||
#include "event.h"
|
||||
|
||||
event::event(int num, int value, int setTime, int wire, wire *output) : evNum(num), evValue(value),
|
||||
evTime(setTime), out(output) {}
|
||||
event::event(int num, int value, int setTime, wire * output){
|
||||
evNum = num;
|
||||
evValue = value;
|
||||
evTime = setTime;
|
||||
out = output;
|
||||
}
|
||||
|
||||
bool event::operator<(const event &e1) {
|
||||
if(evTime == e1.evTime) {
|
||||
|
@ -1,9 +1,9 @@
|
||||
#ifndef EVENT
|
||||
#define EVENT
|
||||
|
||||
using namespace std;
|
||||
#include "wire.h"
|
||||
|
||||
|
||||
class event {
|
||||
public:
|
||||
event(int num, int value, int setTime, wire * output);
|
||||
|
Loading…
Reference in New Issue
Block a user