|
SUMO - Simulation of Urban MObility
|
#include <StringBijection.h>
Data Structures | |
| struct | Entry |
Public Member Functions | |
| T | 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 |
Template container for maintaining a bijection between strings and something else
Definition at line 47 of file StringBijection.h.
| StringBijection< T >::StringBijection | ( | ) | [inline] |
Definition at line 57 of file StringBijection.h.
| StringBijection< T >::StringBijection | ( | Entry | entries[], |
| T | terminatorKey | ||
| ) | [inline] |
Definition at line 60 of file StringBijection.h.
| T StringBijection< T >::get | ( | const std::string & | str | ) | [inline] |
Definition at line 74 of file StringBijection.h.
Referenced by NIImporter_SUMO::addEdge(), NIImporter_SUMO::addJunction(), NIXMLNodesHandler::addNode(), NLHandler::beginEdgeParsing(), NGNode::buildNBNode(), NWWriter_OpenDrive::getID(), NLHandler::initTrafficLightLogic(), NLJunctionControlBuilder::openJunction(), NLHandler::parseLinkDir(), NLHandler::parseLinkState(), and NIXMLEdgesHandler::tryGetLaneSpread().
| const std::string& StringBijection< T >::getString | ( | const T | key | ) | [inline] |
Definition at line 83 of file StringBijection.h.
Referenced by toString< LaneSpreadFunction >(), toString< LinkDirection >(), toString< LinkState >(), toString< SumoXMLAttr >(), toString< SumoXMLEdgeFunc >(), toString< SumoXMLNodeType >(), toString< SumoXMLTag >(), and toString< TrafficLightType >().
| std::vector<std::string> StringBijection< T >::getStrings | ( | ) | const [inline] |
Definition at line 108 of file StringBijection.h.
| bool StringBijection< T >::has | ( | const T | key | ) | [inline] |
Definition at line 98 of file StringBijection.h.
Referenced by StringBijection< TrafficLightType >::getString().
| bool StringBijection< T >::hasString | ( | const std::string & | str | ) | [inline] |
Definition at line 93 of file StringBijection.h.
Referenced by StringBijection< TrafficLightType >::get(), and NWWriter_OpenDrive::getID().
| void StringBijection< T >::insert | ( | const std::string | str, |
| const T | key | ||
| ) | [inline] |
Definition at line 68 of file StringBijection.h.
Referenced by NWWriter_OpenDrive::getID(), and StringBijection< TrafficLightType >::StringBijection().
| size_t StringBijection< T >::size | ( | ) | const [inline] |
Definition at line 103 of file StringBijection.h.
std::map<std::string, T> StringBijection< T >::myString2T [private] |
Definition at line 119 of file StringBijection.h.
Referenced by StringBijection< TrafficLightType >::get(), StringBijection< TrafficLightType >::getStrings(), StringBijection< TrafficLightType >::hasString(), StringBijection< TrafficLightType >::insert(), and StringBijection< TrafficLightType >::size().
std::map<T, std::string> StringBijection< T >::myT2String [private] |
Definition at line 120 of file StringBijection.h.
Referenced by StringBijection< TrafficLightType >::getString(), StringBijection< TrafficLightType >::has(), and StringBijection< TrafficLightType >::insert().