linked list
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
LRUList< T > 模板类 参考

#include <LRUList.h>

类 LRUList< T > 继承关系图:

Public 成员函数

 LRUList (unsigned int count)
 
void addNewElement (T e, RemovedTail< T > &remvedTail)
 

详细描述

template<class T>
class LRUList< T >

The class of LRUList

构造及析构函数说明

◆ LRUList()

template<class T >
LRUList< T >::LRUList ( unsigned int  count)

The constructor of LRUList, it will init a double list , with a max lenght of count.

成员函数说明

◆ addNewElement()

template<class T >
void LRUList< T >::addNewElement ( T  e,
RemovedTail< T > &  remvedTail 
)

Add a new element to the lru list's head, if current length is equal maxCount, the tail node will be removed.


该类的文档由以下文件生成: