UnorderedStack
Create and modify an UnorderedStack
object with Engine.createUnorderedStack()
, that can hold up to 128 unordered float numbers.
Class methods
asBuffer
Returns a buffer that refers the data.
UnorderedStack.asBuffer(bool getAllElements)
clear
Clears the stack.
UnorderedStack.clear()
contains
checks if the number is in the stack.
UnorderedStack.contains(var value)
copyTo
Copies the stack into the given container.
UnorderedStack.copyTo(var target)
insert
Inserts a number at the end of the stack.
UnorderedStack.insert(var value)
isEmpty
Checks if any number is present in the stack.
UnorderedStack.isEmpty()
remove
removes the given number and fills the gap.
UnorderedStack.remove(var value)
removeElement
Removes the element at the given number and fills the gap.
UnorderedStack.removeElement(int index)
removeIfEqual
Removes the matching event from the stack and puts it in the holder.
UnorderedStack.removeIfEqual(var holder)
setIsEventStack
Sets this stack to hold HISE events rather than floating point numbers.
UnorderedStack.setIsEventStack(bool shouldBeEventStack, var eventCompareFunction)
size
Returns the number of values in the stack.
UnorderedStack.size()
storeEvent
Stores the event into the message holder.
UnorderedStack.storeEvent(int index, var holder)