STXXL  1.4-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::random_pager< npages_ > Class Template Reference

Detailed Description

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

Pager with random replacement strategy.

Definition at line 37 of file pager.h.

+ Collaboration diagram for stxxl::random_pager< npages_ >:

Public Member Functions

 random_pager (size_type num_pages=n_pages)
 
void hit (size_type ipage)
 
size_type kick ()
 
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
 

Member Typedef Documentation

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

Definition at line 41 of file pager.h.

Member Enumeration Documentation

template<unsigned npages_>
anonymous enum
private
Enumerator
n_pages 

Definition at line 39 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 47 of file pager.h.

Member Function Documentation

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

Definition at line 53 of file pager.h.

References STXXL_ASSERT.

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

Definition at line 48 of file pager.h.

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

Definition at line 58 of file pager.h.

Member Data Documentation

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

Definition at line 43 of file pager.h.

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

Definition at line 44 of file pager.h.


The documentation for this class was generated from the following file: