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:
parent
1e7b5330f5
commit
3e925e80a3
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user