openMSX
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
StringMapEntry< T > Class Template Reference

#include <StringMap.hh>

Inheritance diagram for StringMapEntry< T >:
Inheritance graph
[legend]
Collaboration diagram for StringMapEntry< T >:
Collaboration graph
[legend]

Public Member Functions

void destroy ()
 
string_ref getKey () const
 
string_ref first () const
 
const T & getValue () const
 
T & getValue ()
 
void setValue (const T &v)
 
const char * getKeyData () const
 
- Public Member Functions inherited from StringMapEntryBase
 StringMapEntryBase (unsigned len)
 
unsigned getKeyLength () const
 

Static Public Member Functions

static StringMapEntrycreate (string_ref key, T v)
 
static StringMapEntryGetStringMapEntryFromValue (T &v)
 
static const StringMapEntryGetStringMapEntryFromValue (const T &v)
 
static StringMapEntryGetStringMapEntryFromKeyData (const char *keyData)
 

Public Attributes

second
 

Detailed Description

template<typename T>
class StringMapEntry< T >

Definition at line 119 of file StringMap.hh.

Member Function Documentation

template<typename T>
static StringMapEntry* StringMapEntry< T >::create ( string_ref  key,
v 
)
inlinestatic
template<typename T>
void StringMapEntry< T >::destroy ( )
inline
template<typename T>
string_ref StringMapEntry< T >::first ( ) const
inline

Definition at line 154 of file StringMap.hh.

References StringMapEntry< T >::getKey().

Referenced by detail::StringMapGetter< T, 0 >::operator()().

template<typename T>
string_ref StringMapEntry< T >::getKey ( ) const
inline
template<typename T>
const char* StringMapEntry< T >::getKeyData ( ) const
inline

Definition at line 161 of file StringMap.hh.

Referenced by StringMapEntry< T >::getKey().

template<typename T>
static StringMapEntry& StringMapEntry< T >::GetStringMapEntryFromKeyData ( const char *  keyData)
inlinestatic

Definition at line 181 of file StringMap.hh.

template<typename T>
static StringMapEntry& StringMapEntry< T >::GetStringMapEntryFromValue ( T &  v)
inlinestatic
template<typename T>
static const StringMapEntry& StringMapEntry< T >::GetStringMapEntryFromValue ( const T &  v)
inlinestatic

Definition at line 175 of file StringMap.hh.

References StringMapEntry< T >::GetStringMapEntryFromValue().

template<typename T>
const T& StringMapEntry< T >::getValue ( ) const
inline

Definition at line 156 of file StringMap.hh.

References StringMapEntry< T >::second.

template<typename T>
T& StringMapEntry< T >::getValue ( )
inline

Definition at line 157 of file StringMap.hh.

References StringMapEntry< T >::second.

template<typename T>
void StringMapEntry< T >::setValue ( const T &  v)
inline

Definition at line 158 of file StringMap.hh.

Member Data Documentation

template<typename T>
T StringMapEntry< T >::second

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