Class Index | File Index

Classes


Class LRU

A doubly-linked-list of the least recently used elements.
Defined in: LRU.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
LRU()
Method Summary
Method Attributes Method Name and Description
 
contains(node)
 
 
removes the least recently used item from the list and returns it.
 
size()
number of elements in the list
 
 
touch(node)
makes node the most recently used item.
Class Detail
LRU()
Method Detail
contains(node)
Parameters:
node

getLRUItem()

removeLRUItem()
removes the least recently used item from the list and returns it. if the list was empty, null will be returned.

{Number} size()
number of elements in the list
Returns:
{Number}

toString()

touch(node)
makes node the most recently used item. if the list does not contain node, it will be added.
Parameters:
node

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Jun 09 2013 12:38:11 GMT+0200 (CEST)