This class represents a queue
ALKMaps. | This class represents a queue |
Properties | |
maxSize | {Number} the maximum size of the queue. |
array of records in the queue. | {Array(<Object>)} |
currentPosition | {Number} the location index in the queue. |
Constructor | |
ALKMaps. | Create a queue. |
Functions | |
clone | Clone itself. |
current | Get the record at the current location. |
first | Get the first record in the queue. |
last | Get the last record in the queue. |
size | Get the number of records in the queue. |
add | Add record to desired location. |
remove | Remove the last record. |
shiftRange | The number of records will be removed from the beginning of the array. |
clear | Clear queue data and reset current position. |
destroy | Destroy this queue |
Clone itself.
clone:function()
Get the record at the current location.
current: function ()
Get the first record in the queue.
first: function ()
Get the last record in the queue.
last: function ()
Get the number of records in the queue.
size: function ()
Add record to desired location.
add: function ( record )
Remove the last record.
remove: function ()
The number of records will be removed from the beginning of the array.
shiftRange: function ( count )
Clear queue data and reset current position.
clear: function ()
Destroy this queue
destroy: function ()