Eclipse SUMO - Simulation of Urban MObility
|
#include <SequentialStringBijection.h>
Data Structures | |
struct | Entry |
Public Member Functions | |
void | addAlias (const std::string str, int key) |
void | addKeysInto (std::vector< int > &list) const |
int | get (const std::string &str) const |
const std::string & | getString (int key) const |
std::vector< std::string > | getStrings () const |
std::vector< int > | getValues () const |
bool | has (int key) const |
bool | hasString (const std::string &str) const |
void | insert (const std::string str, int key, bool checkDuplicates=true) |
void | remove (const std::string str, int key) |
SequentialStringBijection () | |
SequentialStringBijection (Entry entries[], int terminatorKey, bool checkDuplicates=true) | |
int | size () const |
Private Attributes | |
std::map< std::string, int > | myString2T |
std::vector< std::string > | myT2String |
Template container for maintaining a bidirectional map between strings and something else It is not always a bijection since it allows for duplicate entries on both sides if either checkDuplicates is set to false in the constructor or the insert function or if the addAlias function is used.
Definition at line 39 of file SequentialStringBijection.h.
|
inline |
Definition at line 56 of file SequentialStringBijection.h.
|
inline |
Definition at line 59 of file SequentialStringBijection.h.
References insert(), and myT2String.
|
inline |
Definition at line 83 of file SequentialStringBijection.h.
References myString2T.
|
inline |
Definition at line 142 of file SequentialStringBijection.h.
References myString2T.
|
inline |
Definition at line 94 of file SequentialStringBijection.h.
References hasString(), and myString2T.
Referenced by MSDevice_Emissions::initOnce(), MSDevice_FCD::initOnce(), MSMeanData::initWrittenAttributes(), and main().
|
inline |
Definition at line 103 of file SequentialStringBijection.h.
References myT2String.
Referenced by toString< SumoXMLAttr >(), and toString< SumoXMLTag >().
|
inline |
Definition at line 128 of file SequentialStringBijection.h.
References myT2String.
|
inline |
Definition at line 133 of file SequentialStringBijection.h.
References myString2T.
|
inline |
Definition at line 118 of file SequentialStringBijection.h.
References myT2String.
Referenced by insert().
|
inline |
Definition at line 113 of file SequentialStringBijection.h.
References myString2T.
Referenced by get(), and insert().
|
inline |
Definition at line 68 of file SequentialStringBijection.h.
References has(), hasString(), myString2T, and myT2String.
Referenced by SequentialStringBijection().
|
inline |
Definition at line 88 of file SequentialStringBijection.h.
References myString2T, and myT2String.
|
inline |
Definition at line 123 of file SequentialStringBijection.h.
References myString2T.
|
private |
Definition at line 151 of file SequentialStringBijection.h.
Referenced by addAlias(), addKeysInto(), get(), getValues(), hasString(), insert(), remove(), and size().
|
private |
Definition at line 152 of file SequentialStringBijection.h.
Referenced by getString(), getStrings(), has(), insert(), remove(), and SequentialStringBijection().