#include <ImprovedMap.h>
List of all members.
Detailed Description
ImprovedMap can be used to calculate fast the closest next smaller Value from a set of value to an average Value. if there is no smaller Value it delivers biggest Value. Therefore it cn be used to find next Values on a Ring in O(1).
Constructor & Destructor Documentation
ImprovedMap::ImprovedMap |
( |
uint64_t |
initSlices, |
|
|
std::set< uint64_t > * |
initKeys |
|
) |
| |
Initiate a new Map with the given number of Elements and the given keys.
- Parameters:
-
initSlices | number of slices to use (should be O(keys) in most cases |
initKeys | Keys to be stored in this Map |
copy constructur
- Parameters:
-
ImprovedMap::~ImprovedMap |
( |
) |
[virtual] |
Member Function Documentation
uint64_t ImprovedMap::findClosest |
( |
uint64_t |
key ) |
|
find the closest Element to the given value.
- Parameters:
-
The documentation for this class was generated from the following files: