41 GNEChange(genericData, forward, genericData->isAttributeCarrierSelected()),
42 myGenericData(genericData),
43 myDataSetParent(genericData->getDataIntervalParent()->getDataSetParent()),
44 myDataIntervalParent(genericData->getDataIntervalParent()),
45 myPath(genericData->getPath()) {
46 myGenericData->incRef(
"GNEChange_GenericData");
63 for (
const auto& pathElement :
myPath) {
65 if (pathElement.getJunction()) {
66 pathElement.getJunction()->removePathGenericData(
myGenericData);
88 for (
const auto& pathElement :
myPath) {
90 if (pathElement.getJunction()) {
91 pathElement.getJunction()->removePathGenericData(
myGenericData);
136 for (
const auto& pathElement :
myPath) {
138 if (pathElement.getJunction()) {
139 pathElement.getJunction()->removePathGenericData(
myGenericData);
const std::string & getTagStr() const
get tag assigned to this object in string format
void unselectAttributeCarrier(const bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
GNENet * getNet() const
get pointer to net
void selectAttributeCarrier(const bool changeFlag=true)
select attribute carrier using GUIGlobalSelection
FXString undoName() const
return undoName
FXString redoName() const
get Redo name
GNEDataSet * myDataSetParent
data set parent
GNEGenericData * myGenericData
full information regarding the generic data set that is to be created/deleted
const std::vector< GNEPathElements::PathElement > & myPath
reference to path vector
GNEDataInterval * myDataIntervalParent
data interval parent
~GNEChange_GenericData()
Destructor.
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 bool mySelectedElement
flag for check if element is selected
void addElementInParentsAndChildren(T *element)
add given element into parents and children (only use in redo() function)
void removeElementFromParentsAndChildren(T *element)
remove given element from parents and children (only use in redo() function)
void restoreHierarchicalContainers()
restore container (only use in undo() function)
void removeGenericDataChild(GNEGenericData *genericData)
add generic data child
bool hasGenericDataChild(GNEGenericData *genericData) const
check if given generic data is child of this data interval
void addGenericDataChild(GNEGenericData *genericData)
add generic data child
bool dataIntervalChildrenExist(GNEDataInterval *dataInterval) const
check if given data interval exist
An Element which don't belongs to GNENet but has influency in the simulation.
const std::string & getID() const
get ID
bool dataSetExist(const GNEDataSet *dataSet) const
return true if given demand element exist
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
retrieve all attribute carriers of Net
void requireSaveDataElements(bool value)
inform that data sets has to be saved
void decRef(const std::string &debugMsg="")
Decrease reference.
bool unreferenced()
check if object ins't referenced