Stxxl
1.4.0
|
Pager with LRU replacement strategy. More...
#include <pager.h>
Public Member Functions | |
lru_pager (size_type num_pages=n_pages) | |
size_type | kick () |
void | hit (size_type ipage) |
void | swap (lru_pager &obj) |
size_type | size () const |
Private Types | |
enum | { n_pages = npages_ } |
typedef unsigned_type | size_type |
typedef std::list< size_type > | list_type |
Private Attributes | |
list_type | history |
simple_vector < list_type::iterator > | history_entry |
Pager with LRU replacement strategy.
typedef std::list<size_type> stxxl::lru_pager< npages_ >::list_type [private] |
typedef unsigned_type stxxl::lru_pager< npages_ >::size_type [private] |
anonymous enum [private] |
stxxl::lru_pager< npages_ >::lru_pager | ( | size_type | num_pages = n_pages | ) | [inline] |
void stxxl::lru_pager< npages_ >::hit | ( | size_type | ipage | ) | [inline] |
size_type stxxl::lru_pager< npages_ >::kick | ( | ) | [inline] |
size_type stxxl::lru_pager< npages_ >::size | ( | ) | const [inline] |
void stxxl::lru_pager< npages_ >::swap | ( | lru_pager< npages_ > & | obj | ) | [inline] |
Definition at line 96 of file pager.h.
Referenced by std::swap().
list_type stxxl::lru_pager< npages_ >::history [private] |
Definition at line 75 of file pager.h.
Referenced by stxxl::lru_pager< 8 >::swap().
simple_vector<list_type::iterator> stxxl::lru_pager< npages_ >::history_entry [private] |
Definition at line 76 of file pager.h.
Referenced by stxxl::lru_pager< 8 >::swap().