openMSX
|
#include <StringMap.hh>
Public Types | |
using | key_type = const char * |
using | mapped_type = T |
using | value_type = StringMapEntry< T > |
using | size_type = size_t |
using | const_iterator = StringMapConstIterator< T > |
using | iterator = StringMapIterator< T > |
Public Member Functions | |
StringMap (unsigned initialSize=0) | |
~StringMap () | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
iterator | find (string_ref key) |
const_iterator | find (string_ref key) const |
T | lookup (string_ref key) const |
T & | operator[] (string_ref key) |
size_type | count (string_ref key) const |
bool | insert (value_type *keyValue) |
void | clear () |
value_type & | getOrCreateValue (string_ref key, T val=T()) |
void | remove (value_type *keyValue) |
void | erase (iterator i) |
bool | erase (string_ref key) |
Public Member Functions inherited from StringMapImpl | |
unsigned | getNumBuckets () const |
bool | empty () const |
unsigned | size () const |
Additional Inherited Members | |
Static Public Member Functions inherited from StringMapImpl | |
static StringMapEntryBase * | getTombstoneVal () |
Protected Member Functions inherited from StringMapImpl2< CASE_SENSITIVE > | |
StringMapImpl2 (unsigned itemSize, unsigned initSize) | |
unsigned | lookupBucketFor (string_ref key) |
int | findKey (string_ref key) const |
void | removeKey (StringMapEntryBase *V) |
StringMapEntryBase * | removeKey (string_ref key) |
Protected Member Functions inherited from StringMapImpl | |
StringMapImpl (unsigned itemSize, unsigned initSize) | |
~StringMapImpl () | |
void | rehashTable () |
void | init (unsigned size) |
unsigned * | getHashTable () const |
Protected Attributes inherited from StringMapImpl | |
StringMapEntryBase ** | theTable |
unsigned | numBuckets |
unsigned | numItems |
unsigned | numTombstones |
const unsigned | itemSize |
Definition at line 199 of file StringMap.hh.
using StringMap< T, CASE_SENSITIVE >::const_iterator = StringMapConstIterator<T> |
Definition at line 206 of file StringMap.hh.
using StringMap< T, CASE_SENSITIVE >::iterator = StringMapIterator<T> |
Definition at line 207 of file StringMap.hh.
using StringMap< T, CASE_SENSITIVE >::key_type = const char* |
Definition at line 202 of file StringMap.hh.
using StringMap< T, CASE_SENSITIVE >::mapped_type = T |
Definition at line 203 of file StringMap.hh.
using StringMap< T, CASE_SENSITIVE >::size_type = size_t |
Definition at line 205 of file StringMap.hh.
using StringMap< T, CASE_SENSITIVE >::value_type = StringMapEntry<T> |
Definition at line 204 of file StringMap.hh.
|
inlineexplicit |
Definition at line 209 of file StringMap.hh.
|
inline |
Definition at line 213 of file StringMap.hh.
|
inline |
Definition at line 217 of file StringMap.hh.
Referenced by begin().
|
inline |
Definition at line 220 of file StringMap.hh.
|
inline |
Definition at line 279 of file StringMap.hh.
Referenced by StringMap< std::unique_ptr< openmsx::PolymorphicLoaderBase< Archive > > >::~StringMap().
|
inline |
Definition at line 253 of file StringMap.hh.
|
inline |
Definition at line 223 of file StringMap.hh.
Referenced by StringMap< std::unique_ptr< openmsx::PolymorphicLoaderBase< Archive > > >::count(), end(), StringMap< std::unique_ptr< openmsx::PolymorphicLoaderBase< Archive > > >::erase(), StringMap< std::unique_ptr< openmsx::PolymorphicLoaderBase< Archive > > >::find(), and StringMap< std::unique_ptr< openmsx::PolymorphicLoaderBase< Archive > > >::lookup().
|
inline |
Definition at line 226 of file StringMap.hh.
|
inline |
Definition at line 334 of file StringMap.hh.
|
inline |
Definition at line 230 of file StringMap.hh.
Referenced by StringMap< std::unique_ptr< openmsx::PolymorphicLoaderBase< Archive > > >::count(), StringMap< std::unique_ptr< openmsx::PolymorphicLoaderBase< Archive > > >::erase(), StringMap< std::unique_ptr< openmsx::PolymorphicLoaderBase< Archive > > >::lookup(), openmsx::Interpreter::registerCommand(), openmsx::Interpreter::unregisterCommand(), openmsx::MSXCliComm::update(), openmsx::GlobalCliComm::update(), and openmsx::CompressedFileAdapter::~CompressedFileAdapter().
|
inline |
Definition at line 235 of file StringMap.hh.
|
inline |
Definition at line 300 of file StringMap.hh.
Referenced by StringMap< std::unique_ptr< openmsx::PolymorphicLoaderBase< Archive > > >::operator[]().
|
inline |
Definition at line 260 of file StringMap.hh.
|
inline |
Definition at line 243 of file StringMap.hh.
|
inline |
Definition at line 249 of file StringMap.hh.
|
inline |
Definition at line 324 of file StringMap.hh.