1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 18:30:21 +00:00

Added a field-filling constructor for pulses.

This commit is contained in:
Thomas Harte 2016-09-08 07:41:44 -04:00
parent 1e7b5330f5
commit 3e925e80a3

View File

@ -29,10 +29,13 @@ namespace Tape {
class Tape {
public:
struct Pulse {
enum {
enum Type {
High, Low, Zero
} type;
Time length;
Pulse(Type type, Time length) : type(type), length(length) {}
Pulse() {}
};
virtual Pulse get_next_pulse() = 0;