![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct for saving subordinated elements (Junction->Edge->Lane->(Additional | DemandElement) More...
#include <GNEDeleteFrame.h>
Public Member Functions | |
| bool | checkElements (const ProtectElements *protectElements) |
| if element can be removed | |
| SubordinatedElements (const GNEAdditional *additional) | |
| constructor (for additionals) | |
| SubordinatedElements (const GNEDemandElement *demandElement) | |
| constructor (for demandElements) | |
| SubordinatedElements (const GNEEdge *edge) | |
| constructor (for edges) | |
| SubordinatedElements (const GNEGenericData *genericData) | |
| constructor (for shapes) | |
| SubordinatedElements (const GNEJunction *junction) | |
| constructor (for junctions) | |
| SubordinatedElements (const GNELane *lane) | |
| constructor (for lanes) | |
| ~SubordinatedElements () | |
| destructor | |
Protected Attributes | |
| size_t | myAdditionalChilds |
| child additional (except TAZs) | |
| size_t | myAdditionalParents |
| parent additionals (except TAZs) | |
| const GNEAttributeCarrier * | myAttributeCarrier |
| parent of SubordinatedElements | |
| size_t | myDemandElementChilds |
| child demand elements | |
| size_t | myDemandElementParents |
| parent demand elements | |
| size_t | myGenericDataChilds |
| child demand elements | |
| size_t | myGenericDataParents |
| parent demand elements | |
| GNEViewNet * | myViewNet |
| pointer to view net | |
Private Member Functions | |
| void | addValuesFromSubordinatedElements (SubordinatedElements *originalSE, const SubordinatedElements &newSE) |
| add in originalSE the values of newSE | |
| void | openWarningDialog (const std::string &elementType, const size_t number, const bool isChild, const bool runningInternalTests) |
| SubordinatedElements & | operator= (const SubordinatedElements &)=delete |
| Invalidated assignment operator. | |
| SubordinatedElements (const GNEAttributeCarrier *attributeCarrier, GNEViewNet *viewNet) | |
| SubordinatedElements (const GNEAttributeCarrier *attributeCarrier, GNEViewNet *viewNet, const GNEHierarchicalElement *hierarchicalElement) | |
| SubordinatedElements (const SubordinatedElements &)=delete | |
| Invalidated copy constructor. | |
struct for saving subordinated elements (Junction->Edge->Lane->(Additional | DemandElement)
Definition at line 157 of file GNEDeleteFrame.h.
| GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEJunction * | junction | ) |
constructor (for junctions)
Definition at line 87 of file GNEDeleteFrame.cpp.
References addValuesFromSubordinatedElements(), and GNEHierarchicalElement::getChildEdges().
| GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEEdge * | edge | ) |
constructor (for edges)
Definition at line 96 of file GNEDeleteFrame.cpp.
References addValuesFromSubordinatedElements(), and GNEHierarchicalElement::getChildLanes().
| GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNELane * | lane | ) |
constructor (for lanes)
Definition at line 105 of file GNEDeleteFrame.cpp.
| GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEAdditional * | additional | ) |
constructor (for additionals)
Definition at line 110 of file GNEDeleteFrame.cpp.
| GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEDemandElement * | demandElement | ) |
constructor (for demandElements)
Definition at line 115 of file GNEDeleteFrame.cpp.
| GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEGenericData * | genericData | ) |
constructor (for shapes)
Definition at line 120 of file GNEDeleteFrame.cpp.
| GNEDeleteFrame::SubordinatedElements::~SubordinatedElements | ( | ) |
destructor
Definition at line 125 of file GNEDeleteFrame.cpp.
|
private |
Definition at line 154 of file GNEDeleteFrame.cpp.
|
private |
Definition at line 166 of file GNEDeleteFrame.cpp.
References addValuesFromSubordinatedElements(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEHierarchicalElement::getChildGenericDatas(), GNEHierarchicalElement::getParentAdditionals(), GNEHierarchicalElement::getParentDemandElements(), and GNEHierarchicalElement::getParentGenericDatas().
|
privatedelete |
Invalidated copy constructor.
|
private |
add in originalSE the values of newSE
Definition at line 199 of file GNEDeleteFrame.cpp.
References myAdditionalChilds, myAdditionalParents, myDemandElementChilds, myDemandElementParents, myGenericDataChilds, and myGenericDataParents.
Referenced by SubordinatedElements(), SubordinatedElements(), and SubordinatedElements().
| bool GNEDeleteFrame::SubordinatedElements::checkElements | ( | const ProtectElements * | protectElements | ) |
if element can be removed
Definition at line 129 of file GNEDeleteFrame.cpp.
References GNEDeleteFrame::ProtectElements::getDeleteFrameParent(), GNEViewParent::getGNEAppWindows(), GNEApplicationWindow::getInternalTest(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), InternalTest::isRunning(), GNEDeleteFrame::ProtectElements::protectAdditionals(), GNEDeleteFrame::ProtectElements::protectDemandElements(), and GNEDeleteFrame::ProtectElements::protectGenericDatas().
|
private |
Definition at line 210 of file GNEDeleteFrame.cpp.
References GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), GNEFrame::myViewNet, and toString().
|
privatedelete |
Invalidated assignment operator.
|
protected |
child additional (except TAZs)
Definition at line 195 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
parent additionals (except TAZs)
Definition at line 192 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
parent of SubordinatedElements
Definition at line 186 of file GNEDeleteFrame.h.
|
protected |
child demand elements
Definition at line 201 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
parent demand elements
Definition at line 198 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
child demand elements
Definition at line 207 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
parent demand elements
Definition at line 204 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
pointer to view net
Definition at line 189 of file GNEDeleteFrame.h.