• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ImprovedMap.h

Go to the documentation of this file.
00001 /* 
00002  * File:   ImprovedMap.h
00003  * Author: fermat
00004  *
00005  * Created on 29. März 2010, 11:04
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  /* _IMPROVEDMAP_H */
00060 

Generated on Mon Oct 11 2010 13:09:26 for CppDistributors by  doxygen 1.7.2