NEST  2.6.0,not_revisioned_source_dir@0
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS > Class Template Reference

#include <hashtable-common.h>

Inheritance diagram for sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >:

Classes

class  hash_munger
 
class  hash_munger< HashKey * >
 

Public Types

typedef Key key_type
 
typedef HashFunc hasher
 
typedef SizeType size_type
 

Public Member Functions

 sh_hashtable_settings (const hasher &hf, const float ht_occupancy_flt, const float ht_empty_flt)
 
size_type hash (const key_type &v) const
 
float enlarge_factor () const
 
void set_enlarge_factor (float f)
 
float shrink_factor () const
 
void set_shrink_factor (float f)
 
size_type enlarge_threshold () const
 
void set_enlarge_threshold (size_type t)
 
size_type shrink_threshold () const
 
void set_shrink_threshold (size_type t)
 
size_type enlarge_size (size_type x) const
 
size_type shrink_size (size_type x) const
 
bool consider_shrink () const
 
void set_consider_shrink (bool t)
 
bool use_empty () const
 
void set_use_empty (bool t)
 
bool use_deleted () const
 
void set_use_deleted (bool t)
 
size_type num_ht_copies () const
 
void inc_num_ht_copies ()
 
void reset_thresholds (size_type num_buckets)
 
void set_resizing_parameters (float shrink, float grow)
 
size_type min_buckets (size_type num_elts, size_type min_buckets_wanted)
 

Private Attributes

size_type enlarge_threshold_
 
size_type shrink_threshold_
 
float enlarge_factor_
 
float shrink_factor_
 
bool consider_shrink_
 
bool use_empty_
 
bool use_deleted_
 
unsigned int num_ht_copies_
 

Member Typedef Documentation

template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
typedef HashFunc sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::hasher
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
typedef Key sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::key_type
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
typedef SizeType sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::size_type

Constructor & Destructor Documentation

template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::sh_hashtable_settings ( const hasher hf,
const float  ht_occupancy_flt,
const float  ht_empty_flt 
)
inline

Member Function Documentation

template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
bool sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::consider_shrink ( ) const
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
float sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::enlarge_factor ( ) const
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
size_type sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::enlarge_size ( size_type  x) const
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
size_type sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::enlarge_threshold ( ) const
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
size_type sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::hash ( const key_type v) const
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
void sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::inc_num_ht_copies ( )
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
size_type sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::min_buckets ( size_type  num_elts,
size_type  min_buckets_wanted 
)
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
size_type sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::num_ht_copies ( ) const
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
void sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::reset_thresholds ( size_type  num_buckets)
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
void sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::set_consider_shrink ( bool  t)
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
void sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::set_enlarge_factor ( float  f)
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
void sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::set_enlarge_threshold ( size_type  t)
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
void sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::set_resizing_parameters ( float  shrink,
float  grow 
)
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
void sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::set_shrink_factor ( float  f)
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
void sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::set_shrink_threshold ( size_type  t)
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
void sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::set_use_deleted ( bool  t)
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
void sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::set_use_empty ( bool  t)
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
float sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::shrink_factor ( ) const
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
size_type sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::shrink_size ( size_type  x) const
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
size_type sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::shrink_threshold ( ) const
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
bool sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::use_deleted ( ) const
inline
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
bool sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::use_empty ( ) const
inline

Member Data Documentation

template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
bool sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::consider_shrink_
private
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
float sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::enlarge_factor_
private
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
size_type sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::enlarge_threshold_
private
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
unsigned int sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::num_ht_copies_
private
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
float sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::shrink_factor_
private
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
size_type sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::shrink_threshold_
private
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
bool sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::use_deleted_
private
template<typename Key , typename HashFunc , typename SizeType , int HT_MIN_BUCKETS>
bool sparsehash_internal::sh_hashtable_settings< Key, HashFunc, SizeType, HT_MIN_BUCKETS >::use_empty_
private

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