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.
|
inline |
Definition at line 64 of file StringBijection.h.
|
inline |
Definition at line 67 of file StringBijection.h.
|
inline |
Definition at line 81 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().
|
inline |
Definition at line 90 of file StringBijection.h.
Referenced by toString< LaneSpreadFunction >(), toString< LinkDirection >(), toString< LinkState >(), toString< SumoXMLAttr >(), toString< SumoXMLEdgeFunc >(), toString< SumoXMLNodeType >(), toString< SumoXMLTag >(), and toString< TrafficLightType >().
|
inline |
Definition at line 115 of file StringBijection.h.
|
inline |
Definition at line 105 of file StringBijection.h.
Referenced by StringBijection< TrafficLightType >::getString().
|
inline |
Definition at line 100 of file StringBijection.h.
Referenced by StringBijection< TrafficLightType >::get(), and NWWriter_OpenDrive::getID().
|
inline |
Definition at line 75 of file StringBijection.h.
Referenced by NWWriter_OpenDrive::getID(), and StringBijection< TrafficLightType >::StringBijection().
|
inline |
Definition at line 110 of file StringBijection.h.
|
private |
Definition at line 126 of file StringBijection.h.
Referenced by StringBijection< TrafficLightType >::get(), StringBijection< TrafficLightType >::hasString(), StringBijection< TrafficLightType >::insert(), and StringBijection< TrafficLightType >::size().
|
private |
Definition at line 127 of file StringBijection.h.
Referenced by StringBijection< TrafficLightType >::getString(), StringBijection< TrafficLightType >::getStrings(), StringBijection< TrafficLightType >::has(), and StringBijection< TrafficLightType >::insert().