aitools::bighashmap::core::cmph_map< T > Class Template Reference

#include <cmph_map.hpp>

List of all members.

Public Types

typedef std::string key_type
typedef T value_type
typedef uint32_t checksum_type

Public Member Functions

 cmph_map (const bfs::path &mph_file)
virtual ~cmph_map ()
virtual bool find (const key_type &key, value_type &value)=0
uint32_t size () const

Protected Member Functions

uint32_t hash (const std::string &key)

Private Attributes

cmph_t * mphf_

Detailed Description

template<typename T>
class aitools::bighashmap::core::cmph_map< T >

Author:
martin.trenkmann@uni-weimar.de
Version:
Id
cmph_map.hpp,v 1.2 2011/09/21 01:00:50 trenkman Exp

Definition at line 25 of file cmph_map.hpp.


Member Typedef Documentation

template<typename T>
typedef uint32_t aitools::bighashmap::core::cmph_map< T >::checksum_type
template<typename T>
typedef std::string aitools::bighashmap::core::cmph_map< T >::key_type
template<typename T>
typedef T aitools::bighashmap::core::cmph_map< T >::value_type

Constructor & Destructor Documentation

template<typename T>
aitools::bighashmap::core::cmph_map< T >::cmph_map ( const bfs::path &  mph_file  )  [inline]

Definition at line 35 of file cmph_map.hpp.

References aitools::util::fclose(), aitools::util::fopen(), aitools::bighashmap::core::cmph_map< T >::mphf_, and aitools::util::throw_runtime_error().

Here is the call graph for this function:

template<typename T>
virtual aitools::bighashmap::core::cmph_map< T >::~cmph_map (  )  [inline, virtual]

Definition at line 47 of file cmph_map.hpp.

References aitools::bighashmap::core::cmph_map< T >::mphf_.


Member Function Documentation

template<typename T>
virtual bool aitools::bighashmap::core::cmph_map< T >::find ( const key_type key,
value_type value 
) [pure virtual]
template<typename T>
uint32_t aitools::bighashmap::core::cmph_map< T >::hash ( const std::string &  key  )  [inline, protected]

Definition at line 66 of file cmph_map.hpp.

References aitools::bighashmap::core::cmph_map< T >::mphf_, and aitools::bighashmap::core::cmph_map< T >::size().

Referenced by aitools::bighashmap::core::internal_map< T >::find(), and aitools::bighashmap::core::external_map< T >::find().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T>
uint32_t aitools::bighashmap::core::cmph_map< T >::size (  )  const [inline]

Member Data Documentation

template<typename T>
cmph_t* aitools::bighashmap::core::cmph_map< T >::mphf_ [private]

The documentation for this class was generated from the following file:
Generated on Wed May 30 15:07:31 2012 by  doxygen 1.6.3