Fix the event constructor to be legal
This commit is contained in:
parent
da393481e3
commit
2be1e257c3
@ -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) {
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user