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...
 
GNEDetectorE3myE3Parent
 pointer to E3 parent (used by Entry/exits) More...
 
std::vector< GNEEdge * > myEdgeChilds
 list of Edge childs (used by Rerouters) More...
 
GNEEdgemyEdgeParent
 pointer to edge (used by additionals with edge parent) More...
 
std::vector< GNEDetectorEntry * > myEntryChilds
 list of Entry detectors child (used by E3 Detector) More...
 
std::vector< GNEDetectorExit * > myExitChilds
 list of Exit detectors child used (used by E3 Detector) More...
 
GNELanemyLaneParent
 pointer to lane (used by additionals with lane parent) More...
 

Detailed Description

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

Definition at line 55 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 54 of file GNEChange_Additional.cpp.

References GNEDetectorE3::myGNEDetectorEntrys, GNEDetectorE3::myGNEDetectorExits, SUMO_TAG_DET_ENTRY, SUMO_TAG_DET_EXIT, SUMO_TAG_E3DETECTOR, and SUMO_TAG_REROUTER.

◆ ~GNEChange_Additional()

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange_Additional::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 326 of file GNEChange_Additional.cpp.

References GNEAttributeCarrier::getTag(), myAdditional, GNEChange::myForward, and toString().

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 53 of file GNEChange.cpp.

◆ undo()

◆ undoName()

FXString GNEChange_Additional::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 316 of file GNEChange_Additional.cpp.

References GNEAttributeCarrier::getTag(), myAdditional, GNEChange::myForward, and toString().

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 87 of file GNEChange_Additional.h.

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

◆ myE3Parent

GNEDetectorE3* GNEChange_Additional::myE3Parent
private

pointer to E3 parent (used by Entry/exits)

Definition at line 96 of file GNEChange_Additional.h.

Referenced by redo(), and undo().

◆ myEdgeChilds

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

list of Edge childs (used by Rerouters)

Definition at line 105 of file GNEChange_Additional.h.

Referenced by redo(), and undo().

◆ myEdgeParent

GNEEdge* GNEChange_Additional::myEdgeParent
private

pointer to edge (used by additionals with edge parent)

Definition at line 93 of file GNEChange_Additional.h.

Referenced by redo(), and undo().

◆ myEntryChilds

std::vector<GNEDetectorEntry*> GNEChange_Additional::myEntryChilds
private

list of Entry detectors child (used by E3 Detector)

Definition at line 99 of file GNEChange_Additional.h.

Referenced by redo(), and undo().

◆ myExitChilds

std::vector<GNEDetectorExit*> GNEChange_Additional::myExitChilds
private

list of Exit detectors child used (used by E3 Detector)

Definition at line 102 of file GNEChange_Additional.h.

Referenced by redo(), and undo().

◆ myForward

◆ myLaneParent

GNELane* GNEChange_Additional::myLaneParent
private

pointer to lane (used by additionals with lane parent)

Definition at line 90 of file GNEChange_Additional.h.

Referenced by redo(), and undo().

◆ myNet

GNENet* GNEChange::myNet
protectedinherited

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