CernVM-FS
2.12.0
|
#include <compat.h>
Public Member Functions | |
SmallHashBase () | |
~SmallHashBase () | |
void | Init (uint32_t expected_size, Key empty, uint32_t(*hasher)(const Key &key)) |
bool | Lookup (const Key &key, Value *value) const |
bool | Contains (const Key &key) const |
void | Insert (const Key &key, const Value &value) |
void | Erase (const Key &key) |
void | Clear () |
uint64_t | bytes_allocated () const |
void | GetCollisionStats (uint64_t *num_collisions, uint32_t *max_collisions) const |
uint32_t | ScaleHash (const Key &key) const |
void | InitMemory () |
bool | DoInsert (const Key &key, const Value &value, const bool count_collisions) |
bool | DoLookup (const Key &key, uint32_t *bucket, uint32_t *collisions) const |
void | DoClear (const bool reset_capacity) |
void | SetThresholds () |
void | Grow () |
void | Shrink () |
void | ResetCapacity () |
Static Public Member Functions | |
static double | GetEntrySize () |
Public Attributes | |
Key * | keys_ |
Value * | values_ |
uint32_t | capacity_ |
uint32_t | initial_capacity_ |
uint32_t | size_ |
uint32_t(* | hasher_ )(const Key &key) |
uint64_t | bytes_allocated_ |
uint64_t | num_collisions_ |
uint32_t | max_collisions_ |
Key | empty_key_ |
Static Public Attributes | |
static const double | kLoadFactor |
static const double | kThresholdGrow |
static const double | kThresholdShrink |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 382 of file compat.h.
Referenced by compat::inode_tracker_v2::SmallHashBase< uint64_t, shash_v1::Md5, SmallHashDynamic< uint64_t, shash_v1::Md5 > >::Contains(), and compat::inode_tracker_v2::SmallHashBase< uint64_t, shash_v1::Md5, SmallHashDynamic< uint64_t, shash_v1::Md5 > >::Lookup().
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 341 of file compat.h.
Referenced by compat::inode_tracker_v2::InodeMap::LookupMd5Path().
|
inline |
|
inline |
Definition at line 371 of file compat.h.
Referenced by compat::inode_tracker_v2::SmallHashBase< uint64_t, shash_v1::Md5, SmallHashDynamic< uint64_t, shash_v1::Md5 > >::DoLookup().
|
inline |
|
inline |
uint64_t compat::inode_tracker_v2::SmallHashBase< Key, Value, Derived >::bytes_allocated_ |
Definition at line 409 of file compat.h.
Referenced by compat::inode_tracker_v2::SmallHashBase< uint64_t, shash_v1::Md5, SmallHashDynamic< uint64_t, shash_v1::Md5 > >::bytes_allocated().
uint32_t compat::inode_tracker_v2::SmallHashBase< Key, Value, Derived >::capacity_ |
Definition at line 405 of file compat.h.
Referenced by compat::inode_tracker_v2::SmallHashBase< uint64_t, shash_v1::Md5, SmallHashDynamic< uint64_t, shash_v1::Md5 > >::DoLookup(), compat::inode_tracker_v2::Migrate(), and compat::inode_tracker_v2::SmallHashBase< uint64_t, shash_v1::Md5, SmallHashDynamic< uint64_t, shash_v1::Md5 > >::ScaleHash().
Key compat::inode_tracker_v2::SmallHashBase< Key, Value, Derived >::empty_key_ |
Definition at line 412 of file compat.h.
Referenced by compat::inode_tracker_v2::SmallHashBase< uint64_t, shash_v1::Md5, SmallHashDynamic< uint64_t, shash_v1::Md5 > >::DoLookup().
uint32_t(* compat::inode_tracker_v2::SmallHashBase< Key, Value, Derived >::hasher_)(const Key &key) |
Definition at line 408 of file compat.h.
Referenced by compat::inode_tracker_v2::Migrate(), and compat::inode_tracker_v2::SmallHashBase< uint64_t, shash_v1::Md5, SmallHashDynamic< uint64_t, shash_v1::Md5 > >::ScaleHash().
uint32_t compat::inode_tracker_v2::SmallHashBase< Key, Value, Derived >::initial_capacity_ |
Key* compat::inode_tracker_v2::SmallHashBase< Key, Value, Derived >::keys_ |
Definition at line 403 of file compat.h.
Referenced by compat::inode_tracker_v2::SmallHashBase< uint64_t, shash_v1::Md5, SmallHashDynamic< uint64_t, shash_v1::Md5 > >::DoLookup(), compat::inode_tracker_v2::Migrate(), and compat::inode_tracker_v2::SmallHashBase< uint64_t, shash_v1::Md5, SmallHashDynamic< uint64_t, shash_v1::Md5 > >::~SmallHashBase().
|
static |
|
static |
|
static |
uint32_t compat::inode_tracker_v2::SmallHashBase< Key, Value, Derived >::max_collisions_ |
uint64_t compat::inode_tracker_v2::SmallHashBase< Key, Value, Derived >::num_collisions_ |
uint32_t compat::inode_tracker_v2::SmallHashBase< Key, Value, Derived >::size_ |
Value* compat::inode_tracker_v2::SmallHashBase< Key, Value, Derived >::values_ |
Definition at line 404 of file compat.h.
Referenced by compat::inode_tracker_v2::SmallHashBase< uint64_t, shash_v1::Md5, SmallHashDynamic< uint64_t, shash_v1::Md5 > >::Lookup(), compat::inode_tracker_v2::Migrate(), and compat::inode_tracker_v2::SmallHashBase< uint64_t, shash_v1::Md5, SmallHashDynamic< uint64_t, shash_v1::Md5 > >::~SmallHashBase().