Exposed perfect hash internals.

This commit is contained in:
Davi de Castro Reis 2011-06-14 04:58:22 -03:00
parent 1e1cbfe606
commit 2c88ab61ec

View File

@ -184,6 +184,8 @@ class SimpleMPHIndex : public MPHIndex {
return MPHIndex::Reset<HashFcn>(begin, end); return MPHIndex::Reset<HashFcn>(begin, end);
} }
uint32_t index(const Key& key) const { return MPHIndex::index<HashFcn>(key); } uint32_t index(const Key& key) const { return MPHIndex::index<HashFcn>(key); }
uint32_t perfect_hash(const Key& key) const { return MPHIndex::perfect_hash<HashFcn>(key); }
uint32_t minimal_perfect_hash(const Key& key) const { return MPHIndex::minimal_perfect_hash<HashFcn>(key); }
}; };
} // namespace cxxmph } // namespace cxxmph