openMSX
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
StringMapImpl Class Reference

Non-templatized base class of StringMap<T>. More...

#include <StringMap.hh>

Inheritance diagram for StringMapImpl:
Inheritance graph
[legend]
Collaboration diagram for StringMapImpl:
Collaboration graph
[legend]

Public Member Functions

unsigned getNumBuckets () const
bool empty () const
unsigned size () const

Static Public Member Functions

static StringMapEntryBasegetTombstoneVal ()

Protected Member Functions

 StringMapImpl (unsigned itemSize, unsigned initSize)
unsigned lookupBucketFor (string_ref key)
int findKey (string_ref key) const
void removeKey (StringMapEntryBase *V)
StringMapEntryBaseremoveKey (string_ref key)
void rehashTable ()

Protected Attributes

StringMapEntryBase ** theTable
unsigned numBuckets
unsigned numItems
unsigned numTombstones

Detailed Description

Non-templatized base class of StringMap<T>.

Definition at line 55 of file StringMap.hh.

Constructor & Destructor Documentation

StringMapImpl::StringMapImpl ( unsigned  itemSize,
unsigned  initSize 
)
explicitprotected

Definition at line 17 of file StringMap.cc.

References numBuckets, numItems, numTombstones, and theTable.

Member Function Documentation

bool StringMapImpl::empty ( ) const
inline
int StringMapImpl::findKey ( string_ref  key) const
protected
unsigned StringMapImpl::getNumBuckets ( ) const
inline

Definition at line 62 of file StringMap.hh.

References numBuckets.

static StringMapEntryBase* StringMapImpl::getTombstoneVal ( )
inlinestatic
unsigned StringMapImpl::lookupBucketFor ( string_ref  key)
protected
void StringMapImpl::rehashTable ( )
protected
void StringMapImpl::removeKey ( StringMapEntryBase V)
protected
StringMapEntryBase * StringMapImpl::removeKey ( string_ref  key)
protected

Definition at line 133 of file StringMap.cc.

References findKey(), getTombstoneVal(), numBuckets, numItems, numTombstones, and theTable.

unsigned StringMapImpl::size ( ) const
inline

Definition at line 64 of file StringMap.hh.

References numItems.

Member Data Documentation

unsigned StringMapImpl::numBuckets
protected
unsigned StringMapImpl::numItems
protected
unsigned StringMapImpl::numTombstones
protected
StringMapEntryBase** StringMapImpl::theTable
protected

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