![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEChange_Additional.h>
Public Member Functions | |
GNEChange_Additional (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... | |
const std::vector< GNEAdditional * > & | myChildAdditionals |
reference to vector of child additional More... | |
const std::vector< GNEDemandElement * > & | myChildDemandElements |
reference to vector of child demand elements More... | |
const std::vector< GNEEdge * > & | myChildEdges |
reference to vector of child edges More... | |
const std::vector< GNELane * > & | myChildLanes |
reference to vector of child lanes More... | |
const std::vector< GNEShape * > & | myChildShapes |
reference to vector of child shapes More... | |
const std::vector< GNEAdditional * > & | myParentAdditionals |
reference to vector of parent additionals More... | |
const std::vector< GNEDemandElement * > & | myParentDemandElements |
reference to vector of parent demand elements More... | |
const std::vector< GNEEdge * > & | myParentEdges |
reference to vector of parent edges More... | |
const std::vector< GNELane * > & | myParentLanes |
reference to vector of parent lanes More... | |
const std::vector< GNEShape * > & | myParentShapes |
reference to vector of parent shapes More... | |
A network change in which a additional element is created or deleted
Definition at line 44 of file GNEChange_Additional.h.
GNEChange_Additional::GNEChange_Additional | ( | GNEAdditional * | additional, |
bool | forward | ||
) |
Constructor for creating/deleting an additional element.
[in] | additional | The additional element to be created/deleted |
[in] | forward | Whether to create/delete (true/false) |
Definition at line 41 of file GNEChange_Additional.cpp.
GNEChange_Additional::~GNEChange_Additional | ( | ) |
Destructor.
Definition at line 58 of file GNEChange_Additional.cpp.
References GNENet::additionalExist(), GNEReferenceCounter::decRef(), GNENet::deleteAdditional(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), myAdditional, myChildAdditionals, myChildDemandElements, myChildEdges, myChildLanes, myChildShapes, GNEChange::myNet, myParentAdditionals, myParentDemandElements, myParentEdges, myParentLanes, myParentShapes, GNEReferenceCounter::unreferenced(), and WRITE_DEBUG.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 188 of file GNEChange_Additional.cpp.
References GNENet::deleteAdditional(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNENet::insertAdditional(), myAdditional, myChildAdditionals, myChildDemandElements, myChildEdges, myChildLanes, myChildShapes, GNEChange::myForward, GNEChange::myNet, myParentAdditionals, myParentDemandElements, myParentEdges, myParentLanes, myParentShapes, GNENet::requireSaveAdditionals(), and WRITE_DEBUG.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 280 of file GNEChange_Additional.cpp.
References GNEAttributeCarrier::getTagStr(), myAdditional, and GNEChange::myForward.
|
virtualinherited |
return actual size
Definition at line 44 of file GNEChange.cpp.
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 106 of file GNEChange_Additional.cpp.
References GNENet::deleteAdditional(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNENet::insertAdditional(), myAdditional, myChildAdditionals, myChildDemandElements, myChildEdges, myChildLanes, myChildShapes, GNEChange::myForward, GNEChange::myNet, myParentAdditionals, myParentDemandElements, myParentEdges, myParentLanes, myParentShapes, GNENet::requireSaveAdditionals(), and WRITE_DEBUG.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 270 of file GNEChange_Additional.cpp.
References GNEAttributeCarrier::getTagStr(), myAdditional, and GNEChange::myForward.
|
private |
full information regarding the additional element that is to be created/deleted
Definition at line 76 of file GNEChange_Additional.h.
Referenced by redo(), redoName(), undo(), undoName(), and ~GNEChange_Additional().
|
private |
reference to vector of child additional
Definition at line 103 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of child demand elements
Definition at line 106 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of child edges
Definition at line 94 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of child lanes
Definition at line 97 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of child shapes
Definition at line 100 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 80 of file GNEChange.h.
Referenced by GNEChange_Junction::redo(), GNEChange_Shape::redo(), redo(), GNEChange_TLS::redo(), GNEChange_DemandElement::redo(), GNEChange_Children::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Shape::redoName(), GNEChange_Junction::redoName(), GNEChange_TLS::redoName(), redoName(), GNEChange_DemandElement::redoName(), GNEChange_Children::redoName(), GNEChange_Connection::redoName(), GNEChange_Edge::redoName(), GNEChange_Lane::redoName(), GNEChange_Crossing::redoName(), GNEChange_Junction::undo(), GNEChange_Shape::undo(), GNEChange_TLS::undo(), undo(), GNEChange_DemandElement::undo(), GNEChange_Children::undo(), GNEChange_Connection::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Junction::undoName(), GNEChange_Shape::undoName(), GNEChange_TLS::undoName(), undoName(), GNEChange_DemandElement::undoName(), GNEChange_Children::undoName(), GNEChange_Connection::undoName(), GNEChange_Edge::undoName(), GNEChange_Lane::undoName(), and GNEChange_Crossing::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 75 of file GNEChange.h.
Referenced by GNEChange_Crossing::GNEChange_Crossing(), GNEChange_Junction::redo(), GNEChange_Shape::redo(), redo(), GNEChange_TLS::redo(), GNEChange_DemandElement::redo(), GNEChange_EnableAttribute::redo(), GNEChange_Children::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Attribute::redo(), GNEChange_Junction::undo(), GNEChange_Shape::undo(), undo(), GNEChange_TLS::undo(), GNEChange_DemandElement::undo(), GNEChange_Children::undo(), GNEChange_EnableAttribute::undo(), GNEChange_Connection::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Attribute::undo(), ~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Crossing::~GNEChange_Crossing(), GNEChange_DemandElement::~GNEChange_DemandElement(), GNEChange_EnableAttribute::~GNEChange_EnableAttribute(), and GNEChange_Shape::~GNEChange_Shape().
|
private |
reference to vector of parent additionals
Definition at line 88 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of parent demand elements
Definition at line 91 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of parent edges
Definition at line 79 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of parent lanes
Definition at line 82 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of parent shapes
Definition at line 85 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().