Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef _IMPROVEDMAP_H
00009 #define _IMPROVEDMAP_H
00010
00011 #include<stdint.h>
00012 #include<set>
00013
00014 namespace VDRIVE {
00015
00022 class ImprovedMap {
00023 public:
00032 ImprovedMap(uint64_t initSlices, std::set<uint64_t> *initKeys);
00033
00039 ImprovedMap(const ImprovedMap& orig);
00040
00044 virtual ~ImprovedMap();
00045
00051 uint64_t findClosest(uint64_t key);
00052 private:
00053 uint16_t bitShift;
00054 uint64_t slices;
00055 std::set<uint64_t> **keys;
00056 uint64_t lastKey;
00057 };
00058 }
00059 #endif
00060