From 2c88ab61ec43ef3574849b22338ba1c09933fed5 Mon Sep 17 00:00:00 2001 From: Davi de Castro Reis Date: Tue, 14 Jun 2011 04:58:22 -0300 Subject: [PATCH] Exposed perfect hash internals. --- cxxmph/mph_index.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cxxmph/mph_index.h b/cxxmph/mph_index.h index 3083a60..3afc518 100644 --- a/cxxmph/mph_index.h +++ b/cxxmph/mph_index.h @@ -184,6 +184,8 @@ class SimpleMPHIndex : public MPHIndex { return MPHIndex::Reset(begin, end); } uint32_t index(const Key& key) const { return MPHIndex::index(key); } + uint32_t perfect_hash(const Key& key) const { return MPHIndex::perfect_hash(key); } + uint32_t minimal_perfect_hash(const Key& key) const { return MPHIndex::minimal_perfect_hash(key); } }; } // namespace cxxmph