Eclipse SUMO - Simulation of Urban MObility
GNEChange_Edge Class Reference

#include <GNEChange_Edge.h>

Inheritance diagram for GNEChange_Edge:
Collaboration diagram for GNEChange_Edge:

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

const std::vector< GNEAdditional * > & myChildEdgeAdditionals
 reference to vector of child additional More...
 
const std::vector< GNEDemandElement * > & myChildEdgeDemandElements
 vector of references to vector of child demand elements (used by lanes) More...
 
const std::vector< GNEShape * > & myChildEdgeShapes
 reference to vector of child shapes More...
 
std::vector< std::vector< GNEAdditional * > > myChildLaneAdditionals
 vector of references to vector of child additional (used by lanes) More...
 
std::vector< std::vector< GNEDemandElement * > > myChildLaneDemandElements
 vector of references to vector of child demand elements (used by lanes) More...
 
std::vector< std::vector< GNEShape * > > myChildLaneShapes
 vector of references to vector of child shapes (used by lanes) More...
 
GNEEdgemyEdge
 full information regarding the edge that is to be created/deleted More...
 
const std::vector< GNEAdditional * > & myEdgeParentAdditionals
 reference to vector of parent additionals More...
 
const std::vector< GNEDemandElement * > & myEdgeParentDemandElements
 reference to vector of parent demand elements More...
 
const std::vector< GNEShape * > & myEdgeParentShapes
 reference to vector of parent shapes More...
 
std::vector< std::vector< GNEAdditional * > > myLaneParentAdditionals
 vector of references to vector of parent additionals (used by lanes) More...
 
std::vector< std::vector< GNEDemandElement * > > myLaneParentDemandElements
 vector of references to vector of parent demand elements (used by lanes) More...
 
std::vector< std::vector< GNEShape * > > myLaneParentShapes
 vector of references to vector of parent shapes (used by lanes) More...
 

Detailed Description

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

Definition at line 47 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 43 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 296 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 44 of file GNEChange.cpp.

◆ undo()

◆ undoName()

FXString GNEChange_Edge::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 286 of file GNEChange_Edge.cpp.

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

Field Documentation

◆ myChildEdgeAdditionals

const std::vector<GNEAdditional*>& GNEChange_Edge::myChildEdgeAdditionals
private

reference to vector of child additional

Definition at line 96 of file GNEChange_Edge.h.

Referenced by redo(), and undo().

◆ myChildEdgeDemandElements

const std::vector<GNEDemandElement*>& GNEChange_Edge::myChildEdgeDemandElements
private

vector of references to vector of child demand elements (used by lanes)

Definition at line 99 of file GNEChange_Edge.h.

Referenced by redo(), and undo().

◆ myChildEdgeShapes

const std::vector<GNEShape*>& GNEChange_Edge::myChildEdgeShapes
private

reference to vector of child shapes

Definition at line 93 of file GNEChange_Edge.h.

Referenced by redo(), and undo().

◆ myChildLaneAdditionals

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

vector of references to vector of child additional (used by lanes)

Definition at line 114 of file GNEChange_Edge.h.

Referenced by redo(), and undo().

◆ myChildLaneDemandElements

std::vector<std::vector<GNEDemandElement*> > GNEChange_Edge::myChildLaneDemandElements
private

vector of references to vector of child demand elements (used by lanes)

Definition at line 117 of file GNEChange_Edge.h.

Referenced by redo(), and undo().

◆ myChildLaneShapes

std::vector<std::vector<GNEShape*> > GNEChange_Edge::myChildLaneShapes
private

vector of references to vector of child shapes (used by lanes)

Definition at line 111 of file GNEChange_Edge.h.

Referenced by redo(), and undo().

◆ 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 81 of file GNEChange_Edge.h.

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

◆ myEdgeParentAdditionals

const std::vector<GNEAdditional*>& GNEChange_Edge::myEdgeParentAdditionals
private

reference to vector of parent additionals

Definition at line 87 of file GNEChange_Edge.h.

Referenced by redo(), and undo().

◆ myEdgeParentDemandElements

const std::vector<GNEDemandElement*>& GNEChange_Edge::myEdgeParentDemandElements
private

reference to vector of parent demand elements

Definition at line 90 of file GNEChange_Edge.h.

Referenced by redo(), and undo().

◆ myEdgeParentShapes

const std::vector<GNEShape*>& GNEChange_Edge::myEdgeParentShapes
private

reference to vector of parent shapes

Definition at line 84 of file GNEChange_Edge.h.

Referenced by redo(), and undo().

◆ myForward

◆ myLaneParentAdditionals

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

vector of references to vector of parent additionals (used by lanes)

Definition at line 105 of file GNEChange_Edge.h.

Referenced by redo(), and undo().

◆ myLaneParentDemandElements

std::vector<std::vector<GNEDemandElement*> > GNEChange_Edge::myLaneParentDemandElements
private

vector of references to vector of parent demand elements (used by lanes)

Definition at line 108 of file GNEChange_Edge.h.

Referenced by redo(), and undo().

◆ myLaneParentShapes

std::vector<std::vector<GNEShape*> > GNEChange_Edge::myLaneParentShapes
private

vector of references to vector of parent shapes (used by lanes)

Definition at line 102 of file GNEChange_Edge.h.

Referenced by redo(), and undo().

◆ myNet


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