From da393481e32377ac6a6a8bd88c1c6163447fc0c0 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 10 Apr 2017 21:16:13 -0400 Subject: [PATCH] Add the includes and fixed the xnor class definition --- src/andGate.h | 3 +++ src/norGate.h | 3 +++ src/orGate.h | 5 ++++- src/xnorGate.h | 3 +++ src/xorGate.h | 3 +++ 5 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/andGate.h b/src/andGate.h index 009bc11..9b1234f 100644 --- a/src/andGate.h +++ b/src/andGate.h @@ -1,5 +1,8 @@ #ifndef AND #define AND +#include "gate.h" +#include "event.h" +#include "wire.h" class andGate : public gate { public: diff --git a/src/norGate.h b/src/norGate.h index 8b17022..a904cab 100644 --- a/src/norGate.h +++ b/src/norGate.h @@ -1,5 +1,8 @@ #ifndef NOR #define NOR +#include "gate.h" +#include "event.h" +#include "wire.h" class norGate : public gate { norGate(priority_queue *eQueue, int d, wire* wire1, wire* wire2, diff --git a/src/orGate.h b/src/orGate.h index e31744a..89a881f 100644 --- a/src/orGate.h +++ b/src/orGate.h @@ -1,7 +1,10 @@ #ifndef OR #define OR +#include "gate.h" +#include "event.h" +#include "wire.h" -class xnorGate : public gate { +class orGate : public gate { orGate(priority_queue *eQueue, int d, wire* wire1, wire* wire2, wire* wire3); void evaluate(int evTime); diff --git a/src/xnorGate.h b/src/xnorGate.h index ec0e344..47d67da 100644 --- a/src/xnorGate.h +++ b/src/xnorGate.h @@ -1,5 +1,8 @@ #ifndef XNOR #define XNOR +#include "gate.h" +#include "event.h" +#include "wire.h" class xnorGate : public gate { xnorGate(priority_queue *eQueue, int d, wire* wire1, wire* wire2, diff --git a/src/xorGate.h b/src/xorGate.h index 2bb0c6f..2ec40c9 100644 --- a/src/xorGate.h +++ b/src/xorGate.h @@ -1,5 +1,8 @@ #ifndef XOR #define XOR +#include "gate.h" +#include "event.h" +#include "wire.h" class xorGate : public gate { xorGate(priority_queue *eQueue, int d, wire* wire1, wire* wire2,