This page is available in English only

Stack and Queue


(7 Votes)
Colugo _
1.0 (Updated 4 years ago)
December 11, 2016
Reaktor 6


LIFO stack and FIFO queue macros + a library for developing additional stack and queue operations. Both containers include the ability to save/load data from snapshots.

See the info texts for documentation.

The containers are both implemented as circular buffers. This allows us to, for example, erase elements from the bottom of a stack by just moving the marker upwards, without the need for iteration.

Included operations:
Erase Bottom (Stack)
Erase Top (Stack)
Erase Back (Queue)
Erase Front (Queue)

*note* If you are creating your own algorithms and have the snapshot ports hooked up, the internal markers can sometimes get messed up during development. Reset buttons are provided inside the 'Stack Snap Store' and 'Queue Snap Store' primary macros which reset the markers back to zero.


Richard Cocksedge
2 years ago
Just want to say thanks, I am studying this intently. Love the stuff you do!
Colugo _
4 years ago
Thanks for the feedback Mark. I tried to make sure the main two macros were fully documented but some of the other tooltips are still lacking. I'll upload a new version once I fill in the gaps. The third row lists the "implementation" macros which are used to implement the main operations. e.g. 'Push Top' pushes a value onto the stack but it doesn't do any error checking. The 'Push' macro on the 2nd row is just 'Push Top' with added error checking.
Mark Wadewitz
4 years ago
This is absolutely awesome and looks very, very professional! Five stars plus five extra ones from me. Some tool tips are missed (i.e. erase macros) and some other´s could be more precise (those on the lower rows of stack and queue, i.e. writer, reader, push top/back, pop top/front, etc.). Not 100% clear to me what those macros do or what the difference to the related ones in the second rows is. But what heck, GREAT WORK!
4 years ago