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 ()
 
virtual FXString redoName () const
 
virtual FXuint size () const
 
virtual void undo ()
 
virtual FXString undoName () const
 
 ~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 48 of file GNEChange.h.

Constructor & Destructor Documentation

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 ( )
inline

Destructor.

Definition at line 60 of file GNEChange.h.

Member Function Documentation

virtual void GNEChange::redo ( )
inlinevirtual
virtual FXString GNEChange::redoName ( ) const
inlinevirtual
virtual FXuint GNEChange::size ( ) const
inlinevirtual

Definition at line 62 of file GNEChange.h.

virtual void GNEChange::undo ( )
inlinevirtual
virtual FXString GNEChange::undoName ( ) const
inlinevirtual

Field Documentation

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 73 of file GNEChange.h.

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


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