radec/src/wire.h
2017-04-10 16:39:03 -04:00

28 lines
400 B
C++

#ifndef WIRE
#define WIRE
#include <vector>
#include <queue>
#include <string>
class gate;
class wire {
public:
wire(int number, bool io, string name = "");
int getState() const;
void setState(bool newValue, int setTime);
int getNumber() const;
void addGate(gate* newGate);
private:
int wireNumber, value;
string name;
bool isInput;
vector<gate*> gates;
};
#endif // !WIRE