Queue
queue
new virtuosity.structures.Queue();
Parameter |
Type |
Description |
Classes
Methods
Classes
Queue node
Methods
push
add a node to the queue
virtuosity.structures.Queue.push(data);
Parameter |
Type |
Description |
data |
ANY |
data for the new node |
pop
remove the top node
virtuosity.structures.Queue.pop();
peek
return the top node
virtuosity.structures.Queue.peek();
size
get the size of the Queue
virtuosity.structures.Queue.size();
print
output an array representation of the Queue
virtuosity.structures.Queue.print();