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 |
std::vector< T > | getValues () 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 41 of file StringBijection.h.
|
inline |
Definition at line 58 of file StringBijection.h.
|
inline |
Definition at line 61 of file StringBijection.h.
References StringBijection< T >::insert().
|
inline |
Definition at line 84 of file StringBijection.h.
References StringBijection< T >::myString2T.
Referenced by HelpersPHEMlight::getClassByName(), HelpersPHEMlight5::getClassByName(), PollutantsInterface::Helper::Helper(), HelpersHBEFA::HelpersHBEFA(), HelpersHBEFA3::HelpersHBEFA3(), and HelpersHBEFA4::HelpersHBEFA4().
|
inline |
Definition at line 147 of file StringBijection.h.
References StringBijection< T >::myT2String.
|
inline |
Definition at line 95 of file StringBijection.h.
References StringBijection< T >::hasString(), and StringBijection< T >::myString2T.
Referenced by NIImporter_SUMO::addConnection(), NIImporter_SUMO::addEdge(), NIXMLEdgesHandler::addEdge(), NBNodeCont::analyzeCluster(), NBNetBuilder::applyOptions(), SUMOVehicleParserHelper::beginVTypeParsing(), NIVisumTL::build(), NGNode::buildNBNode(), NBNetBuilder::compute(), NBOwnTLDef::computeLogicAndConts(), NBTrafficLightLogicCont::computeLogics(), SUMOSAXAttributes::fromString(), HelpersHBEFA3::getClass(), HelpersHBEFA4::getClass(), HelpersPHEMlight::getClass(), HelpersPHEMlight::getClassByName(), HelpersPHEMlight5::getClassByName(), PHEMCEP::GetEmission(), NWWriter_OpenDrive::getID(), GNEInternalLane::getPopUpMenu(), GNELane::getPopUpMenu(), NIImporter_OpenDrive::getTLSSecure(), GNEChange_TLS::GNEChange_TLS(), NBNodeCont::guessTLs(), HelpersHBEFA::HelpersHBEFA(), HelpersHBEFA3::HelpersHBEFA3(), HelpersHBEFA4::HelpersHBEFA4(), NLHandler::initTrafficLightLogic(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NIImporter_OpenStreetMap::insertNodeChecking(), MSDispatch_TraCI::interpretDispatch(), NBNodeCont::joinNodeCluster(), NIImporter_VISUM::loadLanguage(), PCLoaderVisum::loadLanguage(), NIXMLTypesHandler::myStartElement(), RONetHandler::parseConnection(), NLHandler::parseLinkDir(), NLHandler::parseLinkState(), NIXMLNodesHandler::processNodeType(), NIXMLNodesHandler::processTrafficLightDefinitions(), MSDispatch_TraCI::removeReservation(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), GNEVType::setAttribute(), GNEEdgeType::setAttribute(), GNEJunction::setAttribute(), PointOfInterest::setIcon(), MSDispatch_TraCI::splitReservation(), SUMOVTypeParameter::SUMOVTypeParameter(), NIXMLEdgesHandler::tryGetLaneSpread(), NBNodeTypeComputer::validateRailCrossings(), NWWriter_XML::writeEdgesAndConnections(), and NWWriter_XML::writeNodes().
|
inline |
Definition at line 104 of file StringBijection.h.
References StringBijection< T >::has(), and StringBijection< T >::myT2String.
Referenced by GUIGlObject::createFullName(), HelpersHBEFA3::getAmitranVehicleClass(), HelpersHBEFA4::getAmitranVehicleClass(), HelpersPHEMlight::getAmitranVehicleClass(), GNEVType::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), HelpersHBEFA3::getEuroClass(), HelpersHBEFA4::getEuroClass(), HelpersPHEMlight::getEuroClass(), HelpersHBEFA3::getFuel(), HelpersHBEFA4::getFuel(), HelpersPHEMlight::getFuel(), HelpersPHEMlight5::getFuel(), PointOfInterest::getIconStr(), SUMOVehicleParameter::getInsertionChecks(), LIBSUMO_NAMESPACE::Lane::getLinks(), LIBSUMO_NAMESPACE::Vehicle::getNextLinks(), NIImporter_VISUM::getPermissions(), HelpersPHEMlight::getWeight(), PCLoaderVisum::load(), GNESelectorFrame::SelectionOperation::loadFromFile(), 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_Lanes(), NIImporter_VISUM::parse_Nodes(), NIImporter_VISUM::parse_PartOfArea(), NIImporter_VISUM::parse_Phases(), NIImporter_VISUM::parse_Point(), NIImporter_VISUM::parse_SignalGroups(), NIImporter_VISUM::parse_stopPoints(), NIImporter_VISUM::parse_TrafficLights(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_Types(), NIImporter_VISUM::parse_VSysTypes(), AdditionalHandler::parsePOIAttributes(), toString< FringeType >(), toString< InsertionCheck >(), toString< LaneChangeModel >(), toString< LaneSpreadFunction >(), toString< LinkDirection >(), toString< LinkState >(), toString< ParkingType >(), toString< PersonMode >(), toString< RightOfWay >(), toString< SumoXMLEdgeFunc >(), toString< SumoXMLNodeType >(), toString< TrafficLightLayout >(), toString< TrafficLightType >(), NBSign::writeAsPOI(), MSDriveWay::writeBlockVehicles(), GNEDetector::writeDetectorValues(), and NIImporter_OpenDrive::writeRoadObjects().
|
inline |
Definition at line 129 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 138 of file StringBijection.h.
References StringBijection< T >::myT2String.
Referenced by SUMOVehicleParameter::getInsertionChecks(), GNEAttributesCreatorRow::refreshRow(), GNEAttributesEditorRow::showValueComboBox(), and SUMOVehicleParameter::write().
|
inline |
Definition at line 119 of file StringBijection.h.
References StringBijection< T >::myT2String.
Referenced by MSDispatch_TraCI::addReservation(), StringBijection< T >::getString(), and StringBijection< T >::insert().
|
inline |
Definition at line 114 of file StringBijection.h.
References StringBijection< T >::myString2T.
Referenced by AdditionalHandler::checkDetectPersons(), NBFrame::checkOptions(), StringBijection< T >::get(), HelpersHBEFA3::getClass(), HelpersHBEFA4::getClass(), HelpersPHEMlight::getClass(), HelpersPHEMlight::getClassByName(), HelpersPHEMlight5::getClassByName(), PHEMCEP::GetEmission(), NWWriter_OpenDrive::getID(), StringBijection< T >::insert(), MSDispatch_TraCI::interpretDispatch(), GNEDetector::isDetectorValid(), GNEMultiEntryExitDetector::isValid(), GNEVType::isValid(), GNEEdge::isValid(), GNEEdgeType::isValid(), GNEJunction::isValid(), GNEPOI::isValid(), NIImporter_VISUM::loadLanguage(), PCLoaderVisum::loadLanguage(), MSDispatch_TraCI::removeReservation(), and MSDispatch_TraCI::splitReservation().
|
inline |
Definition at line 69 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(), HelpersPHEMlight5::getClassByName(), NWWriter_OpenDrive::getID(), PollutantsInterface::Helper::Helper(), HelpersHBEFA::HelpersHBEFA(), HelpersHBEFA3::HelpersHBEFA3(), HelpersHBEFA4::HelpersHBEFA4(), NIImporter_VISUM::loadLanguage(), PCLoaderVisum::loadLanguage(), PHEMCEP::PHEMCEP(), MSDispatch_TraCI::splitReservation(), and StringBijection< T >::StringBijection().
|
inline |
Definition at line 89 of file StringBijection.h.
References StringBijection< T >::myString2T, and StringBijection< T >::myT2String.
Referenced by MSDispatch_TraCI::fulfilledReservation(), HelpersPHEMlight::getClassByName(), NIImporter_VISUM::loadLanguage(), PCLoaderVisum::loadLanguage(), and MSDispatch_TraCI::removeReservation().
|
inline |
Definition at line 124 of file StringBijection.h.
References StringBijection< T >::myString2T.
|
private |
Definition at line 156 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 157 of file StringBijection.h.
Referenced by StringBijection< T >::addKeysInto(), StringBijection< T >::getString(), StringBijection< T >::getStrings(), StringBijection< T >::getValues(), StringBijection< T >::has(), StringBijection< T >::insert(), and StringBijection< T >::remove().