![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEChange_Additional.h>
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... | |
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 | |
GNEAdditional * | myAdditional |
full information regarding the additional element that is to be created/deleted More... | |
A network change in which a additional element is created or deleted
Definition at line 50 of file GNEChange_Additional.h.
GNEChange_Additional::GNEChange_Additional | ( | GNENet * | net, |
GNEAdditional * | additional, | ||
bool | forward | ||
) |
Constructor for creating/deleting an additional element.
[in] | net | The net on which to apply changes |
[in] | additional | The additional element to be created/deleted |
[in] | forward | Whether to create/delete (true/false) |
Definition at line 49 of file GNEChange_Additional.cpp.
GNEChange_Additional::~GNEChange_Additional | ( | ) |
Destructor.
Definition at line 57 of file GNEChange_Additional.cpp.
References GNEReferenceCounter::decRef(), myAdditional, and GNEReferenceCounter::unreferenced().
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 75 of file GNEChange_Additional.cpp.
References GNENet::deleteAdditional(), GNENet::insertAdditional(), myAdditional, GNEChange::myForward, and GNEChange::myNet.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 93 of file GNEChange_Additional.cpp.
References GNEChange::myForward.
|
virtualinherited |
return actual size
Definition at line 57 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 66 of file GNEChange_Additional.cpp.
References GNENet::deleteAdditional(), GNENet::insertAdditional(), myAdditional, GNEChange::myForward, and GNEChange::myNet.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 84 of file GNEChange_Additional.cpp.
References GNEChange::myForward.
|
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().
|
protectedinherited |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
Definition at line 87 of file GNEChange.h.
Referenced by GNEChange_Selection::redo(), redo(), GNEChange_Junction::redo(), GNEChange_TLS::redo(), GNEChange_Lane::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Selection::redoName(), GNEChange_Junction::redoName(), redoName(), GNEChange_TLS::redoName(), GNEChange_Connection::redoName(), GNEChange_Lane::redoName(), GNEChange_Edge::redoName(), GNEChange_Selection::undo(), undo(), GNEChange_Junction::undo(), GNEChange_TLS::undo(), GNEChange_Connection::undo(), GNEChange_Lane::undo(), GNEChange_Edge::undo(), GNEChange_Selection::undoName(), GNEChange_Junction::undoName(), undoName(), GNEChange_TLS::undoName(), GNEChange_Lane::undoName(), GNEChange_Connection::undoName(), and GNEChange_Edge::undoName().
|
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 redo(), GNEChange_Junction::redo(), GNEChange_Lane::redo(), GNEChange_Edge::redo(), GNEChange_Junction::undo(), undo(), GNEChange_Lane::undo(), and GNEChange_Edge::undo().