![]() |
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) |
int | 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 45 of file StringBijection.h.
|
inline |
Definition at line 62 of file StringBijection.h.
|
inline |
Definition at line 65 of file StringBijection.h.
|
inline |
Definition at line 88 of file StringBijection.h.
Referenced by HelpersPHEMlight::getClassByName(), HelpersHBEFA::HelpersHBEFA(), and HelpersHBEFA3::HelpersHBEFA3().
|
inline |
Definition at line 143 of file StringBijection.h.
|
inline |
Definition at line 99 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_Cached::getEdgeFunc(), SUMOSAXAttributesImpl_Xerces::getEdgeFunc(), PHEMCEP::GetEmission(), NWWriter_OpenDrive::getID(), SUMOSAXAttributesImpl_Cached::getNodeType(), SUMOSAXAttributesImpl_Xerces::getNodeType(), GNEInternalLane::getPopUpMenu(), GNELane::getPopUpMenu(), SUMOSAXAttributesImpl_Cached::getRightOfWay(), SUMOSAXAttributesImpl_Xerces::getRightOfWay(), SUMOSAXAttributesImpl_Binary::getRightOfWay(), getVehicleClassCompoundID(), getVehicleClassID(), getVehicleClassNamesList(), getVehicleShapeID(), NBNodeCont::guessTLs(), HelpersHBEFA::HelpersHBEFA(), HelpersHBEFA3::HelpersHBEFA3(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NLHandler::initTrafficLightLogic(), NIImporter_OpenStreetMap::insertNodeChecking(), NIImporter_OpenDrive::loadNetwork(), NLHandler::parseLinkDir(), NLHandler::parseLinkState(), NIXMLNodesHandler::processNodeType(), NIXMLNodesHandler::processTrafficLightDefinitions(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), GNEJunction::setAttribute(), SUMOVTypeParameter::SUMOVTypeParameter(), NIXMLEdgesHandler::tryGetLaneSpread(), and NBNodeTypeComputer::validateRailCrossings().
|
inline |
Definition at line 108 of file StringBijection.h.
Referenced by GUIGlObject::createFullName(), HelpersHBEFA3::getAmitranVehicleClass(), HelpersPHEMlight::getAmitranVehicleClass(), GNEJunction::getAttribute(), HelpersHBEFA3::getEuroClass(), HelpersPHEMlight::getEuroClass(), HelpersHBEFA3::getFuel(), HelpersPHEMlight::getFuel(), libsumo::Lane::getLinks(), getVehicleShapeName(), HelpersPHEMlight::getWeight(), GNESelectorFrame::SelectionOperation::onCmdSave(), parseVehicleClasses(), toString< LaneChangeModel >(), toString< LaneSpreadFunction >(), toString< LateralAlignment >(), toString< LinkDirection >(), toString< LinkState >(), toString< RightOfWay >(), toString< SumoXMLAttr >(), toString< SumoXMLEdgeFunc >(), toString< SumoXMLNodeType >(), toString< SumoXMLTag >(), toString< TrafficLightType >(), and NBSign::writeAsPOI().
|
inline |
Definition at line 133 of file StringBijection.h.
Referenced by GNEAttributeCarrier::fillAttributeCarriers(), GNEInternalLane::getPopUpMenu(), GNELane::getPopUpMenu(), getVehicleClassCompoundID(), getVehicleClassNamesList(), and toString< LaneChangeAction >().
|
inline |
Definition at line 123 of file StringBijection.h.
Referenced by StringBijection< FXuint >::getString(), and StringBijection< FXuint >::insert().
|
inline |
Definition at line 118 of file StringBijection.h.
Referenced by canParseVehicleClasses(), canParseVehicleShape(), NBFrame::checkOptions(), StringBijection< FXuint >::get(), HelpersHBEFA3::getClass(), HelpersPHEMlight::getClass(), HelpersPHEMlight::getClassByName(), PHEMCEP::GetEmission(), NWWriter_OpenDrive::getID(), getVehicleClassID(), getVehicleShapeID(), StringBijection< FXuint >::insert(), GNECalibratorFlow::isValid(), GNECalibratorVehicleType::isValid(), GNEJunction::isValid(), GNEEdge::isValid(), and parseVehicleClasses().
|
inline |
Definition at line 73 of file StringBijection.h.
Referenced by HelpersPHEMlight::getClassByName(), NWWriter_OpenDrive::getID(), HelpersEnergy::HelpersEnergy(), HelpersHBEFA::HelpersHBEFA(), HelpersHBEFA3::HelpersHBEFA3(), HelpersPHEMlight::HelpersPHEMlight(), PHEMCEP::PHEMCEP(), and StringBijection< FXuint >::StringBijection().
|
inline |
Definition at line 93 of file StringBijection.h.
Referenced by HelpersPHEMlight::getClassByName().
|
inline |
Definition at line 128 of file StringBijection.h.
Referenced by SUMOSAXAttributesImpl_Binary::getEdgeFunc(), SUMOSAXAttributesImpl_Binary::getNodeType(), and writePermissions().
|
private |
Definition at line 152 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 |