47 myEdgeShapeParents(edge->getShapeParents()),
48 myEdgeAdditionalParents(edge->getAdditionalParents()),
49 myEdgeDemandElementParents(edge->getDemandElementParents()),
50 myEdgeShapeChildren(edge->getShapeChildren()),
51 myEdgeAdditionalChildren(edge->getAdditionalChildren()),
52 myEdgeDemandElementChildren(edge->getDemandElementChildren()) {
54 for (
const auto& i : edge->getLanes()) {
55 myLaneShapeParents.push_back(i->getShapeParents());
56 myLaneAdditionalParents.push_back(i->getAdditionalParents());
57 myLaneDemandElementParents.push_back(i->getDemandElementParents());
58 myLaneShapeChildren.push_back(i->getShapeChildren());
59 myLaneAdditionalChildren.push_back(i->getAdditionalChildren());
60 myLaneDemandElementChildren.push_back(i->getDemandElementChildren());
63 edge->incRef(
"GNEChange_Edge");
85 i->removeEdgeChild(
myEdge);
88 i->removeEdgeChild(
myEdge);
91 i->removeEdgeChild(
myEdge);
95 i->removeEdgeParent(
myEdge);
98 i->removeEdgeParent(
myEdge);
101 i->removeEdgeParent(
myEdge);
237 i->removeEdgeChild(
myEdge);
240 i->removeEdgeChild(
myEdge);
243 i->removeEdgeChild(
myEdge);
247 i->removeEdgeParent(
myEdge);
250 i->removeEdgeParent(
myEdge);
253 i->removeEdgeParent(
myEdge);
std::vector< std::vector< GNEAdditional * > > myLaneAdditionalChildren
vector of references to vector of additional children (used by lanes)
the function-object for an editing operation (abstract base)
std::vector< std::vector< GNEDemandElement * > > myLaneDemandElementParents
vector of references to vector of demand element parents (used by lanes)
std::vector< std::vector< GNEShape * > > myLaneShapeParents
vector of references to vector of shape parents (used by lanes)
root element of a network file
const std::vector< GNEAdditional * > & myEdgeAdditionalChildren
reference to vector of additional children
void deleteSingleEdge(GNEEdge *edge, bool updateViewAfterDeleting)
deletes a single edge
void insertEdge(GNEEdge *edge)
inserts a single edge into the net and into the underlying netbuild-container
const std::vector< GNEShape * > & myEdgeShapeParents
reference to vector of shape parents
FXString undoName() const
return undoName
const std::vector< GNEDemandElement * > & myEdgeDemandElementParents
reference to vector of demand element parents
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
const std::vector< GNEAdditional * > & myEdgeAdditionalParents
reference to vector of additional parents
std::vector< std::vector< GNEDemandElement * > > myLaneDemandElementChildren
vector of references to vector of demand element children (used by lanes)
const std::vector< GNELane * > & getLanes() const
returns a reference to the lane vector
const std::string getID() const
function to support debugging
void decRef(const std::string &debugMsg="")
Decrease reference.
begin/end of the description of an edge
A road/street connecting two junctions (netedit-version)
FXString redoName() const
get Redo name
GNENet * myNet
the net to which operations shall be applied or which shall be informed about gui updates (we are not...
const std::string & getTagStr() const
get tag assigned to this object in string format
void requiereSaveNet(bool value)
inform that net has to be saved
GNEEdge * myEdge
full information regarding the edge that is to be created/deleted
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag ...
std::vector< std::vector< GNEShape * > > myLaneShapeChildren
vector of references to vector of shape children (used by lanes)
const std::vector< GNEDemandElement * > & myEdgeDemandElementChildren
vector of references to vector of demand element children (used by lanes)
~GNEChange_Edge()
Destructor.
bool unreferenced()
check if object ins't referenced
std::vector< std::vector< GNEAdditional * > > myLaneAdditionalParents
vector of references to vector of additional parents (used by lanes)
const std::vector< GNEShape * > & myEdgeShapeChildren
reference to vector of shape children