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 * > & myAdditionalChildren
 reference to vector of additional children More...
 
const std::vector< GNEAdditional * > & myAdditionalParents
 reference to vector of additional parents More...
 
const std::vector< GNEDemandElement * > & myDemandElementChildren
 reference to vector of demand element children More...
 
const std::vector< GNEDemandElement * > & myDemandElementParents
 reference to vector of demand element parents More...
 
const std::vector< GNEEdge * > & myEdgeChildren
 reference to vector of edge children More...
 
const std::vector< GNEEdge * > & myEdgeParents
 reference to vector of edge parents More...
 
const std::vector< GNELane * > & myLaneChildren
 reference to vector of lane children More...
 
const std::vector< GNELane * > & myLaneParents
 reference to vector of lane parents More...
 
const std::vector< GNEShape * > & myShapeChildren
 reference to vector of shape children More...
 
const std::vector< GNEShape * > & myShapeParents
 reference to vector of shape parents 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 42 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 281 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.

◆ undo()

◆ undoName()

FXString GNEChange_Additional::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 271 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().

◆ myAdditionalChildren

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

reference to vector of additional children

Definition at line 104 of file GNEChange_Additional.h.

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

◆ myAdditionalParents

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

reference to vector of additional parents

Definition at line 89 of file GNEChange_Additional.h.

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

◆ myDemandElementChildren

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

reference to vector of demand element children

Definition at line 107 of file GNEChange_Additional.h.

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

◆ myDemandElementParents

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

reference to vector of demand element parents

Definition at line 92 of file GNEChange_Additional.h.

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

◆ myEdgeChildren

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

reference to vector of edge children

Definition at line 95 of file GNEChange_Additional.h.

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

◆ myEdgeParents

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

reference to vector of edge parents

Definition at line 80 of file GNEChange_Additional.h.

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

◆ myForward

◆ myLaneChildren

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

reference to vector of lane children

Definition at line 98 of file GNEChange_Additional.h.

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

◆ myLaneParents

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

reference to vector of lane parents

Definition at line 83 of file GNEChange_Additional.h.

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

◆ myNet

◆ myShapeChildren

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

reference to vector of shape children

Definition at line 101 of file GNEChange_Additional.h.

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

◆ myShapeParents

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

reference to vector of shape parents

Definition at line 86 of file GNEChange_Additional.h.

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


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