diff options
| author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-04-29 01:27:29 +0200 |
|---|---|---|
| committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-04-29 01:27:29 +0200 |
| commit | 4906cda4b79aca262d8227e2c9461144439106d4 (patch) | |
| tree | fda7bf3eb31495b64b94fa3b498194b1df900453 | |
| parent | 17448991a62f684498f464702037a00d6349140e (diff) | |
| download | digitale-debutanten-4906cda4b79aca262d8227e2c9461144439106d4.tar.gz | |
make Queue element class public
necessary for iterating a queue without flushing it
| -rw-r--r-- | lib.ck | 1 | ||||
| -rw-r--r-- | lib/Element.ck | 7 | ||||
| -rw-r--r-- | lib/Queue.ck | 4 |
3 files changed, 8 insertions, 4 deletions
@@ -2,6 +2,7 @@ Machine.add("lib/SampOsc.ck"); Machine.add("lib/Clipper.ck"); Machine.add("lib/MIDI.ck"); +Machine.add("lib/Element.ck"); Machine.add("lib/Queue.ck"); Machine.add("lib/Bus.ck"); diff --git a/lib/Element.ck b/lib/Element.ck new file mode 100644 index 0000000..7a81429 --- /dev/null +++ b/lib/Element.ck @@ -0,0 +1,7 @@ +/* + * List element + */ +public class Element { + Element @next; + Object @payload; +} diff --git a/lib/Queue.ck b/lib/Queue.ck index f05ae5e..586330c 100644 --- a/lib/Queue.ck +++ b/lib/Queue.ck @@ -2,10 +2,6 @@ * Queue data structure */ public class Queue { - class Element { - Element @next; - Object @payload; - } Element head @=> Element @tail; fun void |
