SUMO - Simulation of Urban MObility
StringBijection< T > Class Template Reference

#include <StringBijection.h>

Data Structures

struct  Entry

Public Member Functions

get (const std::string &str)
const std::string & getString (const T key)
std::vector< std::string > getStrings () const
bool has (const T key)
bool hasString (const std::string &str)
void insert (const std::string str, const T key)
size_t size () const
 StringBijection ()
 StringBijection (Entry entries[], T terminatorKey)

Private Attributes

std::map< std::string, T > myString2T
std::map< T, std::string > myT2String

Detailed Description

template<class T>
class StringBijection< T >

Template container for maintaining a bijection between strings and something else

Definition at line 47 of file StringBijection.h.


Constructor & Destructor Documentation

template<class T>
StringBijection< T >::StringBijection ( ) [inline]

Definition at line 64 of file StringBijection.h.

template<class T>
StringBijection< T >::StringBijection ( Entry  entries[],
terminatorKey 
) [inline]

Definition at line 67 of file StringBijection.h.


Member Function Documentation

template<class T>
std::vector<std::string> StringBijection< T >::getStrings ( ) const [inline]

Definition at line 115 of file StringBijection.h.

template<class T>
bool StringBijection< T >::has ( const T  key) [inline]

Definition at line 105 of file StringBijection.h.

Referenced by StringBijection< TrafficLightType >::getString().

template<class T>
bool StringBijection< T >::hasString ( const std::string &  str) [inline]
template<class T>
void StringBijection< T >::insert ( const std::string  str,
const T  key 
) [inline]
template<class T>
size_t StringBijection< T >::size ( ) const [inline]

Definition at line 110 of file StringBijection.h.


Field Documentation


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines