SUMO - Simulation of Urban MObility
GNEChange_Additional Class Reference

#include <GNEChange_Additional.h>

Inheritance diagram for GNEChange_Additional:
Inheritance graph
Collaboration diagram for GNEChange_Additional:
Collaboration graph

Public Member Functions

 GNEChange_Additional (GNEAdditional *additional, bool forward)
 Constructor for creating/deleting an additional element. More...
 
virtual FXuint size () const
 return actual size More...
 
 ~GNEChange_Additional ()
 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

GNEAdditionalmyAdditional
 full information regarding the additional element that is to be created/deleted More...
 
std::vector< GNEEdge * > myEdgeChilds
 list of Edge childs (used by Rerouters) More...
 
std::vector< GNEEdge * > myEdgeParents
 pointer to edge parents (used by additionals with edge parents) More...
 
GNEAdditionalmyFirstAdditionalParent
 pointer to first additional parent (used by additional with parents, for example Entry/exits) More...
 
std::vector< GNELane * > myLaneChilds
 list of Edge childs (used by VSS) More...
 
std::vector< GNELane * > myLaneParents
 pointer to lane parents (used by additionals with lane parent) More...
 
GNEAdditionalmySecondAdditionalParent
 pointer to second additional parent (used by additional with parents, for example Entry/exits) More...
 

Detailed Description

A network change in which a additional element is created or deleted

Definition at line 45 of file GNEChange_Additional.h.

Constructor & Destructor Documentation

◆ GNEChange_Additional()

GNEChange_Additional::GNEChange_Additional ( GNEAdditional additional,
bool  forward 
)

Constructor for creating/deleting an additional element.

Parameters
[in]additionalThe additional element to be created/deleted
[in]forwardWhether to create/delete (true/false)

Definition at line 41 of file GNEChange_Additional.cpp.

References SUMO_ATTR_EDGE, SUMO_ATTR_EDGES, SUMO_ATTR_ID, SUMO_ATTR_LANE, SUMO_ATTR_LANES, and SUMO_TAG_VAPORIZER.

◆ ~GNEChange_Additional()

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange_Additional::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 236 of file GNEChange_Additional.cpp.

References GNEAttributeCarrier::getTagStr(), myAdditional, and GNEChange::myForward.

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 45 of file GNEChange.cpp.

Referenced by GNELane::isValid().

◆ undo()

◆ undoName()

FXString GNEChange_Additional::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 226 of file GNEChange_Additional.cpp.

References GNEAttributeCarrier::getTagStr(), myAdditional, and GNEChange::myForward.

Field Documentation

◆ myAdditional

GNEAdditional* GNEChange_Additional::myAdditional
private

full information regarding the additional element that is to be created/deleted

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

Definition at line 77 of file GNEChange_Additional.h.

Referenced by redo(), redoName(), undo(), undoName(), and ~GNEChange_Additional().

◆ myEdgeChilds

std::vector<GNEEdge*> GNEChange_Additional::myEdgeChilds
private

list of Edge childs (used by Rerouters)

Definition at line 92 of file GNEChange_Additional.h.

Referenced by redo(), and undo().

◆ myEdgeParents

std::vector<GNEEdge*> GNEChange_Additional::myEdgeParents
private

pointer to edge parents (used by additionals with edge parents)

Definition at line 83 of file GNEChange_Additional.h.

Referenced by redo(), and undo().

◆ myFirstAdditionalParent

GNEAdditional* GNEChange_Additional::myFirstAdditionalParent
private

pointer to first additional parent (used by additional with parents, for example Entry/exits)

Definition at line 86 of file GNEChange_Additional.h.

Referenced by redo(), and undo().

◆ myForward

◆ myLaneChilds

std::vector<GNELane*> GNEChange_Additional::myLaneChilds
private

list of Edge childs (used by VSS)

Definition at line 95 of file GNEChange_Additional.h.

Referenced by redo(), and undo().

◆ myLaneParents

std::vector<GNELane*> GNEChange_Additional::myLaneParents
private

pointer to lane parents (used by additionals with lane parent)

Definition at line 80 of file GNEChange_Additional.h.

Referenced by redo(), and undo().

◆ myNet

◆ mySecondAdditionalParent

GNEAdditional* GNEChange_Additional::mySecondAdditionalParent
private

pointer to second additional parent (used by additional with parents, for example Entry/exits)

Definition at line 89 of file GNEChange_Additional.h.

Referenced by redo(), and undo().


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