![]() |
mutable
A Database System for Research and Fast Prototyping
|
Probing strategy to handle collisions in an open addressing hash table. More...
#include <WasmAlgo.hpp>
Public Member Functions | |
ProbingStrategy (const OpenAddressingHashTableBase &ht) | |
virtual | ~ProbingStrategy () |
virtual Ptr< void > | skip_slots (Ptr< void > bucket, U32x1 skips) const =0 |
Returns the address of the skips -th (starting with index 0) slot in the bucket starting at bucket . | |
virtual Ptr< void > | advance_to_next_slot (Ptr< void > slot, U32x1 current_step) const =0 |
Returns the address of the current_step -th slot (starting with index 0) of a bucket which follows the slot slot . | |
Protected Attributes | |
const OpenAddressingHashTableBase & | ht_ |
open addressing hash table which uses this probing strategy | |
Probing strategy to handle collisions in an open addressing hash table.
Definition at line 774 of file WasmAlgo.hpp.
|
inline |
Definition at line 780 of file WasmAlgo.hpp.
|
inlinevirtual |
Definition at line 782 of file WasmAlgo.hpp.
|
pure virtual |
Returns the address of the current_step
-th slot (starting with index 0) of a bucket which follows the slot slot
.
Implemented in m::wasm::LinearProbing, and m::wasm::QuadraticProbing.
|
pure virtual |
Returns the address of the skips
-th (starting with index 0) slot in the bucket starting at bucket
.
Implemented in m::wasm::LinearProbing, and m::wasm::QuadraticProbing.
|
protected |
open addressing hash table which uses this
probing strategy
Definition at line 777 of file WasmAlgo.hpp.
Referenced by m::wasm::LinearProbing::advance_to_next_slot(), m::wasm::QuadraticProbing::advance_to_next_slot(), m::wasm::LinearProbing::skip_slots(), and m::wasm::QuadraticProbing::skip_slots().