SUMO - Simulation of Urban MObility
GNEChange_Edge Class Reference

#include <GNEChange_Edge.h>

Inheritance diagram for GNEChange_Edge:
Inheritance graph
Collaboration diagram for GNEChange_Edge:
Collaboration graph

Public Member Functions

 GNEChange_Edge (GNEEdge *edge, bool forward)
 Constructor for creating/deleting an edge. More...
 
virtual FXuint size () const
 return actual size More...
 
 ~GNEChange_Edge ()
 Destructor. More...
 
inherited from GNEChange

get undo Name

FXString undoName () const
 return undoName More...
 
FXString redoName () const
 get Redo name More...
 
void undo ()
 undo action More...
 
void redo ()
 redo action More...
 

Protected Attributes

bool myForward
 we group antagonistic commands (create junction/delete junction) and keep them apart by this flag More...
 
GNENetmyNet
 the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer) More...
 

Private Attributes

std::vector< GNEAdditional * > myAdditionalChilds
 we need to preserve the list of additionals vinculated with this edge More...
 
std::map< GNELane *, std::vector< GNEAdditional * > > myAdditionalLanes
 we need to preserve additional vinculated with the lanes of edge More...
 
std::map< GNELane *, std::vector< GNEAdditional * > > myAdditionalsLanes
 we need to preserve the additional sets in which the edge of lanes are childs More...
 
GNEEdgemyEdge
 full information regarding the edge that is to be created/deleted More...
 
std::vector< GNERerouter * > myGNERerouters
 we need to preserve the list of rerouters in which this edge is a child More...
 

Detailed Description

A network change in which a single edge is created or deleted

Definition at line 55 of file GNEChange_Edge.h.

Constructor & Destructor Documentation

◆ GNEChange_Edge()

GNEChange_Edge::GNEChange_Edge ( GNEEdge edge,
bool  forward 
)

Constructor for creating/deleting an edge.

constructor for creating an edge

Parameters
[in]edgeThe edge to be created/deleted
[in]forwardWhether to create/delete (true/false)

Definition at line 51 of file GNEChange_Edge.cpp.

◆ ~GNEChange_Edge()

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange_Edge::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 159 of file GNEChange_Edge.cpp.

References GNEChange::myForward, SUMO_TAG_EDGE, and toString().

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 53 of file GNEChange.cpp.

◆ undo()

◆ undoName()

FXString GNEChange_Edge::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 149 of file GNEChange_Edge.cpp.

References GNEChange::myForward, SUMO_TAG_EDGE, and toString().

Field Documentation

◆ myAdditionalChilds

std::vector<GNEAdditional*> GNEChange_Edge::myAdditionalChilds
private

we need to preserve the list of additionals vinculated with this edge

Definition at line 92 of file GNEChange_Edge.h.

Referenced by redo(), and undo().

◆ myAdditionalLanes

std::map<GNELane*, std::vector<GNEAdditional*> > GNEChange_Edge::myAdditionalLanes
private

we need to preserve additional vinculated with the lanes of edge

Definition at line 98 of file GNEChange_Edge.h.

◆ myAdditionalsLanes

std::map<GNELane*, std::vector<GNEAdditional*> > GNEChange_Edge::myAdditionalsLanes
private

we need to preserve the additional sets in which the edge of lanes are childs

Definition at line 101 of file GNEChange_Edge.h.

◆ myEdge

GNEEdge* GNEChange_Edge::myEdge
private

full information regarding the edge that is to be created/deleted

Note
we assume shared responsibility for the pointer (via reference counting)

Definition at line 89 of file GNEChange_Edge.h.

Referenced by redo(), undo(), and ~GNEChange_Edge().

◆ myForward

◆ myGNERerouters

std::vector<GNERerouter*> GNEChange_Edge::myGNERerouters
private

we need to preserve the list of rerouters in which this edge is a child

Definition at line 95 of file GNEChange_Edge.h.

Referenced by redo(), and undo().

◆ myNet


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