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...
 
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...
 

Detailed Description

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

Definition at line 49 of file GNEChange.h.

Constructor & Destructor Documentation

§ GNEChange()

GNEChange::GNEChange ( GNENet net,
bool  forward 
)

Constructor.

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

Definition at line 48 of file GNEChange.cpp.

§ ~GNEChange()

GNEChange::~GNEChange ( )

Destructor.

Definition at line 53 of file GNEChange.cpp.

Member Function Documentation

§ redo()

void GNEChange::redo ( )
virtual

§ redoName()

FXString GNEChange::redoName ( ) const
virtual

§ size()

FXuint GNEChange::size ( ) const
virtual

return actual size

Definition at line 57 of file GNEChange.cpp.

§ undo()

void GNEChange::undo ( )
virtual

§ undoName()

FXString GNEChange::undoName ( ) const
virtual

Field Documentation

§ myForward

§ myNet

GNENet* GNEChange::myNet
protected

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(), GNEChange_Additional::redo(), GNEChange_Junction::redo(), GNEChange_Lane::redo(), GNEChange_Edge::redo(), GNEChange_Selection::undo(), GNEChange_Junction::undo(), GNEChange_Additional::undo(), GNEChange_Lane::undo(), and GNEChange_Edge::undo().


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