Eclipse SUMO - Simulation of Urban MObility
GNEChange_Additional Class Reference

#include <GNEChange_Additional.h>

Inheritance diagram for GNEChange_Additional:
Collaboration diagram for GNEChange_Additional:

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...
 
const std::vector< GNEAdditional * > & myChildAdditionals
 reference to vector of child additional More...
 
const std::vector< GNEDemandElement * > & myChildDemandElements
 reference to vector of child demand elements More...
 
const std::vector< GNEEdge * > & myChildEdges
 reference to vector of child edges More...
 
const std::vector< GNELane * > & myChildLanes
 reference to vector of child lanes More...
 
const std::vector< GNEShape * > & myChildShapes
 reference to vector of child shapes More...
 
const std::vector< GNEAdditional * > & myParentAdditionals
 reference to vector of parent additionals More...
 
const std::vector< GNEDemandElement * > & myParentDemandElements
 reference to vector of parent demand elements More...
 
const std::vector< GNEEdge * > & myParentEdges
 reference to vector of parent edges More...
 
const std::vector< GNELane * > & myParentLanes
 reference to vector of parent lanes More...
 
const std::vector< GNEShape * > & myParentShapes
 reference to vector of parent shapes More...
 

Detailed Description

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

Definition at line 44 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.

◆ ~GNEChange_Additional()

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange_Additional::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 280 of file GNEChange_Additional.cpp.

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

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 44 of file GNEChange.cpp.

◆ undo()

◆ undoName()

FXString GNEChange_Additional::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 270 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 76 of file GNEChange_Additional.h.

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

◆ myChildAdditionals

const std::vector<GNEAdditional*>& GNEChange_Additional::myChildAdditionals
private

reference to vector of child additional

Definition at line 103 of file GNEChange_Additional.h.

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

◆ myChildDemandElements

const std::vector<GNEDemandElement*>& GNEChange_Additional::myChildDemandElements
private

reference to vector of child demand elements

Definition at line 106 of file GNEChange_Additional.h.

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

◆ myChildEdges

const std::vector<GNEEdge*>& GNEChange_Additional::myChildEdges
private

reference to vector of child edges

Definition at line 94 of file GNEChange_Additional.h.

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

◆ myChildLanes

const std::vector<GNELane*>& GNEChange_Additional::myChildLanes
private

reference to vector of child lanes

Definition at line 97 of file GNEChange_Additional.h.

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

◆ myChildShapes

const std::vector<GNEShape*>& GNEChange_Additional::myChildShapes
private

reference to vector of child shapes

Definition at line 100 of file GNEChange_Additional.h.

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

◆ myForward

◆ myNet

◆ myParentAdditionals

const std::vector<GNEAdditional*>& GNEChange_Additional::myParentAdditionals
private

reference to vector of parent additionals

Definition at line 88 of file GNEChange_Additional.h.

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

◆ myParentDemandElements

const std::vector<GNEDemandElement*>& GNEChange_Additional::myParentDemandElements
private

reference to vector of parent demand elements

Definition at line 91 of file GNEChange_Additional.h.

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

◆ myParentEdges

const std::vector<GNEEdge*>& GNEChange_Additional::myParentEdges
private

reference to vector of parent edges

Definition at line 79 of file GNEChange_Additional.h.

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

◆ myParentLanes

const std::vector<GNELane*>& GNEChange_Additional::myParentLanes
private

reference to vector of parent lanes

Definition at line 82 of file GNEChange_Additional.h.

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

◆ myParentShapes

const std::vector<GNEShape*>& GNEChange_Additional::myParentShapes
private

reference to vector of parent shapes

Definition at line 85 of file GNEChange_Additional.h.

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


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