SUMO - Simulation of Urban MObility
GNEChange_Edge Class Reference

#include <GNEChange_Edge.h>

Inheritance diagram for GNEChange_Edge:
Inheritance graph
Collaboration diagram for GNEChange_Edge:
Collaboration graph

Public Member Functions

 GNEChange_Edge (GNEEdge *edge, bool forward)
 Constructor for creating/deleting an edge. More...
 
virtual FXuint size () const
 return actual size More...
 
 ~GNEChange_Edge ()
 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

GNEEdgemyEdge
 full information regarding the edge that is to be created/deleted More...
 

Detailed Description

A network change in which a single edge is created or deleted

Definition at line 48 of file GNEChange_Edge.h.

Constructor & Destructor Documentation

◆ GNEChange_Edge()

GNEChange_Edge::GNEChange_Edge ( GNEEdge edge,
bool  forward 
)

Constructor for creating/deleting an edge.

constructor for creating an edge

Parameters
[in]edgeThe edge to be created/deleted
[in]forwardWhether to create/delete (true/false)

Definition at line 41 of file GNEChange_Edge.cpp.

◆ ~GNEChange_Edge()

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange_Edge::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 115 of file GNEChange_Edge.cpp.

References GNEChange::myForward, SUMO_TAG_EDGE, and toString().

◆ 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_Edge::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 105 of file GNEChange_Edge.cpp.

References GNEChange::myForward, SUMO_TAG_EDGE, and toString().

Field Documentation

◆ myEdge

GNEEdge* GNEChange_Edge::myEdge
private

full information regarding the edge that is to be created/deleted

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

Definition at line 82 of file GNEChange_Edge.h.

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

◆ myForward

◆ myNet


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