fix stupid mistake

This commit is contained in:
Joel Beckmeyer 2017-04-10 21:28:10 -04:00
parent 9e2eb6760f
commit 010d572e0a
3 changed files with 21 additions and 4 deletions

View File

@ -3,7 +3,13 @@
using namespace std;
norGate::norGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,
wire* wire3) : e(eQueue), delay(d), in1(wire1), in2(wire2), out(wire3);
wire* wire3) {
e = eQueue;
delay = d;
in1 = wire1;
in2 = wire2;
out = wire3;
}
void norGate::evaluate(int evTime) {
//TODO

View File

@ -3,7 +3,13 @@
using namespace std;
orGate::orGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,
wire* wire3) : e(eQueue), delay(d), in1(wire1), in2(wire2), out(wire3);
wire* wire3) {
e = eQueue;
delay = d;
in1 = wire1;
in2 = wire2;
out = wire3;
}
void orGate::evaluate(int evTime) {
//TODO

View File

@ -3,8 +3,13 @@
using namespace std;
xnorGate::xnorGate(priority_queue<event> *eQueue, int d, wire* wire1,
wire* wire2, wire* wire3) : e(eQueue), delay(d), in1(wire1), in2(wire2),
out(wire3);
wire* wire2, wire* wire3) {
e = eQueue;
delay = d;
in1 = wire1;
in2 = wire2;
out = wire3;
}
void xnorGate::evaluate(int evTime) {
//TODO