Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEReferenceCounter.h>
Public Member Functions | |
void | decRef (const std::string &debugMsg="") |
Decrease reference. | |
virtual const std::string | getID () const =0 |
return ID of object | |
GNEReferenceCounter () | |
void | incRef (const std::string &debugMsg="") |
Increase reference. | |
bool | unreferenced () |
check if object ins't referenced | |
virtual | ~GNEReferenceCounter () |
Private Attributes | |
int | myCount |
reference counter | |
Definition at line 35 of file GNEReferenceCounter.h.
|
inline |
Definition at line 38 of file GNEReferenceCounter.h.
|
inlinevirtual |
Definition at line 44 of file GNEReferenceCounter.h.
References myCount, toString(), and WRITE_ERROR.
|
inline |
Decrease reference.
Definition at line 53 of file GNEReferenceCounter.h.
References getID(), myCount, toString(), UNUSED_PARAMETER, and WRITE_ERROR.
Referenced by GNENetHelper::AttributeCarriers::deleteSingleEdge(), GNENetHelper::AttributeCarriers::deleteSingleJunction(), GNEEdge::removeConnection(), GNEEdge::removeLane(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Children::~GNEChange_Children(), GNEChange_DataInterval::~GNEChange_DataInterval(), GNEChange_DataSet::~GNEChange_DataSet(), GNEChange_DemandElement::~GNEChange_DemandElement(), GNEChange_Distribution::~GNEChange_Distribution(), GNEChange_Edge::~GNEChange_Edge(), GNEChange_EdgeType::~GNEChange_EdgeType(), GNEChange_GenericData::~GNEChange_GenericData(), GNEChange_Junction::~GNEChange_Junction(), GNEChange_Lane::~GNEChange_Lane(), GNEChange_MeanData::~GNEChange_MeanData(), GNEChange_TLS::~GNEChange_TLS(), and GNEChange_ToggleAttribute::~GNEChange_ToggleAttribute().
|
pure virtual |
return ID of object
Implemented in GNEAttributeCarrier.
Referenced by decRef(), and incRef().
|
inline |
Increase reference.
Definition at line 68 of file GNEReferenceCounter.h.
References getID(), myCount, toString(), and UNUSED_PARAMETER.
Referenced by GNENetHelper::AttributeCarriers::addDefaultVTypes(), GNEEdge::addLane(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNERouteHandler::buildContainerStop(), GNEAdditionalHandler::buildContainerStop(), GNEDataHandler::buildDataInterval(), GNEDataHandler::buildDataSet(), GNEAdditionalHandler::buildDestProbReroute(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEDataHandler::buildEdgeData(), GNEMeanDataHandler::buildEdgeMeanData(), GNEDataHandler::buildEdgeRelationData(), GNERouteHandler::buildEmbeddedRoute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNEAdditionalHandler::buildJpsObstacle(), GNEAdditionalHandler::buildJpsWalkableArea(), GNEAdditionalHandler::buildLaneCalibrator(), GNEMeanDataHandler::buildLaneMeanData(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingAreaReroute(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRide(), GNERouteHandler::buildRoute(), GNERouteHandler::buildRouteDistribution(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEDataHandler::buildTAZRelationData(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVType(), GNERouteHandler::buildVTypeDistribution(), GNERouteHandler::buildWalk(), GNEChange_Attribute::GNEChange_Attribute(), GNEChange_Attribute::GNEChange_Attribute(), GNEChange_Distribution::GNEChange_Distribution(), GNEChange_Distribution::GNEChange_Distribution(), GNEChange_Lane::GNEChange_Lane(), GNEChange_TLS::GNEChange_TLS(), GNEChange_TLS::GNEChange_TLS(), GNEJunction::rebuildGNECrossings(), GNEJunction::rebuildGNEWalkingAreas(), GNENetHelper::AttributeCarriers::registerEdge(), GNENetHelper::AttributeCarriers::registerEdgeType(), GNENetHelper::AttributeCarriers::registerJunction(), and GNEEdge::remakeGNEConnections().
|
inline |
check if object ins't referenced
Definition at line 79 of file GNEReferenceCounter.h.
References myCount.
Referenced by GNEEdge::removeConnection(), GNEEdge::removeLane(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Children::~GNEChange_Children(), GNEChange_DataInterval::~GNEChange_DataInterval(), GNEChange_DataSet::~GNEChange_DataSet(), GNEChange_DemandElement::~GNEChange_DemandElement(), GNEChange_Distribution::~GNEChange_Distribution(), GNEChange_Edge::~GNEChange_Edge(), GNEChange_EdgeType::~GNEChange_EdgeType(), GNEChange_GenericData::~GNEChange_GenericData(), GNEChange_Junction::~GNEChange_Junction(), GNEChange_Lane::~GNEChange_Lane(), GNEChange_MeanData::~GNEChange_MeanData(), GNEChange_TLS::~GNEChange_TLS(), and GNEChange_ToggleAttribute::~GNEChange_ToggleAttribute().
|
private |
reference counter
Definition at line 85 of file GNEReferenceCounter.h.
Referenced by decRef(), incRef(), unreferenced(), and ~GNEReferenceCounter().