add TODO notes and several other needed classes

This commit is contained in:
Joel Beckmeyer 2017-04-06 09:38:44 -04:00
parent 7de36407f2
commit 372c6b6d87
5 changed files with 33 additions and 4 deletions

0
src/event.cpp Normal file
View File

13
src/event.h Normal file
View File

@ -0,0 +1,13 @@
#ifndef EVENT
#define EVENT
class event {
/* TODO:
* event number
* value
* time
* wire number
*/
};
#endif // !EVENT

View File

@ -0,0 +1 @@

View File

@ -2,7 +2,15 @@
#define GATE
class gate {
public:
gate(wire* wire1 = nullptr, wire* wire2 = nullptr, wire* wire3 = nullptr);
virtual int getOutput() = 0;
protected:
wire* in1, in2, out;
/* TODO
* delay
* type
*/
};
#endif // !GATE
#endif // !GATE

View File

@ -2,7 +2,14 @@
#define WIRE
class wire {
/* TODO:
* data members:
* state
* gate connections
* wire number
* name
* is input/output
*/
};
#endif // !WIRE
#endif // !WIRE