Add the includes and fixed the xnor class definition

This commit is contained in:
daniel 2017-04-10 21:16:13 -04:00
parent 9e2eb6760f
commit da393481e3
5 changed files with 16 additions and 1 deletions

View File

@ -1,5 +1,8 @@
#ifndef AND
#define AND
#include "gate.h"
#include "event.h"
#include "wire.h"
class andGate : public gate {
public:

View File

@ -1,5 +1,8 @@
#ifndef NOR
#define NOR
#include "gate.h"
#include "event.h"
#include "wire.h"
class norGate : public gate {
norGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,

View File

@ -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<event> *eQueue, int d, wire* wire1, wire* wire2,
wire* wire3);
void evaluate(int evTime);

View File

@ -1,5 +1,8 @@
#ifndef XNOR
#define XNOR
#include "gate.h"
#include "event.h"
#include "wire.h"
class xnorGate : public gate {
xnorGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,

View File

@ -1,5 +1,8 @@
#ifndef XOR
#define XOR
#include "gate.h"
#include "event.h"
#include "wire.h"
class xorGate : public gate {
xorGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,