Add the includes and fixed the xnor class definition
This commit is contained in:
parent
9e2eb6760f
commit
da393481e3
@ -1,5 +1,8 @@
|
||||
#ifndef AND
|
||||
#define AND
|
||||
#include "gate.h"
|
||||
#include "event.h"
|
||||
#include "wire.h"
|
||||
|
||||
class andGate : public gate {
|
||||
public:
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user