STXXL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::VECTOR_GENERATOR< ValueType, PageSize, CachePages, BlockSize, AllocStr, Pager > Struct Template Reference

Detailed Description

template<typename ValueType, unsigned PageSize = 4, unsigned CachePages = 8, unsigned BlockSize = STXXL_DEFAULT_BLOCK_SIZE(ValueType), typename AllocStr = STXXL_DEFAULT_ALLOC_STRATEGY, pager_type Pager = lru>
struct stxxl::VECTOR_GENERATOR< ValueType, PageSize, CachePages, BlockSize, AllocStr, Pager >

External vector type generator.

Template Parameters
ValueTypeelement type of contained objects (POD with no references to internal memory)
PageSizenumber of blocks in a page, default: 4 (recommended >= D)
CachePagesnumber of pages in cache, default: 8 (recommended >= 2)
BlockSizeexternal block size B in bytes, default: 2 MiB
AllocStrparallel disk allocation strategies: striping, RC, SR, or FR. default: RC.
Pagerpager type: random or lru, default: lru.
Warning
Do not store references to the elements of an external vector. Such references might be invalidated during any following access to elements of the vector

Definition at line 2602 of file vector.h.

Public Types

typedef IF< Pager==lru,
lru_pager< CachePages >
, random_pager< CachePages >
>::result 
PagerType
 
typedef vector< ValueType,
PageSize, PagerType, BlockSize,
AllocStr > 
result
 

Member Typedef Documentation

template<typename ValueType, unsigned PageSize = 4, unsigned CachePages = 8, unsigned BlockSize = STXXL_DEFAULT_BLOCK_SIZE(ValueType), typename AllocStr = STXXL_DEFAULT_ALLOC_STRATEGY, pager_type Pager = lru>
typedef IF<Pager == lru, lru_pager<CachePages>, random_pager<CachePages> >::result stxxl::VECTOR_GENERATOR< ValueType, PageSize, CachePages, BlockSize, AllocStr, Pager >::PagerType

Definition at line 2605 of file vector.h.

template<typename ValueType, unsigned PageSize = 4, unsigned CachePages = 8, unsigned BlockSize = STXXL_DEFAULT_BLOCK_SIZE(ValueType), typename AllocStr = STXXL_DEFAULT_ALLOC_STRATEGY, pager_type Pager = lru>
typedef vector<ValueType, PageSize, PagerType, BlockSize, AllocStr> stxxl::VECTOR_GENERATOR< ValueType, PageSize, CachePages, BlockSize, AllocStr, Pager >::result

Definition at line 2607 of file vector.h.


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