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)
 
 ~StringMapImpl ()
 
void rehashTable ()
 
void init (unsigned size)
 
unsigned * getHashTable () const
 

Protected Attributes

StringMapEntryBase ** theTable
 
unsigned numBuckets
 
unsigned numItems
 
unsigned numTombstones
 
const unsigned itemSize
 

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 
)
protected

Definition at line 5 of file StringMap.cc.

References init(), numBuckets, numItems, numTombstones, and theTable.

StringMapImpl::~StringMapImpl ( )
inlineprotected

Definition at line 68 of file StringMap.hh.

References theTable.

Member Function Documentation

bool StringMapImpl::empty ( ) const
inline
unsigned* StringMapImpl::getHashTable ( ) const
inlineprotected

Definition at line 75 of file StringMap.hh.

References numBuckets, and theTable.

Referenced by rehashTable().

unsigned StringMapImpl::getNumBuckets ( ) const
inline

Definition at line 62 of file StringMap.hh.

References numBuckets.

static StringMapEntryBase* StringMapImpl::getTombstoneVal ( )
inlinestatic
void StringMapImpl::init ( unsigned  size)
protected

Definition at line 20 of file StringMap.cc.

References numBuckets, numItems, numTombstones, theTable, and unlikely.

Referenced by StringMapImpl().

void StringMapImpl::rehashTable ( )
protected
unsigned StringMapImpl::size ( ) const
inline

Definition at line 64 of file StringMap.hh.

References numItems.

Member Data Documentation

const unsigned StringMapImpl::itemSize
protected

Definition at line 86 of file StringMap.hh.

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: