Eclipse SUMO - Simulation of Urban MObility
MSLane::StoringVisitor Class Reference

#include <MSLane.h>

Collaboration diagram for MSLane::StoringVisitor:
[legend]

Public Member Functions

void add (const MSLane *const l) const
 Adds the given object to the container. More...
 
 StoringVisitor (std::set< const Named * > &objects, const PositionVector &shape, const double range, const int domain)
 Constructor. More...
 

Private Member Functions

StoringVisitoroperator= (const StoringVisitor &src)
 invalidated assignment operator More...
 
 StoringVisitor (const StoringVisitor &src)
 invalidated copy constructor More...
 

Private Attributes

const int myDomain
 
std::set< const Named * > & myObjects
 The container. More...
 
const double myRange
 
const PositionVectormyShape
 

Detailed Description

Definition at line 86 of file MSLane.h.

Constructor & Destructor Documentation

◆ StoringVisitor() [1/2]

MSLane::StoringVisitor::StoringVisitor ( std::set< const Named * > &  objects,
const PositionVector shape,
const double  range,
const int  domain 
)
inline

Constructor.

Definition at line 89 of file MSLane.h.

◆ StoringVisitor() [2/2]

MSLane::StoringVisitor::StoringVisitor ( const StoringVisitor src)
private

invalidated copy constructor

Member Function Documentation

◆ add()

void MSLane::StoringVisitor::add ( const MSLane *const  l) const

Adds the given object to the container.

Definition at line 120 of file MSLane.cpp.

References libsumo::CMD_GET_EDGE_VARIABLE, libsumo::CMD_GET_LANE_VARIABLE, libsumo::CMD_GET_PERSON_VARIABLE, libsumo::CMD_GET_VEHICLE_VARIABLE, PositionVector::distance2D(), MSLane::getEdge(), MSNet::getInstance(), MSLane::getParkingVehicles(), MSLane::getShape(), MSEdge::getSortedPersons(), MSLane::getVehiclesSecure(), myDomain, myObjects, myRange, myShape, and MSLane::releaseVehicles().

Referenced by MSLane::visit().

Here is the caller graph for this function:

◆ operator=()

StoringVisitor& MSLane::StoringVisitor::operator= ( const StoringVisitor src)
private

invalidated assignment operator

Field Documentation

◆ myDomain

const int MSLane::StoringVisitor::myDomain
private

Definition at line 101 of file MSLane.h.

Referenced by add().

◆ myObjects

std::set<const Named*>& MSLane::StoringVisitor::myObjects
private

The container.

Definition at line 98 of file MSLane.h.

Referenced by add().

◆ myRange

const double MSLane::StoringVisitor::myRange
private

Definition at line 100 of file MSLane.h.

Referenced by add().

◆ myShape

const PositionVector& MSLane::StoringVisitor::myShape
private

Definition at line 99 of file MSLane.h.

Referenced by add().


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