Add a setOut to the gate parent class
This commit is contained in:
parent
2cacfb9dc0
commit
031fea3e0a
@ -8,7 +8,7 @@ class Wire;
|
||||
class Gate {
|
||||
public:
|
||||
virtual Event evaluate(int) = 0;
|
||||
|
||||
void setOut(int time, int value);
|
||||
protected:
|
||||
Wire *in1, *in2, *out;
|
||||
int delay;
|
||||
|
@ -1,5 +1,10 @@
|
||||
#include "gate.h"
|
||||
|
||||
gate::gate()
|
||||
Gate::Gate()
|
||||
{
|
||||
}
|
||||
|
||||
void Gate::setOut(int newValue, int setTime)
|
||||
{
|
||||
out->setValue(newValue, setTime);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user