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 (GNENet *net, 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...
 

Detailed Description

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

Definition at line 50 of file GNEChange_Additional.h.

Constructor & Destructor Documentation

§ GNEChange_Additional()

GNEChange_Additional::GNEChange_Additional ( GNENet net,
GNEAdditional additional,
bool  forward 
)

Constructor for creating/deleting an additional element.

Parameters
[in]netThe net on which to apply changes
[in]additionalThe additional element to be created/deleted
[in]forwardWhether to create/delete (true/false)

Definition at line 49 of file GNEChange_Additional.cpp.

§ ~GNEChange_Additional()

GNEChange_Additional::~GNEChange_Additional ( )

Member Function Documentation

§ redo()

void GNEChange_Additional::redo ( )
virtual

§ redoName()

FXString GNEChange_Additional::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 93 of file GNEChange_Additional.cpp.

References GNEChange::myForward.

§ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 57 of file GNEChange.cpp.

§ undo()

void GNEChange_Additional::undo ( )
virtual

§ undoName()

FXString GNEChange_Additional::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 84 of file GNEChange_Additional.cpp.

References GNEChange::myForward.

Field Documentation

§ myAdditional

GNEAdditional* GNEChange_Additional::myAdditional
private

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

Definition at line 81 of file GNEChange_Additional.h.

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

§ myForward

§ myNet

GNENet* GNEChange::myNet
protectedinherited

the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer)

Definition at line 82 of file GNEChange.h.

Referenced by GNEChange_Selection::redo(), redo(), GNEChange_Junction::redo(), GNEChange_Lane::redo(), GNEChange_Edge::redo(), GNEChange_Selection::undo(), GNEChange_Junction::undo(), undo(), GNEChange_Lane::undo(), and GNEChange_Edge::undo().


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