Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEDeleteFrame::SubordinatedElements Class Reference

struct for saving subordinated elements (Junction->Edge->Lane->(Additional | DemandElement) More...

#include <GNEDeleteFrame.h>

Collaboration diagram for GNEDeleteFrame::SubordinatedElements:
[legend]

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 GNEAttributeCarriermyAttributeCarrier
 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
 
GNEViewNetmyViewNet
 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)
 
SubordinatedElementsoperator= (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.
 

Detailed Description

struct for saving subordinated elements (Junction->Edge->Lane->(Additional | DemandElement)

Definition at line 135 of file GNEDeleteFrame.h.

Constructor & Destructor Documentation

◆ SubordinatedElements() [1/9]

GNEDeleteFrame::SubordinatedElements::SubordinatedElements ( const GNEJunction junction)

constructor (for junctions)

Definition at line 88 of file GNEDeleteFrame.cpp.

References addValuesFromSubordinatedElements(), and GNEHierarchicalElement::getChildEdges().

◆ SubordinatedElements() [2/9]

GNEDeleteFrame::SubordinatedElements::SubordinatedElements ( const GNEEdge edge)

constructor (for edges)

Definition at line 97 of file GNEDeleteFrame.cpp.

References addValuesFromSubordinatedElements(), and GNEEdge::getLanes().

◆ SubordinatedElements() [3/9]

GNEDeleteFrame::SubordinatedElements::SubordinatedElements ( const GNELane lane)

constructor (for lanes)

Definition at line 106 of file GNEDeleteFrame.cpp.

◆ SubordinatedElements() [4/9]

GNEDeleteFrame::SubordinatedElements::SubordinatedElements ( const GNEAdditional additional)

constructor (for additionals)

Definition at line 111 of file GNEDeleteFrame.cpp.

◆ SubordinatedElements() [5/9]

GNEDeleteFrame::SubordinatedElements::SubordinatedElements ( const GNEDemandElement demandElement)

constructor (for demandElements)

Definition at line 116 of file GNEDeleteFrame.cpp.

◆ SubordinatedElements() [6/9]

GNEDeleteFrame::SubordinatedElements::SubordinatedElements ( const GNEGenericData genericData)

constructor (for shapes)

Definition at line 121 of file GNEDeleteFrame.cpp.

◆ ~SubordinatedElements()

GNEDeleteFrame::SubordinatedElements::~SubordinatedElements ( )

destructor

Definition at line 126 of file GNEDeleteFrame.cpp.

◆ SubordinatedElements() [7/9]

GNEDeleteFrame::SubordinatedElements::SubordinatedElements ( const GNEAttributeCarrier attributeCarrier,
GNEViewNet viewNet 
)
private

Definition at line 152 of file GNEDeleteFrame.cpp.

◆ SubordinatedElements() [8/9]

◆ SubordinatedElements() [9/9]

GNEDeleteFrame::SubordinatedElements::SubordinatedElements ( const SubordinatedElements )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ addValuesFromSubordinatedElements()

void GNEDeleteFrame::SubordinatedElements::addValuesFromSubordinatedElements ( SubordinatedElements originalSE,
const SubordinatedElements newSE 
)
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().

Here is the caller graph for this function:

◆ checkElements()

bool GNEDeleteFrame::SubordinatedElements::checkElements ( const ProtectElements protectElements)

◆ openWarningDialog()

void GNEDeleteFrame::SubordinatedElements::openWarningDialog ( const std::string &  elementType,
const size_t  number,
const bool  isChild 
)
private

Definition at line 208 of file GNEDeleteFrame.cpp.

References GNEFrame::myViewNet, toString(), and WRITE_DEBUG.

◆ operator=()

SubordinatedElements & GNEDeleteFrame::SubordinatedElements::operator= ( const SubordinatedElements )
privatedelete

Invalidated assignment operator.

Field Documentation

◆ myAdditionalChilds

size_t GNEDeleteFrame::SubordinatedElements::myAdditionalChilds
protected

child additional (except TAZs)

Definition at line 173 of file GNEDeleteFrame.h.

Referenced by addValuesFromSubordinatedElements().

◆ myAdditionalParents

size_t GNEDeleteFrame::SubordinatedElements::myAdditionalParents
protected

parent additionals (except TAZs)

Definition at line 170 of file GNEDeleteFrame.h.

Referenced by addValuesFromSubordinatedElements().

◆ myAttributeCarrier

const GNEAttributeCarrier* GNEDeleteFrame::SubordinatedElements::myAttributeCarrier
protected

parent of SubordinatedElements

Definition at line 164 of file GNEDeleteFrame.h.

◆ myDemandElementChilds

size_t GNEDeleteFrame::SubordinatedElements::myDemandElementChilds
protected

child demand elements

Definition at line 179 of file GNEDeleteFrame.h.

Referenced by addValuesFromSubordinatedElements().

◆ myDemandElementParents

size_t GNEDeleteFrame::SubordinatedElements::myDemandElementParents
protected

parent demand elements

Definition at line 176 of file GNEDeleteFrame.h.

Referenced by addValuesFromSubordinatedElements().

◆ myGenericDataChilds

size_t GNEDeleteFrame::SubordinatedElements::myGenericDataChilds
protected

child demand elements

Definition at line 185 of file GNEDeleteFrame.h.

Referenced by addValuesFromSubordinatedElements().

◆ myGenericDataParents

size_t GNEDeleteFrame::SubordinatedElements::myGenericDataParents
protected

parent demand elements

Definition at line 182 of file GNEDeleteFrame.h.

Referenced by addValuesFromSubordinatedElements().

◆ myViewNet

GNEViewNet* GNEDeleteFrame::SubordinatedElements::myViewNet
protected

pointer to view net

Definition at line 167 of file GNEDeleteFrame.h.


The documentation for this class was generated from the following files: