SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
CoxHashCommon< KEY, VALUE > Class Template Referenceabstract

#include <CoXHash.h>

Inheritance diagram for CoxHashCommon< KEY, VALUE >:
Inheritance graph
Collaboration diagram for CoxHashCommon< KEY, VALUE >:
Collaboration graph

Classes

struct  HashEntry
 

Public Member Functions

 CoxHashCommon ()
 
virtual ~CoxHashCommon ()
 
virtual uint32_t find_index (const KEY &key, uint32_t &index_tgt, uint32_t &key_tgt, bool a5) const =0
 
virtual uint32_t next_size (uint32_t sz)=0
 
void resize (uint32_t new_size)
 
HashEntryinsert_entry (const KEY &k, VALUE v)
 
const KEY * key_for_idx (int idx) const
 
void init (uint32_t sz, uint32_t flags)
 

Protected Attributes

std::vector< HashEntrym_storage
 
size_t max_size
 
size_t in_use
 
uint32_t m_flags
 

Static Protected Attributes

static JenkinsHash< KEY > hash
 

Constructor & Destructor Documentation

template<class KEY, class VALUE>
CoxHashCommon< KEY, VALUE >::CoxHashCommon ( )
inline
template<class KEY, class VALUE>
virtual CoxHashCommon< KEY, VALUE >::~CoxHashCommon ( )
inlinevirtual

Member Function Documentation

template<class KEY, class VALUE>
virtual uint32_t CoxHashCommon< KEY, VALUE >::find_index ( const KEY &  key,
uint32_t &  index_tgt,
uint32_t &  key_tgt,
bool  a5 
) const
pure virtual

Implemented in CoXGenericHashMap< KEY, VALUE, COMPARE_FUNCTOR >, and CoXHashMap< VALUE >.

Here is the caller graph for this function:

template<class KEY, class VALUE>
void CoxHashCommon< KEY, VALUE >::init ( uint32_t  sz,
uint32_t  flags 
)
inline
template<class KEY, class VALUE>
HashEntry* CoxHashCommon< KEY, VALUE >::insert_entry ( const KEY &  k,
VALUE  v 
)
inline
template<class KEY, class VALUE>
const KEY* CoxHashCommon< KEY, VALUE >::key_for_idx ( int  idx) const
inline
template<class KEY, class VALUE>
virtual uint32_t CoxHashCommon< KEY, VALUE >::next_size ( uint32_t  sz)
pure virtual

Implemented in CoXGenericHashMap< KEY, VALUE, COMPARE_FUNCTOR >, and CoXHashMap< VALUE >.

Here is the caller graph for this function:

template<class KEY, class VALUE>
void CoxHashCommon< KEY, VALUE >::resize ( uint32_t  new_size)
inline

Here is the caller graph for this function:

Member Data Documentation

template<class KEY, class VALUE>
size_t CoxHashCommon< KEY, VALUE >::in_use
protected
template<class KEY, class VALUE>
uint32_t CoxHashCommon< KEY, VALUE >::m_flags
protected
template<class KEY, class VALUE>
std::vector<HashEntry> CoxHashCommon< KEY, VALUE >::m_storage
protected
template<class KEY, class VALUE>
size_t CoxHashCommon< KEY, VALUE >::max_size
protected

The documentation for this class was generated from the following files: