1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-13 22:32:03 +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 { class Tape {
public: public:
struct Pulse { struct Pulse {
enum { enum Type {
High, Low, Zero High, Low, Zero
} type; } type;
Time length; Time length;
Pulse(Type type, Time length) : type(type), length(length) {}
Pulse() {}
}; };
virtual Pulse get_next_pulse() = 0; virtual Pulse get_next_pulse() = 0;