![]() |
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 * > & | myAdditionalChildren |
reference to vector of additional children More... | |
const std::vector< GNEAdditional * > & | myAdditionalParents |
reference to vector of additional parents More... | |
const std::vector< GNEDemandElement * > & | myDemandElementChildren |
reference to vector of demand element children More... | |
const std::vector< GNEDemandElement * > & | myDemandElementParents |
reference to vector of demand element parents More... | |
const std::vector< GNEEdge * > & | myEdgeChildren |
reference to vector of edge children More... | |
const std::vector< GNEEdge * > & | myEdgeParents |
reference to vector of edge parents More... | |
const std::vector< GNELane * > & | myLaneChildren |
reference to vector of lane children More... | |
const std::vector< GNELane * > & | myLaneParents |
reference to vector of lane parents More... | |
const std::vector< GNEShape * > & | myShapeChildren |
reference to vector of shape children More... | |
const std::vector< GNEShape * > & | myShapeParents |
reference to vector of shape parents More... | |
A network change in which a additional element is created or deleted
Definition at line 45 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 42 of file GNEChange_Additional.cpp.
GNEChange_Additional::~GNEChange_Additional | ( | ) |
Destructor.
Definition at line 59 of file GNEChange_Additional.cpp.
References GNENet::additionalExist(), GNEReferenceCounter::decRef(), GNENet::deleteAdditional(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), myAdditional, myAdditionalChildren, myAdditionalParents, myDemandElementChildren, myDemandElementParents, myEdgeChildren, myEdgeParents, myLaneChildren, myLaneParents, GNEChange::myNet, myShapeChildren, myShapeParents, GNEReferenceCounter::unreferenced(), and WRITE_DEBUG.
|
virtual |
redo action
Reimplemented from GNEChange.
Definition at line 189 of file GNEChange_Additional.cpp.
References GNENet::deleteAdditional(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNENet::insertAdditional(), myAdditional, myAdditionalChildren, myAdditionalParents, myDemandElementChildren, myDemandElementParents, myEdgeChildren, myEdgeParents, GNEChange::myForward, myLaneChildren, myLaneParents, GNEChange::myNet, myShapeChildren, myShapeParents, GNENet::requiereSaveAdditionals(), and WRITE_DEBUG.
|
virtual |
get Redo name
Reimplemented from GNEChange.
Definition at line 281 of file GNEChange_Additional.cpp.
References GNEAttributeCarrier::getTagStr(), myAdditional, and GNEChange::myForward.
|
virtualinherited |
|
virtual |
undo action
Reimplemented from GNEChange.
Definition at line 107 of file GNEChange_Additional.cpp.
References GNENet::deleteAdditional(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNENet::insertAdditional(), myAdditional, myAdditionalChildren, myAdditionalParents, myDemandElementChildren, myDemandElementParents, myEdgeChildren, myEdgeParents, GNEChange::myForward, myLaneChildren, myLaneParents, GNEChange::myNet, myShapeChildren, myShapeParents, GNENet::requiereSaveAdditionals(), and WRITE_DEBUG.
|
virtual |
return undoName
Reimplemented from GNEChange.
Definition at line 271 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 77 of file GNEChange_Additional.h.
Referenced by redo(), redoName(), undo(), undoName(), and ~GNEChange_Additional().
|
private |
reference to vector of additional children
Definition at line 104 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of additional parents
Definition at line 89 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of demand element children
Definition at line 107 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of demand element parents
Definition at line 92 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of edge children
Definition at line 95 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of edge parents
Definition at line 80 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 81 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().
|
private |
reference to vector of lane children
Definition at line 98 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of lane parents
Definition at line 83 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
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 76 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 shape children
Definition at line 101 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().
|
private |
reference to vector of shape parents
Definition at line 86 of file GNEChange_Additional.h.
Referenced by redo(), undo(), and ~GNEChange_Additional().