Eclipse SUMO - Simulation of Urban MObility
GNEChange_DemandElement Class Reference

#include <GNEChange_DemandElement.h>

Inheritance diagram for GNEChange_DemandElement:
Collaboration diagram for GNEChange_DemandElement:

Public Member Functions

 GNEChange_DemandElement (GNEDemandElement *demandElement, bool forward)
 Constructor for creating/deleting an demand element element. More...
 
virtual FXuint size () const
 return actual size More...
 
 ~GNEChange_DemandElement ()
 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...
 
GNENetmyNet
 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

const std::vector< GNEAdditional * > & myAdditionalChildren
 reference to vector of additional children More...
 
const std::vector< GNEAdditional * > & myAdditionalParents
 reference to vector of additional parents More...
 
GNEDemandElementmyDemandElement
 full information regarding the demand element element that is to be created/deleted 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...
 

Detailed Description

A network change in which a demand element element is created or deleted

Definition at line 46 of file GNEChange_DemandElement.h.

Constructor & Destructor Documentation

◆ GNEChange_DemandElement()

GNEChange_DemandElement::GNEChange_DemandElement ( GNEDemandElement demandElement,
bool  forward 
)

Constructor for creating/deleting an demand element element.

Parameters
[in]demandelement The demand element element to be created/deleted
[in]forwardWhether to create/delete (true/false)

Definition at line 44 of file GNEChange_DemandElement.cpp.

◆ ~GNEChange_DemandElement()

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange_DemandElement::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 291 of file GNEChange_DemandElement.cpp.

References GNEAttributeCarrier::getTagStr(), myDemandElement, and GNEChange::myForward.

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 45 of file GNEChange.cpp.

Referenced by GNELane::isValid().

◆ undo()

◆ undoName()

FXString GNEChange_DemandElement::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 281 of file GNEChange_DemandElement.cpp.

References GNEAttributeCarrier::getTagStr(), myDemandElement, and GNEChange::myForward.

Field Documentation

◆ myAdditionalChildren

const std::vector<GNEAdditional*>& GNEChange_DemandElement::myAdditionalChildren
private

reference to vector of additional children

Definition at line 105 of file GNEChange_DemandElement.h.

Referenced by redo(), undo(), and ~GNEChange_DemandElement().

◆ myAdditionalParents

const std::vector<GNEAdditional*>& GNEChange_DemandElement::myAdditionalParents
private

reference to vector of additional parents

Definition at line 90 of file GNEChange_DemandElement.h.

Referenced by redo(), undo(), and ~GNEChange_DemandElement().

◆ myDemandElement

GNEDemandElement* GNEChange_DemandElement::myDemandElement
private

full information regarding the demand element element that is to be created/deleted

Note
we assume shared responsibility for the pointer (via reference counting)

Definition at line 78 of file GNEChange_DemandElement.h.

Referenced by redo(), redoName(), undo(), undoName(), and ~GNEChange_DemandElement().

◆ myDemandElementChildren

const std::vector<GNEDemandElement*>& GNEChange_DemandElement::myDemandElementChildren
private

reference to vector of demand element children

Definition at line 108 of file GNEChange_DemandElement.h.

Referenced by redo(), undo(), and ~GNEChange_DemandElement().

◆ myDemandElementParents

const std::vector<GNEDemandElement*>& GNEChange_DemandElement::myDemandElementParents
private

reference to vector of demand element parents

Definition at line 93 of file GNEChange_DemandElement.h.

Referenced by redo(), undo(), and ~GNEChange_DemandElement().

◆ myEdgeChildren

const std::vector<GNEEdge*>& GNEChange_DemandElement::myEdgeChildren
private

reference to vector of edge children

Definition at line 96 of file GNEChange_DemandElement.h.

Referenced by redo(), undo(), and ~GNEChange_DemandElement().

◆ myEdgeParents

const std::vector<GNEEdge*>& GNEChange_DemandElement::myEdgeParents
private

reference to vector of edge parents

Definition at line 81 of file GNEChange_DemandElement.h.

Referenced by redo(), undo(), and ~GNEChange_DemandElement().

◆ myForward

◆ myLaneChildren

const std::vector<GNELane*>& GNEChange_DemandElement::myLaneChildren
private

reference to vector of lane children

Definition at line 99 of file GNEChange_DemandElement.h.

Referenced by redo(), undo(), and ~GNEChange_DemandElement().

◆ myLaneParents

const std::vector<GNELane*>& GNEChange_DemandElement::myLaneParents
private

reference to vector of lane parents

Definition at line 84 of file GNEChange_DemandElement.h.

Referenced by redo(), undo(), and ~GNEChange_DemandElement().

◆ myNet

◆ myShapeChildren

const std::vector<GNEShape*>& GNEChange_DemandElement::myShapeChildren
private

reference to vector of shape children

Definition at line 102 of file GNEChange_DemandElement.h.

Referenced by redo(), undo(), and ~GNEChange_DemandElement().

◆ myShapeParents

const std::vector<GNEShape*>& GNEChange_DemandElement::myShapeParents
private

reference to vector of shape parents

Definition at line 87 of file GNEChange_DemandElement.h.

Referenced by redo(), undo(), and ~GNEChange_DemandElement().


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