![]() |
SUMO - Simulation of Urban MObility
|
#include <StringBijection.h>
Data Structures | |
struct | Entry |
Public Member Functions | |
void | addAlias (const std::string str, const T key) |
void | addKeysInto (std::vector< T > &list) const |
T | get (const std::string &str) const |
const std::string & | getString (const T key) const |
std::vector< std::string > | getStrings () const |
bool | has (const T key) const |
bool | hasString (const std::string &str) const |
void | insert (const std::string str, const T key, bool checkDuplicates=true) |
void | remove (const std::string str, const T key) |
size_t | size () const |
StringBijection () | |
StringBijection (Entry entries[], T terminatorKey, bool checkDuplicates=true) | |
Private Attributes | |
std::map< std::string, T > | myString2T |
std::map< T, 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 52 of file StringBijection.h.
|
inline |
Definition at line 69 of file StringBijection.h.
|
inline |
Definition at line 72 of file StringBijection.h.
|
inline |
Definition at line 95 of file StringBijection.h.
Referenced by HelpersPHEMlight::getClassByName(), HelpersHBEFA::HelpersHBEFA(), and HelpersHBEFA3::HelpersHBEFA3().
|
inline |
Definition at line 150 of file StringBijection.h.
|
inline |
Definition at line 106 of file StringBijection.h.
Referenced by NIImporter_SUMO::addConnection(), NIImporter_SUMO::addEdge(), NBNodeCont::analyzeCluster(), SUMOVehicleParserHelper::beginVTypeParsing(), NIVisumTL::build(), NGNode::buildNBNode(), NBNetBuilder::compute(), HelpersHBEFA3::getClass(), HelpersPHEMlight::getClass(), HelpersPHEMlight::getClassByName(), SUMOSAXAttributesImpl_Xerces::getEdgeFunc(), PHEMCEP::GetEmission(), NWWriter_OpenDrive::getID(), SUMOSAXAttributesImpl_Xerces::getNodeType(), GNEInternalLane::getPopUpMenu(), GNELane::getPopUpMenu(), getVehicleClassCompoundID(), getVehicleClassID(), getVehicleClassNamesList(), getVehicleShapeID(), GNEChange_TLS::GNEChange_TLS(), NBNodeCont::guessTLs(), HelpersHBEFA::HelpersHBEFA(), HelpersHBEFA3::HelpersHBEFA3(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NLHandler::initTrafficLightLogic(), NIImporter_OpenStreetMap::insertNodeChecking(), NIImporter_OpenDrive::loadNetwork(), GNEViewNet::onCmdChangeMode(), NLHandler::parseLinkDir(), NLHandler::parseLinkState(), NIXMLNodesHandler::processNodeType(), NIXMLNodesHandler::processTrafficLightDefinitions(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), GNEJunction::setAttribute(), and NIXMLEdgesHandler::tryGetLaneSpread().
|
inline |
Definition at line 115 of file StringBijection.h.
Referenced by HelpersHBEFA3::getAmitranVehicleClass(), HelpersPHEMlight::getAmitranVehicleClass(), HelpersHBEFA3::getEuroClass(), HelpersPHEMlight::getEuroClass(), HelpersHBEFA3::getFuel(), HelpersPHEMlight::getFuel(), getVehicleShapeName(), HelpersPHEMlight::getWeight(), parseVehicleClasses(), GNEViewNet::setEditModeFromHotkey(), toString< LaneChangeModel >(), toString< LaneSpreadFunction >(), toString< LinkDirection >(), toString< LinkState >(), toString< SumoXMLAttr >(), toString< SumoXMLEdgeFunc >(), toString< SumoXMLNodeType >(), toString< SumoXMLTag >(), toString< TrafficLightType >(), and NBSign::writeAsPOI().
|
inline |
Definition at line 140 of file StringBijection.h.
Referenced by GNEViewNet::buildEditModeControls(), GNEAttributeCarrier::discreteChoices(), GNEInternalLane::getPopUpMenu(), GNELane::getPopUpMenu(), getVehicleClassCompoundID(), and getVehicleClassNamesList().
|
inline |
Definition at line 130 of file StringBijection.h.
Referenced by StringBijection< FXuint >::getString(), and StringBijection< FXuint >::insert().
|
inline |
Definition at line 125 of file StringBijection.h.
Referenced by canParseVehicleClasses(), StringBijection< FXuint >::get(), HelpersHBEFA3::getClass(), HelpersPHEMlight::getClass(), HelpersPHEMlight::getClassByName(), PHEMCEP::GetEmission(), NWWriter_OpenDrive::getID(), getVehicleClassID(), getVehicleShapeID(), StringBijection< FXuint >::insert(), GNEJunction::isValid(), and GNEEdge::isValid().
|
inline |
Definition at line 80 of file StringBijection.h.
Referenced by GNEViewNet::buildEditModeControls(), HelpersPHEMlight::getClassByName(), NWWriter_OpenDrive::getID(), HelpersHBEFA::HelpersHBEFA(), HelpersHBEFA3::HelpersHBEFA3(), HelpersPHEMlight::HelpersPHEMlight(), PHEMCEP::PHEMCEP(), and StringBijection< FXuint >::StringBijection().
|
inline |
Definition at line 100 of file StringBijection.h.
Referenced by HelpersPHEMlight::getClassByName().
|
inline |
Definition at line 135 of file StringBijection.h.
Referenced by GNEViewNet::buildEditModeControls(), SUMOSAXAttributesImpl_Binary::getEdgeFunc(), SUMOSAXAttributesImpl_Binary::getNodeType(), and writePermissions().
|
private |
Definition at line 159 of file StringBijection.h.
Referenced by StringBijection< FXuint >::addAlias(), StringBijection< FXuint >::get(), StringBijection< FXuint >::hasString(), StringBijection< FXuint >::insert(), StringBijection< FXuint >::remove(), and StringBijection< FXuint >::size().
|
private |