Marine Library  1.0
C++ library for Linux Networking Development
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
CMultiRowHashTable< Value, EmptyKey, KeyOfValue, HashKey, EqualKey > Class Template Reference

Public Types

typedef Value value_type
 
typedef value_type * pointer
 
typedef const value_type * const_pointer
 
typedef value_type & reference
 
typedef const value_type & const_reference
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef KeyOfValue extract_key
 
typedef extract_key::result_type key_type
 
typedef EmptyKey key_empty
 
typedef HashKey< typename COmitCV< key_type >::result_type > hasher
 
typedef EqualKey< key_type > key_equal
 
typedef NS_IMPL::CMultiRowHashConstIterator< __Mytconst_iterator
 
typedef NS_IMPL::CMultiRowHashIterator< __Mytiterator
 

Public Member Functions

 CMultiRowHashTable (char *buf, size_t sz)
 
 CMultiRowHashTable (char *buf, size_t sz, size_t capacity, int row, bool create=false)
 
bool init (char *buf, size_t sz)
 
bool init (char *buf, size_t sz, size_t capacity, int row, bool create=false)
 
void uninit ()
 
bool valid () const
 
int rowSize () const
 
size_t capacityOfRow (int row) const
 
size_t capacity () const
 
size_t sizeOfRow (int row) const
 
size_t size () const
 
bool empty () const
 
time_t createTime () const
 
time_t updateTime () const
 
time_t upgradeTime () const
 
std::string toString ()
 
iterator find (const key_type &key)
 
const_iterator find (const key_type &key) const
 
iterator insert (const_reference value)
 
size_type erase (const key_type &key)
 
void erase (iterator it)
 
void clear ()
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
bool upgradeCalc (CMultiRowHashUpgrade &up) const
 
void upgradeCommit (char *buf, const CMultiRowHashUpgrade &up)
 

Static Public Member Functions

static size_t CalcBufSize (size_t capacity, int row)
 
static bool isEmptyKey (const_reference value)
 

Static Public Attributes

static const uint16_t kCurVersion = 0
 
static const int kRowMax = 256
 

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