| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/container/lrulist.h>

Public Member Functions | |
| UINT | size () const |
| Returns the number of objects in the list. | |
| bool | isEmpty () const |
| Returns if the list is empty. | |
| bool | contains (const T &obj) const |
| Returns if the given object is contained in the list. | |
| const T & | front () const |
| const T & | back () const |
| void | pushFront (const T &obj) |
| void | popBack () |
| void | clear () |
| Removes all elements from the list. | |
| void | erase (const T &obj) |
| Removes the given element from the list (if it is contained). | |
| VRS_TYPEINFO (LRUList, VRS::SharedObj) | |
| UINT VRS::LRUList< T >::size | ( | ) | const |
Returns the number of objects in the list.
| bool VRS::LRUList< T >::isEmpty | ( | ) | const |
Returns if the list is empty.
| bool VRS::LRUList< T >::contains | ( | const T & | obj | ) | const |
Returns if the given object is contained in the list.
| const T& VRS::LRUList< T >::front | ( | ) | const |
Returns the first element in the list (the element that has been used most recently).
| const T& VRS::LRUList< T >::back | ( | ) | const |
Returns the last element in the list (the element that has not been used for the longest time of all elements in the lru list).
| void VRS::LRUList< T >::pushFront | ( | const T & | obj | ) |
Pushes the given element to the front of the list; adding it to the list if the list does not contain it (meaning using the element).
| void VRS::LRUList< T >::popBack | ( | ) |
Removes the element from the list that has not been used for the longest time of all contained elements.
| void VRS::LRUList< T >::clear | ( | ) |
Removes all elements from the list.
| void VRS::LRUList< T >::erase | ( | const T & | obj | ) |
Removes the given element from the list (if it is contained).
| VRS::LRUList< T >::VRS_TYPEINFO | ( | LRUList< T > | , | |
| VRS::SharedObj | ||||
| ) |