Fix the event constructor to be legal

This commit is contained in:
daniel 2017-04-10 21:21:41 -04:00
parent da393481e3
commit 2be1e257c3
2 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,11 @@
#include "event.h" #include "event.h"
event::event(int num, int value, int setTime, int wire, wire *output) : evNum(num), evValue(value), event::event(int num, int value, int setTime, wire * output){
evTime(setTime), out(output) {} evNum = num;
evValue = value;
evTime = setTime;
out = output;
}
bool event::operator<(const event &e1) { bool event::operator<(const event &e1) {
if(evTime == e1.evTime) { if(evTime == e1.evTime) {

View File

@ -1,9 +1,9 @@
#ifndef EVENT #ifndef EVENT
#define EVENT #define EVENT
using namespace std; using namespace std;
#include "wire.h" #include "wire.h"
class event { class event {
public: public:
event(int num, int value, int setTime, wire * output); event(int num, int value, int setTime, wire * output);