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 * > & myChildAdditionals
 reference to vector of child additional More...
 
const std::vector< GNEDemandElement * > & myChildDemandElements
 reference to vector of child demand elements More...
 
const std::vector< GNEEdge * > & myChildEdges
 reference to vector of child edges More...
 
const std::vector< GNELane * > & myChildLanes
 reference to vector of child lanes More...
 
const std::vector< GNEShape * > & myChildShapes
 reference to vector of child shapes More...
 
GNEDemandElementmyDemandElement
 full information regarding the demand element element that is to be created/deleted More...
 
const std::vector< GNEEdge * > & myEdgePath
 reference to edge path vector More...
 
const std::vector< GNEAdditional * > & myParentAdditionals
 reference to vector of parent additionals More...
 
const std::vector< GNEDemandElement * > & myParentDemandElements
 reference to vector of parent demand elements More...
 
const std::vector< GNEEdge * > & myParentEdges
 reference to vector of parent edges More...
 
const std::vector< GNELane * > & myParentLanes
 reference to vector of parent lanes More...
 
const std::vector< GNEShape * > & myParentShapes
 reference to vector of parent shapes More...
 

Detailed Description

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

Definition at line 45 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 43 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 303 of file GNEChange_DemandElement.cpp.

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

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 44 of file GNEChange.cpp.

◆ undo()

◆ undoName()

FXString GNEChange_DemandElement::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 293 of file GNEChange_DemandElement.cpp.

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

Field Documentation

◆ myChildAdditionals

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

reference to vector of child additional

Definition at line 107 of file GNEChange_DemandElement.h.

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

◆ myChildDemandElements

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

reference to vector of child demand elements

Definition at line 110 of file GNEChange_DemandElement.h.

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

◆ myChildEdges

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

reference to vector of child edges

Definition at line 98 of file GNEChange_DemandElement.h.

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

◆ myChildLanes

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

reference to vector of child lanes

Definition at line 101 of file GNEChange_DemandElement.h.

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

◆ myChildShapes

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

reference to vector of child shapes

Definition at line 104 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 77 of file GNEChange_DemandElement.h.

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

◆ myEdgePath

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

reference to edge path vector

Definition at line 80 of file GNEChange_DemandElement.h.

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

◆ myForward

◆ myNet

◆ myParentAdditionals

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

reference to vector of parent additionals

Definition at line 92 of file GNEChange_DemandElement.h.

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

◆ myParentDemandElements

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

reference to vector of parent demand elements

Definition at line 95 of file GNEChange_DemandElement.h.

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

◆ myParentEdges

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

reference to vector of parent edges

Definition at line 83 of file GNEChange_DemandElement.h.

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

◆ myParentLanes

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

reference to vector of parent lanes

Definition at line 86 of file GNEChange_DemandElement.h.

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

◆ myParentShapes

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

reference to vector of parent shapes

Definition at line 89 of file GNEChange_DemandElement.h.

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


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