37 #ifdef CHECK_MEMORY_LEAKS 57 myForceInsert(forceInsert) {
59 myJunction->incRef(
"GNEChange_TLS");
64 myTlDef =
new NBOwnTLDef(tlID ==
"" ? myJunction->getMicrosimID() : tlID, 0, type);
GNEJunction * myJunction
we need the junction because it is the target of our change commands
the function-object for an editing operation (abstract base)
The base class for traffic light logic definitions.
bool myForceInsert
check if forceInsert is enabled
NBTrafficLightDefinition * myTlDef
the traffic light to be created/deleted. We assume no responsiblity for the pointer ...
~GNEChange_TLS()
Destructor.
void removeTrafficLight(NBTrafficLightDefinition *tlDef)
removes a traffic light
static OptionsCont & getOptions()
Retrieves the options.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static StringBijection< TrafficLightType > TrafficLightTypes
traffic light types
FXString redoName() const
get Redo name
void decRef(const std::string &debugMsg="")
FXString undoName() const
return undoName
T get(const std::string &str) const
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag ...
A traffic light logics which must be computed (only nodes/edges are given)
void addTrafficLight(NBTrafficLightDefinition *tlDef, bool forceInsert)
adds a traffic light