40 GNEChange(laneType, forward, laneType->isAttributeCarrierSelected()),
42 myPosition(position) {
43 laneType->incRef(
"GNEChange_LaneType");
53 if (std::find(laneTypes.begin(), laneTypes.end(),
myLaneType) != laneTypes.end()) {
103 return "Undo create laneType";
105 return "Undo delete laneType";
113 return "Redo create laneType";
115 return "Redo delete laneType";
@ SUMO_TAG_NET
root element of a network file
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
const std::string & getTagStr() const
get tag assigned to this object in string format
GNENet * getNet() const
get pointer to net
const int myPosition
position in edgeType Parent
~GNEChange_LaneType()
Destructor.
GNELaneType * myLaneType
full information regarding the laneType that is to be created/deleted
FXString redoName() const
get Redo name
FXString undoName() const
return undoName
the function-object for an editing operation (abstract base)
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
const std::vector< GNELaneType * > & getLaneTypes() const
get laneTypes
void removeLaneType(GNELaneType *laneType)
remove laneType
void addLaneType(GNELaneType *laneType, const int position)
add laneType
GNEEdgeType * getEdgeTypeParent() const
get edge type parent
void requireSaveNet(bool value)
inform that net has to be saved
const std::string & getID() const
get ID
void decRef(const std::string &debugMsg="")
Decrease reference.
bool unreferenced()
check if object ins't referenced