![]() |
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 DeleteOptions *deleteOptions) |
if element can be removed More... | |
SubordinatedElements (const GNEAdditional *additional) | |
constructor (for additionals) More... | |
SubordinatedElements (const GNEDemandElement *demandElement) | |
constructor (for demandElements) More... | |
SubordinatedElements (const GNEEdge *edge) | |
constructor (for edges) More... | |
SubordinatedElements (const GNEGenericData *genericData) | |
constructor (for shapes) More... | |
SubordinatedElements (const GNEJunction *junction) | |
constructor (for junctions) More... | |
SubordinatedElements (const GNELane *lane) | |
constructor (for lanes) More... | |
SubordinatedElements (const GNEShape *shape) | |
constructor (for shapes) More... | |
~SubordinatedElements () | |
destructor More... | |
Protected Attributes | |
size_t | myAdditionalChilds |
child additional (except TAZs) More... | |
size_t | myAdditionalParents |
parent additionals (except TAZs) More... | |
const GNEAttributeCarrier * | myAttributeCarrier |
parent of SubordinatedElements More... | |
size_t | myDemandElementChilds |
child demand elements More... | |
size_t | myDemandElementParents |
parent demand elements More... | |
size_t | myGenericDataChilds |
child demand elements More... | |
size_t | myGenericDataParents |
parent demand elements More... | |
size_t | myShapeChilds |
child shape More... | |
size_t | myShapeParents |
parent shapes More... | |
size_t | myTAZChilds |
child TAZ More... | |
size_t | myTAZParents |
parent TAZs More... | |
GNEViewNet * | myViewNet |
pointer to view net More... | |
Private Member Functions | |
void | addValuesFromSubordinatedElements (SubordinatedElements *originalSE, const SubordinatedElements &newSE) |
add in originalSE the values of newSE More... | |
void | openWarningDialog (const std::string &elementType, const size_t number, const bool isChild) |
SubordinatedElements & | operator= (const SubordinatedElements &)=delete |
Invalidated assignment operator. More... | |
SubordinatedElements (const GNEAttributeCarrier *attributeCarrier, GNEViewNet *viewNet) | |
SubordinatedElements (const GNEAttributeCarrier *attributeCarrier, GNEViewNet *viewNet, const GNEHierarchicalElement *hierarchicalElement) | |
SubordinatedElements (const SubordinatedElements &)=delete | |
Invalidated copy constructor. More... | |
struct for saving subordinated elements (Junction->Edge->Lane->(Additional | DemandElement)
Definition at line 121 of file GNEDeleteFrame.h.
GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEJunction * | junction | ) |
constructor (for junctions)
Definition at line 282 of file GNEDeleteFrame.cpp.
References addValuesFromSubordinatedElements(), and GNEHierarchicalElement::getChildEdges().
GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEEdge * | edge | ) |
constructor (for edges)
Definition at line 291 of file GNEDeleteFrame.cpp.
References addValuesFromSubordinatedElements(), and GNEEdge::getLanes().
GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNELane * | lane | ) |
constructor (for lanes)
Definition at line 300 of file GNEDeleteFrame.cpp.
GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEAdditional * | additional | ) |
constructor (for additionals)
Definition at line 305 of file GNEDeleteFrame.cpp.
GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEShape * | shape | ) |
constructor (for shapes)
Definition at line 310 of file GNEDeleteFrame.cpp.
GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEDemandElement * | demandElement | ) |
constructor (for demandElements)
Definition at line 315 of file GNEDeleteFrame.cpp.
GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEGenericData * | genericData | ) |
constructor (for shapes)
Definition at line 320 of file GNEDeleteFrame.cpp.
GNEDeleteFrame::SubordinatedElements::~SubordinatedElements | ( | ) |
destructor
Definition at line 325 of file GNEDeleteFrame.cpp.
|
private |
Definition at line 359 of file GNEDeleteFrame.cpp.
|
private |
Definition at line 375 of file GNEDeleteFrame.cpp.
References addValuesFromSubordinatedElements(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEHierarchicalElement::getChildGenericDatas(), GNEHierarchicalElement::getChildShapes(), GNEHierarchicalElement::getParentAdditionals(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentGenericDatas(), and GNEHierarchicalElement::getParentShapes().
|
privatedelete |
Invalidated copy constructor.
|
private |
add in originalSE the values of newSE
Definition at line 418 of file GNEDeleteFrame.cpp.
References myAdditionalChilds, myAdditionalParents, myDemandElementChilds, myDemandElementParents, myGenericDataChilds, myGenericDataParents, myShapeChilds, myShapeParents, myTAZChilds, and myTAZParents.
Referenced by SubordinatedElements().
bool GNEDeleteFrame::SubordinatedElements::checkElements | ( | const DeleteOptions * | deleteOptions | ) |
if element can be removed
Definition at line 329 of file GNEDeleteFrame.cpp.
References GNEDeleteFrame::DeleteOptions::protectAdditionals(), GNEDeleteFrame::DeleteOptions::protectDemandElements(), GNEDeleteFrame::DeleteOptions::protectGenericDatas(), GNEDeleteFrame::DeleteOptions::protectShapes(), and GNEDeleteFrame::DeleteOptions::protectTAZs().
Referenced by GNEDeleteFrame::removeAttributeCarrier().
|
private |
Definition at line 433 of file GNEDeleteFrame.cpp.
References GNEFrame::myViewNet, toString(), and WRITE_DEBUG.
|
privatedelete |
Invalidated assignment operator.
|
protected |
child additional (except TAZs)
Definition at line 162 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
parent additionals (except TAZs)
Definition at line 159 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
parent of SubordinatedElements
Definition at line 153 of file GNEDeleteFrame.h.
|
protected |
child demand elements
Definition at line 180 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
parent demand elements
Definition at line 177 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
child demand elements
Definition at line 186 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
parent demand elements
Definition at line 183 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
child shape
Definition at line 174 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
parent shapes
Definition at line 171 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
child TAZ
Definition at line 168 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
parent TAZs
Definition at line 165 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
pointer to view net
Definition at line 156 of file GNEDeleteFrame.h.