Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEReferenceCounter Class Referenceabstract

#include <GNEReferenceCounter.h>

Inheritance diagram for GNEReferenceCounter:
[legend]

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
 

Detailed Description

Definition at line 35 of file GNEReferenceCounter.h.

Constructor & Destructor Documentation

◆ GNEReferenceCounter()

GNEReferenceCounter::GNEReferenceCounter ( )
inline

Definition at line 38 of file GNEReferenceCounter.h.

◆ ~GNEReferenceCounter()

virtual GNEReferenceCounter::~GNEReferenceCounter ( )
inlinevirtual

Definition at line 44 of file GNEReferenceCounter.h.

References myCount, toString(), and WRITE_ERROR.

Member Function Documentation

◆ decRef()

◆ getID()

virtual const std::string GNEReferenceCounter::getID ( ) const
pure virtual

return ID of object

Implemented in GNEAttributeCarrier.

Referenced by decRef(), and incRef().

Here is the caller graph for this function:

◆ incRef()

void GNEReferenceCounter::incRef ( const std::string &  debugMsg = "")
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().

◆ unreferenced()

Field Documentation

◆ myCount

int GNEReferenceCounter::myCount
private

reference counter

Definition at line 85 of file GNEReferenceCounter.h.

Referenced by decRef(), incRef(), unreferenced(), and ~GNEReferenceCounter().


The documentation for this class was generated from the following file: