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) |
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 135 of file GNEDeleteFrame.h.
GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEJunction * | junction | ) |
constructor (for junctions)
Definition at line 88 of file GNEDeleteFrame.cpp.
References addValuesFromSubordinatedElements(), and GNEHierarchicalElement::getChildEdges().
GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEEdge * | edge | ) |
constructor (for edges)
Definition at line 97 of file GNEDeleteFrame.cpp.
References addValuesFromSubordinatedElements(), and GNEEdge::getLanes().
GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNELane * | lane | ) |
constructor (for lanes)
Definition at line 106 of file GNEDeleteFrame.cpp.
GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEAdditional * | additional | ) |
constructor (for additionals)
Definition at line 111 of file GNEDeleteFrame.cpp.
GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEDemandElement * | demandElement | ) |
constructor (for demandElements)
Definition at line 116 of file GNEDeleteFrame.cpp.
GNEDeleteFrame::SubordinatedElements::SubordinatedElements | ( | const GNEGenericData * | genericData | ) |
constructor (for shapes)
Definition at line 121 of file GNEDeleteFrame.cpp.
GNEDeleteFrame::SubordinatedElements::~SubordinatedElements | ( | ) |
destructor
Definition at line 126 of file GNEDeleteFrame.cpp.
|
private |
Definition at line 152 of file GNEDeleteFrame.cpp.
|
private |
Definition at line 164 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 197 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 130 of file GNEDeleteFrame.cpp.
References GNEDeleteFrame::ProtectElements::protectAdditionals(), GNEDeleteFrame::ProtectElements::protectDemandElements(), and GNEDeleteFrame::ProtectElements::protectGenericDatas().
|
private |
Definition at line 208 of file GNEDeleteFrame.cpp.
References GNEFrame::myViewNet, toString(), and WRITE_DEBUG.
|
privatedelete |
Invalidated assignment operator.
|
protected |
child additional (except TAZs)
Definition at line 173 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
parent additionals (except TAZs)
Definition at line 170 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
parent of SubordinatedElements
Definition at line 164 of file GNEDeleteFrame.h.
|
protected |
child demand elements
Definition at line 179 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
parent demand elements
Definition at line 176 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
child demand elements
Definition at line 185 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
parent demand elements
Definition at line 182 of file GNEDeleteFrame.h.
Referenced by addValuesFromSubordinatedElements().
|
protected |
pointer to view net
Definition at line 167 of file GNEDeleteFrame.h.