![]() |
Eclipse 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 43 of file StringBijection.h.
|
inline |
Definition at line 60 of file StringBijection.h.
|
inline |
Definition at line 63 of file StringBijection.h.
|
inline |
Definition at line 86 of file StringBijection.h.
Referenced by HelpersPHEMlight::getClassByName(), HelpersHBEFA::HelpersHBEFA(), and HelpersHBEFA3::HelpersHBEFA3().
|
inline |
Definition at line 141 of file StringBijection.h.
Referenced by PollutantsInterface::Helper::addAllClassesInto().
|
inline |
Definition at line 97 of file StringBijection.h.
Referenced by NIImporter_SUMO::addConnection(), NIImporter_SUMO::addEdge(), NLHandler::addEdgeLaneMeanData(), NBNodeCont::analyzeCluster(), SUMOVehicleParserHelper::beginVTypeParsing(), NIVisumTL::build(), NGNode::buildNBNode(), NBNetBuilder::compute(), HelpersHBEFA3::getClass(), HelpersPHEMlight::getClass(), HelpersPHEMlight::getClassByName(), PollutantsInterface::Helper::getClassByName(), SUMOSAXAttributesImpl_Cached::getEdgeFunc(), SUMOSAXAttributesImpl_Xerces::getEdgeFunc(), PHEMCEP::GetEmission(), SUMOSAXAttributesImpl_Cached::getFringeType(), SUMOSAXAttributesImpl_Binary::getFringeType(), SUMOSAXAttributesImpl_Xerces::getFringeType(), NWWriter_OpenDrive::getID(), SUMOSAXAttributesImpl_Cached::getNodeType(), SUMOSAXAttributesImpl_Xerces::getNodeType(), GNEInternalLane::getPopUpMenu(), GNELane::getPopUpMenu(), SUMOSAXAttributesImpl_Cached::getRightOfWay(), SUMOSAXAttributesImpl_Binary::getRightOfWay(), SUMOSAXAttributesImpl_Xerces::getRightOfWay(), NBNodeCont::guessTLs(), HelpersHBEFA::HelpersHBEFA(), HelpersHBEFA3::HelpersHBEFA3(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NLHandler::initTrafficLightLogic(), NIImporter_OpenStreetMap::insertNodeChecking(), NIImporter_VISUM::loadLanguage(), NIImporter_OpenDrive::loadNetwork(), RONetHandler::parseConnection(), NLHandler::parseLinkDir(), NLHandler::parseLinkState(), NIXMLNodesHandler::processNodeType(), NIXMLNodesHandler::processTrafficLightDefinitions(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), GNEVehicleType::setAttribute(), GNEJunction::setAttribute(), SUMOVTypeParameter::SUMOVTypeParameter(), NIXMLEdgesHandler::tryGetLaneSpread(), and NBNodeTypeComputer::validateRailCrossings().
|
inline |
Definition at line 106 of file StringBijection.h.
Referenced by GUIGlObject::createFullName(), HelpersHBEFA3::getAmitranVehicleClass(), HelpersPHEMlight::getAmitranVehicleClass(), GNEVehicleType::getAttribute(), GNEJunction::getAttribute(), PollutantsInterface::Helper::getClassName(), HelpersHBEFA3::getEuroClass(), HelpersPHEMlight::getEuroClass(), HelpersHBEFA3::getFuel(), HelpersPHEMlight::getFuel(), libsumo::Lane::getLinks(), NIImporter_VISUM::getPermissions(), HelpersPHEMlight::getWeight(), NIImporter_VISUM::NIImporter_VISUM(), GNESelectorFrame::SelectionOperation::onCmdSave(), NIImporter_VISUM::parse_AreaSubPartElement(), NIImporter_VISUM::parse_Connectors(), NIImporter_VISUM::parse_Connectors_legacy(), NIImporter_VISUM::parse_Districts(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Edges(), NIImporter_VISUM::parse_Kante(), NIImporter_VISUM::parse_Nodes(), NIImporter_VISUM::parse_PartOfArea(), NIImporter_VISUM::parse_Phases(), NIImporter_VISUM::parse_Point(), NIImporter_VISUM::parse_SignalGroups(), NIImporter_VISUM::parse_TrafficLights(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_Types(), NIImporter_VISUM::parse_VSysTypes(), toString< FringeType >(), toString< LaneChangeModel >(), toString< LaneSpreadFunction >(), toString< LateralAlignment >(), toString< LinkDirection >(), toString< LinkState >(), toString< PersonMode >(), toString< RightOfWay >(), toString< SumoXMLAttr >(), toString< SumoXMLEdgeFunc >(), toString< SumoXMLNodeType >(), toString< SumoXMLTag >(), toString< TrafficLightType >(), and NBSign::writeAsPOI().
|
inline |
Definition at line 131 of file StringBijection.h.
Referenced by GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelParameters(), GNEAttributeCarrier::fillNetElements(), GNEInternalLane::getPopUpMenu(), GNELane::getPopUpMenu(), and toString< LaneChangeAction >().
|
inline |
Definition at line 121 of file StringBijection.h.
Referenced by StringBijection< FXuint >::getString(), and StringBijection< FXuint >::insert().
|
inline |
Definition at line 116 of file StringBijection.h.
Referenced by NBFrame::checkOptions(), StringBijection< FXuint >::get(), HelpersHBEFA3::getClass(), HelpersPHEMlight::getClass(), HelpersPHEMlight::getClassByName(), PollutantsInterface::Helper::getClassByName(), PHEMCEP::GetEmission(), NWWriter_OpenDrive::getID(), StringBijection< FXuint >::insert(), GNECalibratorFlow::isValid(), GNEVehicleType::isValid(), GNEJunction::isValid(), GNEEdge::isValid(), and NIImporter_VISUM::loadLanguage().
|
inline |
Definition at line 71 of file StringBijection.h.
Referenced by HelpersPHEMlight::getClassByName(), NWWriter_OpenDrive::getID(), HelpersEnergy::HelpersEnergy(), HelpersHBEFA::HelpersHBEFA(), HelpersHBEFA3::HelpersHBEFA3(), HelpersPHEMlight::HelpersPHEMlight(), NIImporter_VISUM::loadLanguage(), PHEMCEP::PHEMCEP(), and StringBijection< FXuint >::StringBijection().
|
inline |
Definition at line 91 of file StringBijection.h.
Referenced by HelpersPHEMlight::getClassByName(), and NIImporter_VISUM::loadLanguage().
|
inline |
Definition at line 126 of file StringBijection.h.
Referenced by SUMOSAXAttributesImpl_Binary::getEdgeFunc(), and SUMOSAXAttributesImpl_Binary::getNodeType().
|
private |
Definition at line 150 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 |