![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEChange_Junction.h>
Public Member Functions | |
GNEChange_Junction (GNENet *net, GNEJunction *junction, bool forward) | |
Constructor for creating/deleting a junction. More... | |
void | redo () |
FXString | redoName () const |
virtual FXuint | size () const |
void | undo () |
FXString | undoName () const |
~GNEChange_Junction () | |
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... | |
Private Attributes | |
GNEJunction * | myJunction |
full information regarding the junction that is to be created/deleted we assume shared responsibility for the pointer (via reference counting) More... | |
A network change in which a single junction is created or deleted
Definition at line 49 of file GNEChange_Junction.h.
GNEChange_Junction::GNEChange_Junction | ( | GNENet * | net, |
GNEJunction * | junction, | ||
bool | forward | ||
) |
Constructor for creating/deleting a junction.
[in] | net | The net on which to apply changes |
[in] | junction | The junction to be created/deleted |
[in] | forward | Whether to create/delete (true/false) |
Definition at line 53 of file GNEChange_Junction.cpp.
GNEChange_Junction::~GNEChange_Junction | ( | ) |
Destructor.
Definition at line 61 of file GNEChange_Junction.cpp.
References GNEReferenceCounter::decRef(), myJunction, and GNEReferenceCounter::unreferenced().
|
virtual |
Reimplemented from GNEChange.
Definition at line 79 of file GNEChange_Junction.cpp.
References GNENet::deleteSingleJunction(), GNENet::insertJunction(), GNEChange::myForward, myJunction, and GNEChange::myNet.
|
virtual |
Reimplemented from GNEChange.
Definition at line 97 of file GNEChange_Junction.cpp.
References GNEChange::myForward.
|
inlinevirtualinherited |
Definition at line 62 of file GNEChange.h.
|
virtual |
Reimplemented from GNEChange.
Definition at line 70 of file GNEChange_Junction.cpp.
References GNENet::deleteSingleJunction(), GNENet::insertJunction(), GNEChange::myForward, myJunction, and GNEChange::myNet.
|
virtual |
Reimplemented from GNEChange.
Definition at line 88 of file GNEChange_Junction.cpp.
References GNEChange::myForward.
|
protectedinherited |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
Definition at line 86 of file GNEChange.h.
Referenced by GNEChange_Selection::redo(), GNEChange_Edge::redo(), redo(), GNEChange_TLS::redo(), GNEChange_Lane::redo(), GNEChange_Connection::redo(), GNEChange_Selection::redoName(), GNEChange_Edge::redoName(), redoName(), GNEChange_TLS::redoName(), GNEChange_Lane::redoName(), GNEChange_Connection::redoName(), GNEChange_Selection::undo(), undo(), GNEChange_Edge::undo(), GNEChange_TLS::undo(), GNEChange_Lane::undo(), GNEChange_Connection::undo(), GNEChange_Selection::undoName(), GNEChange_Edge::undoName(), undoName(), GNEChange_TLS::undoName(), GNEChange_Lane::undoName(), and GNEChange_Connection::undoName().
|
private |
full information regarding the junction that is to be created/deleted we assume shared responsibility for the pointer (via reference counting)
Definition at line 74 of file GNEChange_Junction.h.
Referenced by redo(), undo(), and ~GNEChange_Junction().
|
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 73 of file GNEChange.h.
Referenced by GNEChange_Edge::redo(), redo(), GNEChange::redo(), undo(), and GNEChange_Edge::undo().