Stxxl  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Types | Private Attributes
stxxl::random_pager< npages_ > Class Template Reference

Pager with random replacement strategy. More...

#include <pager.h>

Collaboration diagram for stxxl::random_pager< npages_ >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 random_pager (size_type num_pages=n_pages)
size_type kick ()
void hit (size_type ipage)
size_type size () const

Private Types

enum  { n_pages = npages_ }
typedef unsigned_type size_type

Private Attributes

size_type num_pages
random_number
< random_uniform_fast
rnd

Detailed Description

template<unsigned npages_>
class stxxl::random_pager< npages_ >

Pager with random replacement strategy.

Definition at line 38 of file pager.h.


Member Typedef Documentation

template<unsigned npages_>
typedef unsigned_type stxxl::random_pager< npages_ >::size_type [private]

Definition at line 42 of file pager.h.


Member Enumeration Documentation

template<unsigned npages_>
anonymous enum [private]
Enumerator:
n_pages 

Definition at line 40 of file pager.h.


Constructor & Destructor Documentation

template<unsigned npages_>
stxxl::random_pager< npages_ >::random_pager ( size_type  num_pages = n_pages) [inline]

Definition at line 48 of file pager.h.


Member Function Documentation

template<unsigned npages_>
void stxxl::random_pager< npages_ >::hit ( size_type  ipage) [inline]

Definition at line 54 of file pager.h.

template<unsigned npages_>
size_type stxxl::random_pager< npages_ >::kick ( ) [inline]

Definition at line 49 of file pager.h.

template<unsigned npages_>
size_type stxxl::random_pager< npages_ >::size ( ) const [inline]

Definition at line 60 of file pager.h.


Member Data Documentation

template<unsigned npages_>
size_type stxxl::random_pager< npages_ >::num_pages [private]

Definition at line 44 of file pager.h.

template<unsigned npages_>
random_number<random_uniform_fast> stxxl::random_pager< npages_ >::rnd [private]

Definition at line 45 of file pager.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines