![]() |
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 38 of file SequentialStringBijection.h.
|
inline |
Definition at line 55 of file SequentialStringBijection.h.
|
inline |
Definition at line 58 of file SequentialStringBijection.h.
References insert(), and myT2String.
|
inline |
Definition at line 82 of file SequentialStringBijection.h.
References myString2T.
|
inline |
Definition at line 141 of file SequentialStringBijection.h.
References myString2T.
|
inline |
Definition at line 93 of file SequentialStringBijection.h.
References hasString(), and myString2T.
Referenced by MSDevice_Emissions::initOnce(), main(), and OutputDevice::parseWrittenAttributes().
|
inline |
Definition at line 102 of file SequentialStringBijection.h.
References myT2String.
Referenced by toString< SumoXMLAttr >(), and toString< SumoXMLTag >().
|
inline |
Definition at line 127 of file SequentialStringBijection.h.
References myT2String.
|
inline |
Definition at line 132 of file SequentialStringBijection.h.
References myString2T.
|
inline |
Definition at line 117 of file SequentialStringBijection.h.
References myT2String.
Referenced by insert().
|
inline |
Definition at line 112 of file SequentialStringBijection.h.
References myString2T.
Referenced by GNEAttributeCarrier::canParse(), get(), and insert().
|
inline |
Definition at line 67 of file SequentialStringBijection.h.
References has(), hasString(), myString2T, and myT2String.
Referenced by SequentialStringBijection().
|
inline |
Definition at line 87 of file SequentialStringBijection.h.
References myString2T, and myT2String.
|
inline |
Definition at line 122 of file SequentialStringBijection.h.
References myString2T.
|
private |
Definition at line 150 of file SequentialStringBijection.h.
Referenced by addAlias(), addKeysInto(), get(), getValues(), hasString(), insert(), remove(), and size().
|
private |
Definition at line 151 of file SequentialStringBijection.h.
Referenced by getString(), getStrings(), has(), insert(), remove(), and SequentialStringBijection().