Add the includes and fixed the xnor class definition
This commit is contained in:
parent
9e2eb6760f
commit
da393481e3
@ -1,5 +1,8 @@
|
|||||||
#ifndef AND
|
#ifndef AND
|
||||||
#define AND
|
#define AND
|
||||||
|
#include "gate.h"
|
||||||
|
#include "event.h"
|
||||||
|
#include "wire.h"
|
||||||
|
|
||||||
class andGate : public gate {
|
class andGate : public gate {
|
||||||
public:
|
public:
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#ifndef NOR
|
#ifndef NOR
|
||||||
#define NOR
|
#define NOR
|
||||||
|
#include "gate.h"
|
||||||
|
#include "event.h"
|
||||||
|
#include "wire.h"
|
||||||
|
|
||||||
class norGate : public gate {
|
class norGate : public gate {
|
||||||
norGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,
|
norGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
#ifndef OR
|
#ifndef OR
|
||||||
#define 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,
|
orGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,
|
||||||
wire* wire3);
|
wire* wire3);
|
||||||
void evaluate(int evTime);
|
void evaluate(int evTime);
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#ifndef XNOR
|
#ifndef XNOR
|
||||||
#define XNOR
|
#define XNOR
|
||||||
|
#include "gate.h"
|
||||||
|
#include "event.h"
|
||||||
|
#include "wire.h"
|
||||||
|
|
||||||
class xnorGate : public gate {
|
class xnorGate : public gate {
|
||||||
xnorGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,
|
xnorGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#ifndef XOR
|
#ifndef XOR
|
||||||
#define XOR
|
#define XOR
|
||||||
|
#include "gate.h"
|
||||||
|
#include "event.h"
|
||||||
|
#include "wire.h"
|
||||||
|
|
||||||
class xorGate : public gate {
|
class xorGate : public gate {
|
||||||
xorGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,
|
xorGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,
|
||||||
|
Loading…
Reference in New Issue
Block a user