![]() |
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 40 of file StringBijection.h.
|
inline |
Definition at line 57 of file StringBijection.h.
|
inline |
Definition at line 60 of file StringBijection.h.
References StringBijection< T >::insert().
|
inline |
Definition at line 83 of file StringBijection.h.
References StringBijection< T >::myString2T.
Referenced by HelpersPHEMlight::getClassByName(), PollutantsInterface::Helper::Helper(), HelpersHBEFA::HelpersHBEFA(), and HelpersHBEFA3::HelpersHBEFA3().
|
inline |
Definition at line 138 of file StringBijection.h.
References StringBijection< T >::myT2String.
Referenced by PollutantsInterface::Helper::addAllClassesInto().
|
inline |
Definition at line 94 of file StringBijection.h.
References StringBijection< T >::hasString(), and StringBijection< T >::myString2T.
Referenced by NIImporter_SUMO::addConnection(), NIImporter_SUMO::addEdge(), NIXMLEdgesHandler::addEdge(), NBNodeCont::analyzeCluster(), SUMOVehicleParserHelper::beginVTypeParsing(), NIVisumTL::build(), NGNode::buildNBNode(), NBNetBuilder::compute(), NBOwnTLDef::computeLogicAndConts(), HelpersHBEFA3::getClass(), HelpersPHEMlight::getClass(), HelpersPHEMlight::getClassByName(), PollutantsInterface::Helper::getClassByName(), SUMOSAXAttributesImpl_Cached::getEdgeFunc(), SUMOSAXAttributesImpl_Xerces::getEdgeFunc(), PHEMCEP::GetEmission(), SUMOSAXAttributesImpl_Cached::getFringeType(), SUMOSAXAttributesImpl_Xerces::getFringeType(), NWWriter_OpenDrive::getID(), SUMOSAXAttributesImpl_Cached::getNodeType(), SUMOSAXAttributesImpl_Xerces::getNodeType(), GNEInternalLane::getPopUpMenu(), GNELane::getPopUpMenu(), SUMOSAXAttributesImpl_Cached::getRightOfWay(), SUMOSAXAttributesImpl_Xerces::getRightOfWay(), NIImporter_OpenDrive::getTLSSecure(), NBNodeCont::guessTLs(), HelpersHBEFA::HelpersHBEFA(), HelpersHBEFA3::HelpersHBEFA3(), NLHandler::initTrafficLightLogic(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), MSMeanData::initWrittenAttributes(), NIImporter_OpenStreetMap::insertNodeChecking(), MSDispatch_TraCI::interpretDispatch(), NIImporter_VISUM::loadLanguage(), RONetHandler::parseConnection(), NLHandler::parseLinkDir(), NLHandler::parseLinkState(), NIXMLNodesHandler::processNodeType(), NIXMLNodesHandler::processTrafficLightDefinitions(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), GNEVehicleType::setAttribute(), GNEJunction::setAttribute(), SUMOVTypeParameter::SUMOVTypeParameter(), NIXMLEdgesHandler::tryGetLaneSpread(), NBNodeTypeComputer::validateRailCrossings(), and NWWriter_XML::writeEdgesAndConnections().
|
inline |
Definition at line 103 of file StringBijection.h.
References StringBijection< T >::has(), and StringBijection< T >::myT2String.
Referenced by GUIGlObject::createFullName(), HelpersHBEFA3::getAmitranVehicleClass(), HelpersPHEMlight::getAmitranVehicleClass(), GNEVehicleType::getAttribute(), GNEJunction::getAttribute(), PollutantsInterface::Helper::getClassName(), HelpersHBEFA3::getEuroClass(), HelpersPHEMlight::getEuroClass(), HelpersHBEFA3::getFuel(), HelpersPHEMlight::getFuel(), LIBSUMO_NAMESPACE::Lane::getLinks(), NIImporter_VISUM::getPermissions(), MSDispatch_TraCI::getReservationID(), 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< TrafficLightLayout >(), toString< TrafficLightType >(), and NBSign::writeAsPOI().
|
inline |
Definition at line 128 of file StringBijection.h.
References StringBijection< T >::myT2String.
Referenced by GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelParameters(), GNEAttributeCarrier::fillNetworkElements(), GNEInternalLane::getPopUpMenu(), GNELane::getPopUpMenu(), and toString< LaneChangeAction >().
|
inline |
Definition at line 118 of file StringBijection.h.
References StringBijection< T >::myT2String.
Referenced by MSDispatch_TraCI::addReservation(), MSDispatch_TraCI::getReservationID(), StringBijection< T >::getString(), and StringBijection< T >::insert().
|
inline |
Definition at line 113 of file StringBijection.h.
References StringBijection< T >::myString2T.
Referenced by NBFrame::checkOptions(), StringBijection< T >::get(), HelpersHBEFA3::getClass(), HelpersPHEMlight::getClass(), HelpersPHEMlight::getClassByName(), PollutantsInterface::Helper::getClassByName(), PHEMCEP::GetEmission(), NWWriter_OpenDrive::getID(), StringBijection< T >::insert(), MSDispatch_TraCI::interpretDispatch(), GNECalibratorFlow::isValid(), GNEVehicleType::isValid(), GNEEdge::isValid(), GNEJunction::isValid(), and NIImporter_VISUM::loadLanguage().
|
inline |
Definition at line 68 of file StringBijection.h.
References StringBijection< T >::has(), StringBijection< T >::hasString(), StringBijection< T >::myString2T, and StringBijection< T >::myT2String.
Referenced by MSDispatch_TraCI::addReservation(), HelpersPHEMlight::getClassByName(), NWWriter_OpenDrive::getID(), PollutantsInterface::Helper::Helper(), HelpersHBEFA::HelpersHBEFA(), HelpersHBEFA3::HelpersHBEFA3(), NIImporter_VISUM::loadLanguage(), PHEMCEP::PHEMCEP(), and StringBijection< T >::StringBijection().
|
inline |
Definition at line 88 of file StringBijection.h.
References StringBijection< T >::myString2T, and StringBijection< T >::myT2String.
Referenced by HelpersPHEMlight::getClassByName(), and NIImporter_VISUM::loadLanguage().
|
inline |
Definition at line 123 of file StringBijection.h.
References StringBijection< T >::myString2T.
|
private |
Definition at line 147 of file StringBijection.h.
Referenced by StringBijection< T >::addAlias(), StringBijection< T >::get(), StringBijection< T >::hasString(), StringBijection< T >::insert(), StringBijection< T >::remove(), and StringBijection< T >::size().
|
private |
Definition at line 148 of file StringBijection.h.
Referenced by StringBijection< T >::addKeysInto(), StringBijection< T >::getString(), StringBijection< T >::getStrings(), StringBijection< T >::has(), StringBijection< T >::insert(), and StringBijection< T >::remove().