Public Member Functions

map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy > Class Template Reference
[Containers]

Priority queue type generator. More...

#include <map.h>

Inherits noncopyable.

List of all members.

Public Member Functions

 map (unsigned_type node_cache_size_in_bytes, unsigned_type leaf_cache_size_in_bytes)
 A constructor.
 map (const key_compare &c_, unsigned_type node_cache_size_in_bytes, unsigned_type leaf_cache_size_in_bytes)
 A constructor.
template<class InputIterator >
 map (InputIterator b, InputIterator e, unsigned_type node_cache_size_in_bytes, unsigned_type leaf_cache_size_in_bytes, bool range_sorted=false, double node_fill_factor=0.75, double leaf_fill_factor=0.6)
 Constructs a map from a given input range.
template<class InputIterator >
 map (InputIterator b, InputIterator e, const key_compare &c_, unsigned_type node_cache_size_in_bytes, unsigned_type leaf_cache_size_in_bytes, bool range_sorted=false, double node_fill_factor=0.75, double leaf_fill_factor=0.6)
 Constructs a map from a given input range.
void enable_prefetching ()
 Enables leaf prefetching during scanning.
void disable_prefetching ()
 Disables leaf prefetching during scanning.
bool prefetching_enabled ()
 Returns the status of leaf prefetching during scanning.
void print_statistics (std::ostream &o) const
 Prints cache statistics.
void reset_statistics ()
 Resets cache statistics.

Detailed Description

template<class KeyType, class DataType, class CompareType, unsigned RawNodeSize = 16 * 1024, unsigned RawLeafSize = 128 * 1024, class PDAllocStrategy = stxxl::SR>
class map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >

Priority queue type generator.

Template parameters:


Constructor & Destructor Documentation

template<class KeyType, class DataType, class CompareType, unsigned RawNodeSize = 16 * 1024, unsigned RawLeafSize = 128 * 1024, class PDAllocStrategy = stxxl::SR>
map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::map ( unsigned_type  node_cache_size_in_bytes,
unsigned_type  leaf_cache_size_in_bytes 
) [inline]

A constructor.

Parameters:
node_cache_size_in_bytes size of node cache in bytes (btree implementation)
leaf_cache_size_in_bytes size of leaf cache in bytes (btree implementation)
template<class KeyType, class DataType, class CompareType, unsigned RawNodeSize = 16 * 1024, unsigned RawLeafSize = 128 * 1024, class PDAllocStrategy = stxxl::SR>
map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::map ( const key_compare &  c_,
unsigned_type  node_cache_size_in_bytes,
unsigned_type  leaf_cache_size_in_bytes 
) [inline]

A constructor.

Parameters:
c_ comparator object
node_cache_size_in_bytes size of node cache in bytes (btree implementation)
leaf_cache_size_in_bytes size of leaf cache in bytes (btree implementation)
template<class KeyType, class DataType, class CompareType, unsigned RawNodeSize = 16 * 1024, unsigned RawLeafSize = 128 * 1024, class PDAllocStrategy = stxxl::SR>
template<class InputIterator >
map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::map ( InputIterator  b,
InputIterator  e,
unsigned_type  node_cache_size_in_bytes,
unsigned_type  leaf_cache_size_in_bytes,
bool  range_sorted = false,
double  node_fill_factor = 0.75,
double  leaf_fill_factor = 0.6 
) [inline]

Constructs a map from a given input range.

Parameters:
b beginning of the range
e end of the range
node_cache_size_in_bytes size of node cache in bytes (btree implementation)
leaf_cache_size_in_bytes size of leaf cache in bytes (btree implementation)
range_sorted if true than the constructor assumes that the range is sorted and performs a fast bottom-up bulk construction of the map (btree implementation)
node_fill_factor node fill factor in [0,1] for bulk construction
leaf_fill_factor leaf fill factor in [0,1] for bulk construction
template<class KeyType, class DataType, class CompareType, unsigned RawNodeSize = 16 * 1024, unsigned RawLeafSize = 128 * 1024, class PDAllocStrategy = stxxl::SR>
template<class InputIterator >
map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::map ( InputIterator  b,
InputIterator  e,
const key_compare &  c_,
unsigned_type  node_cache_size_in_bytes,
unsigned_type  leaf_cache_size_in_bytes,
bool  range_sorted = false,
double  node_fill_factor = 0.75,
double  leaf_fill_factor = 0.6 
) [inline]

Constructs a map from a given input range.

Parameters:
b beginning of the range
e end of the range
c_ comparator object
node_cache_size_in_bytes size of node cache in bytes (btree implementation)
leaf_cache_size_in_bytes size of leaf cache in bytes (btree implementation)
range_sorted if true than the constructor assumes that the range is sorted and performs a fast bottom-up bulk construction of the map (btree implementation)
node_fill_factor node fill factor in [0,1] for bulk construction
leaf_fill_factor leaf fill factor in [0,1] for bulk construction

Member Function Documentation

template<class KeyType, class DataType, class CompareType, unsigned RawNodeSize = 16 * 1024, unsigned RawLeafSize = 128 * 1024, class PDAllocStrategy = stxxl::SR>
void map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::disable_prefetching (  )  [inline]

Disables leaf prefetching during scanning.

template<class KeyType, class DataType, class CompareType, unsigned RawNodeSize = 16 * 1024, unsigned RawLeafSize = 128 * 1024, class PDAllocStrategy = stxxl::SR>
void map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::enable_prefetching (  )  [inline]

Enables leaf prefetching during scanning.

template<class KeyType, class DataType, class CompareType, unsigned RawNodeSize = 16 * 1024, unsigned RawLeafSize = 128 * 1024, class PDAllocStrategy = stxxl::SR>
bool map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::prefetching_enabled (  )  [inline]

Returns the status of leaf prefetching during scanning.

template<class KeyType, class DataType, class CompareType, unsigned RawNodeSize = 16 * 1024, unsigned RawLeafSize = 128 * 1024, class PDAllocStrategy = stxxl::SR>
void map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::print_statistics ( std::ostream &  o  )  const [inline]

Prints cache statistics.

template<class KeyType, class DataType, class CompareType, unsigned RawNodeSize = 16 * 1024, unsigned RawLeafSize = 128 * 1024, class PDAllocStrategy = stxxl::SR>
void map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::reset_statistics (  )  [inline]

Resets cache statistics.


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