Priority queue type generator. More...
#include <map.h>
Inherits noncopyable.
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.   | |
Priority queue type generator.
Template parameters:
max_value method, that returns a value of type KeyType that is larger than any key stored in map : i.e. for all x in map holds CompareType()(x,CompareType::max_value()) 
//! struct CmpIntGreater
//! {
//!   bool operator () (const int & a, const int & b) const { return a>b; }
//!   static int max_value() { return std::numeric_limits<int>::max(); }
//! };
//! 
//! struct CmpIntLess
//! {
//!   bool operator () (const int & a, const int & b) const { return a<b; }
//!   static int max_value() const  { return std::numeric_limits<int>::min(); }
//! };
//! RawNodeSize size of internal nodes of map in bytes (btree implementation).RawLeafSize size of leaves of map in bytes (btree implementation).PDAllocStrategy parallel disk allocation strategy (stxxl::SR is recommended and default) | 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.
| 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) | 
| 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.
| 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) | 
| 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.
| 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 | 
| 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.
| 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 | 
| void map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::disable_prefetching | ( | ) |  [inline] | 
        
Disables leaf prefetching during scanning.
| void map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::enable_prefetching | ( | ) |  [inline] | 
        
Enables leaf prefetching during scanning.
| bool map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::prefetching_enabled | ( | ) |  [inline] | 
        
Returns the status of leaf prefetching during scanning.
| void map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::print_statistics | ( | std::ostream & | o | ) |  const [inline] | 
        
Prints cache statistics.
| void map< KeyType, DataType, CompareType, RawNodeSize, RawLeafSize, PDAllocStrategy >::reset_statistics | ( | ) |  [inline] | 
        
Resets cache statistics.
 1.7.1