Stxxl  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types
stxxl::VECTOR_GENERATOR< Tp_, PgSz_, Pages_, BlkSize_, AllocStr_, Pager_ > Struct Template Reference

External vector type generator. More...

#include <vector.h>

List of all members.

Public Types

typedef IF< Pager_==lru,
lru_pager< Pages_ >
, random_pager< Pages_ >
>::result 
PagerType
typedef vector< Tp_, PgSz_,
PagerType, BlkSize_, AllocStr_ > 
result

Detailed Description

template<typename Tp_, unsigned PgSz_ = 4, unsigned Pages_ = 8, unsigned BlkSize_ = STXXL_DEFAULT_BLOCK_SIZE(Tp_), typename AllocStr_ = STXXL_DEFAULT_ALLOC_STRATEGY, pager_type Pager_ = lru>
struct stxxl::VECTOR_GENERATOR< Tp_, PgSz_, Pages_, BlkSize_, AllocStr_, Pager_ >

External vector type generator.

Template Parameters:
Tp_type of contained objects (POD with no references to internal memory)
PgSz_number of blocks in a page
Pages_number of pages
BlkSize_external block size in bytes, default is 2 MiB
AllocStr_one of allocation strategies: striping , RC , SR , or FR default is RC
Pager_pager type:
  • random ,
  • lru , is default

Memory consumption of constructed vector is BlkSize_*Pages_*PgSz_ bytes Configured vector type is available as STACK_GENERATOR<>::result.

Examples:

Examples:
containers/berkeley_db_benchmark.cpp.

Definition at line 1665 of file vector.h.


Member Typedef Documentation

template<typename Tp_, unsigned PgSz_ = 4, unsigned Pages_ = 8, unsigned BlkSize_ = STXXL_DEFAULT_BLOCK_SIZE(Tp_), typename AllocStr_ = STXXL_DEFAULT_ALLOC_STRATEGY, pager_type Pager_ = lru>
typedef IF<Pager_ == lru, lru_pager<Pages_>, random_pager<Pages_> >::result stxxl::VECTOR_GENERATOR< Tp_, PgSz_, Pages_, BlkSize_, AllocStr_, Pager_ >::PagerType

Definition at line 1668 of file vector.h.

template<typename Tp_, unsigned PgSz_ = 4, unsigned Pages_ = 8, unsigned BlkSize_ = STXXL_DEFAULT_BLOCK_SIZE(Tp_), typename AllocStr_ = STXXL_DEFAULT_ALLOC_STRATEGY, pager_type Pager_ = lru>
typedef vector<Tp_, PgSz_, PagerType, BlkSize_, AllocStr_> stxxl::VECTOR_GENERATOR< Tp_, PgSz_, Pages_, BlkSize_, AllocStr_, Pager_ >::result

Definition at line 1670 of file vector.h.


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