SUMO - Simulation of Urban MObility
GNEChange Class Reference

the function-object for an editing operation (abstract base) More...

#include <GNEChange.h>

Inheritance diagram for GNEChange:
Inheritance graph
Collaboration diagram for GNEChange:
Collaboration graph

Public Member Functions

 GNEChange (GNENet *net, bool forward)
 Constructor. More...
 
virtual void redo ()
 redo action/operation More...
 
virtual FXString redoName () const
 return rendoName More...
 
virtual FXuint size () const
 return actual size More...
 
virtual void undo ()
 undo action/operation More...
 
virtual FXString undoName () const
 return undoName More...
 
 ~GNEChange ()
 Destructor. More...
 

Protected Attributes

bool myForward
 we group antagonistic commands (create junction/delete junction) and keep them apart by this flag More...
 
GNENet * myNet
 the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer) More...
 

Detailed Description

the function-object for an editing operation (abstract base)

Definition at line 43 of file GNEChange.h.

Constructor & Destructor Documentation

◆ GNEChange()

GNEChange::GNEChange ( GNENet *  net,
bool  forward 
)

Constructor.

Parameters
[in]netGNENet net on which to apply changes
[in]forwardThe direction of this change

Definition at line 36 of file GNEChange.cpp.

◆ ~GNEChange()

GNEChange::~GNEChange ( )

Destructor.

Definition at line 41 of file GNEChange.cpp.

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange::redoName ( ) const
virtual

◆ size()

FXuint GNEChange::size ( ) const
virtual

return actual size

Definition at line 45 of file GNEChange.cpp.

Referenced by GNELane::isValid().

◆ undo()

◆ undoName()

FXString GNEChange::undoName ( ) const
virtual

Field Documentation

◆ myForward

◆ myNet


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