Eclipse SUMO - Simulation of Urban MObility
|
Hierarchical container (used for keep myParent and myChildren. More...
#include <GNEHierarchicalContainer.h>
Public Member Functions | |
template<> | |
void | addChildElement (const GNEHierarchicalElement *, GNEDemandElement *demandElement) |
template<> | |
void | addChildElement (const GNEHierarchicalElement *hierarchicalElement, GNEAdditional *additional) |
template<> | |
void | addChildElement (const GNEHierarchicalElement *hierarchicalElement, GNEEdge *edge) |
template<> | |
void | addChildElement (const GNEHierarchicalElement *hierarchicalElement, GNEGenericData *genericData) |
template<> | |
void | addChildElement (const GNEHierarchicalElement *hierarchicalElement, GNEJunction *junction) |
template<> | |
void | addChildElement (const GNEHierarchicalElement *hierarchicalElement, GNELane *lane) |
template<typename T > | |
void | addChildElement (const GNEHierarchicalElement *hierarchicalElement, T *element) |
add child element | |
template<> | |
void | addParentElement (const GNEHierarchicalElement *hierarchicalElement, GNEAdditional *additional) |
template<> | |
void | addParentElement (const GNEHierarchicalElement *hierarchicalElement, GNEDemandElement *demandElement) |
template<> | |
void | addParentElement (const GNEHierarchicalElement *hierarchicalElement, GNEEdge *edge) |
template<> | |
void | addParentElement (const GNEHierarchicalElement *hierarchicalElement, GNEGenericData *genericData) |
template<> | |
void | addParentElement (const GNEHierarchicalElement *hierarchicalElement, GNEJunction *junction) |
template<> | |
void | addParentElement (const GNEHierarchicalElement *hierarchicalElement, GNELane *lane) |
template<typename T > | |
void | addParentElement (const GNEHierarchicalElement *hierarchicalElement, T *element) |
add parent element | |
template<> | |
const std::vector< GNEJunction * > & | getChildren () const |
template<> | |
const std::vector< GNEEdge * > & | getChildren () const |
template<> | |
const std::vector< GNELane * > & | getChildren () const |
template<> | |
const std::vector< GNEAdditional * > & | getChildren () const |
template<> | |
const std::vector< GNEDemandElement * > & | getChildren () const |
template<> | |
const std::vector< GNEGenericData * > & | getChildren () const |
template<typename T > | |
const T & | getChildren () const |
get children | |
size_t | getContainerSize () const |
get container size | |
template<> | |
const std::vector< GNEJunction * > & | getParents () const |
template<> | |
const std::vector< GNEEdge * > & | getParents () const |
template<> | |
const std::vector< GNELane * > & | getParents () const |
template<> | |
const std::vector< GNEAdditional * > & | getParents () const |
template<> | |
const std::vector< GNEDemandElement * > & | getParents () const |
template<> | |
const std::vector< GNEGenericData * > & | getParents () const |
template<typename T > | |
const T & | getParents () const |
get parents | |
GNEHierarchicalContainer () | |
default constructor | |
GNEHierarchicalContainer (const std::vector< GNEJunction * > &parentJunctions, const std::vector< GNEEdge * > &parentEdges, const std::vector< GNELane * > &parentLanes, const std::vector< GNEAdditional * > &parentAdditionals, const std::vector< GNEDemandElement * > &ParentDemandElements, const std::vector< GNEGenericData * > &parentGenericDatas) | |
parameter constructor (only for parents) | |
template<> | |
void | removeChildElement (const GNEHierarchicalElement *hierarchicalElement, GNEAdditional *additional) |
template<> | |
void | removeChildElement (const GNEHierarchicalElement *hierarchicalElement, GNEDemandElement *demandElement) |
template<> | |
void | removeChildElement (const GNEHierarchicalElement *hierarchicalElement, GNEEdge *edge) |
template<> | |
void | removeChildElement (const GNEHierarchicalElement *hierarchicalElement, GNEGenericData *genericData) |
template<> | |
void | removeChildElement (const GNEHierarchicalElement *hierarchicalElement, GNEJunction *junction) |
template<> | |
void | removeChildElement (const GNEHierarchicalElement *hierarchicalElement, GNELane *lane) |
template<typename T > | |
void | removeChildElement (const GNEHierarchicalElement *hierarchicalElement, T *element) |
remove child element | |
template<> | |
void | removeParentElement (const GNEHierarchicalElement *hierarchicalElement, GNEAdditional *additional) |
template<> | |
void | removeParentElement (const GNEHierarchicalElement *hierarchicalElement, GNEDemandElement *demandElement) |
template<> | |
void | removeParentElement (const GNEHierarchicalElement *hierarchicalElement, GNEEdge *edge) |
template<> | |
void | removeParentElement (const GNEHierarchicalElement *hierarchicalElement, GNEGenericData *genericData) |
template<> | |
void | removeParentElement (const GNEHierarchicalElement *hierarchicalElement, GNEJunction *junction) |
template<> | |
void | removeParentElement (const GNEHierarchicalElement *hierarchicalElement, GNELane *lane) |
template<typename T > | |
void | removeParentElement (const GNEHierarchicalElement *hierarchicalElement, T *element) |
remove parent element | |
template<> | |
void | setChildren (const std::vector< GNEAdditional * > &newChildren) |
template<> | |
void | setChildren (const std::vector< GNEDemandElement * > &newChildren) |
template<> | |
void | setChildren (const std::vector< GNEEdge * > &newChildren) |
template<> | |
void | setChildren (const std::vector< GNEGenericData * > &newChildren) |
template<> | |
void | setChildren (const std::vector< GNEJunction * > &newChildren) |
template<> | |
void | setChildren (const std::vector< GNELane * > &newChildren) |
template<typename T > | |
void | setChildren (const T &newChildren) |
set children | |
template<> | |
void | setParents (const std::vector< GNEAdditional * > &newParents) |
template<> | |
void | setParents (const std::vector< GNEDemandElement * > &newParents) |
template<> | |
void | setParents (const std::vector< GNEEdge * > &newParents) |
template<> | |
void | setParents (const std::vector< GNEGenericData * > &newParents) |
template<> | |
void | setParents (const std::vector< GNEJunction * > &newParents) |
template<> | |
void | setParents (const std::vector< GNELane * > &newParents) |
template<typename T > | |
void | setParents (const T &newParents) |
set parents | |
Private Attributes | |
std::vector< GNEAdditional * > | myChildAdditionals |
vector with the child additional | |
std::vector< GNEDemandElement * > | myChildDemandElements |
vector with the child demand elements | |
std::vector< GNEEdge * > | myChildEdges |
vector with the child edges | |
std::vector< GNEGenericData * > | myChildGenericDatas |
vector with the generic child data elements | |
std::vector< GNEJunction * > | myChildJunctions |
vector with the child junctions | |
std::vector< GNELane * > | myChildLanes |
vector with the child lanes | |
std::vector< GNEAdditional * > | myParentAdditionals |
vector of parent additionals | |
std::vector< GNEDemandElement * > | myParentDemandElements |
vector of parent demand elements | |
std::vector< GNEEdge * > | myParentEdges |
vector of parent edges | |
std::vector< GNEGenericData * > | myParentGenericDatas |
vector of parent generic datas | |
std::vector< GNEJunction * > | myParentJunctions |
vector of parent junctions | |
std::vector< GNELane * > | myParentLanes |
vector of parent lanes | |
Static Private Attributes | |
static const bool | checkContainer = true |
flag for enable/disable check duplicate elements (only used for debug purposes) | |
Hierarchical container (used for keep myParent and myChildren.
Definition at line 42 of file GNEHierarchicalContainer.h.
GNEHierarchicalContainer::GNEHierarchicalContainer | ( | ) |
default constructor
Definition at line 34 of file GNEHierarchicalContainer.cpp.
GNEHierarchicalContainer::GNEHierarchicalContainer | ( | const std::vector< GNEJunction * > & | parentJunctions, |
const std::vector< GNEEdge * > & | parentEdges, | ||
const std::vector< GNELane * > & | parentLanes, | ||
const std::vector< GNEAdditional * > & | parentAdditionals, | ||
const std::vector< GNEDemandElement * > & | ParentDemandElements, | ||
const std::vector< GNEGenericData * > & | parentGenericDatas | ||
) |
parameter constructor (only for parents)
Definition at line 37 of file GNEHierarchicalContainer.cpp.
void GNEHierarchicalContainer::addChildElement | ( | const GNEHierarchicalElement * | , |
GNEDemandElement * | demandElement | ||
) |
Definition at line 255 of file GNEHierarchicalContainer.cpp.
References myChildDemandElements.
void GNEHierarchicalContainer::addChildElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEAdditional * | additional | ||
) |
Definition at line 244 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myChildAdditionals.
void GNEHierarchicalContainer::addChildElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEEdge * | edge | ||
) |
Definition at line 222 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myChildEdges.
void GNEHierarchicalContainer::addChildElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEGenericData * | genericData | ||
) |
Definition at line 270 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myChildGenericDatas.
void GNEHierarchicalContainer::addChildElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEJunction * | junction | ||
) |
Definition at line 211 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myChildJunctions.
void GNEHierarchicalContainer::addChildElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNELane * | lane | ||
) |
Definition at line 233 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myChildLanes.
void GNEHierarchicalContainer::addChildElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
T * | element | ||
) |
add child element
Referenced by GNEHierarchicalElement::addChildElement(), GNEHierarchicalElement::addChildElement(), GNEHierarchicalElement::addChildElement(), GNEHierarchicalElement::addChildElement(), GNEHierarchicalElement::addChildElement(), and GNEHierarchicalElement::addChildElement().
void GNEHierarchicalContainer::addParentElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEAdditional * | additional | ||
) |
Definition at line 106 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myParentAdditionals.
void GNEHierarchicalContainer::addParentElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEDemandElement * | demandElement | ||
) |
Definition at line 117 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myParentDemandElements.
void GNEHierarchicalContainer::addParentElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEEdge * | edge | ||
) |
Definition at line 84 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myParentEdges.
void GNEHierarchicalContainer::addParentElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEGenericData * | genericData | ||
) |
Definition at line 128 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myParentGenericDatas.
void GNEHierarchicalContainer::addParentElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEJunction * | junction | ||
) |
Definition at line 73 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myParentJunctions.
void GNEHierarchicalContainer::addParentElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNELane * | lane | ||
) |
Definition at line 95 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myParentLanes.
void GNEHierarchicalContainer::addParentElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
T * | element | ||
) |
add parent element
Referenced by GNEHierarchicalElement::addParentElement(), GNEHierarchicalElement::addParentElement(), GNEHierarchicalElement::addParentElement(), GNEHierarchicalElement::addParentElement(), GNEHierarchicalElement::addParentElement(), and GNEHierarchicalElement::addParentElement().
const std::vector< GNEJunction * > & GNEHierarchicalContainer::getChildren | ( | ) | const |
Definition at line 425 of file GNEHierarchicalContainer.cpp.
References myChildJunctions.
const std::vector< GNEEdge * > & GNEHierarchicalContainer::getChildren | ( | ) | const |
Definition at line 431 of file GNEHierarchicalContainer.cpp.
References myChildEdges.
const std::vector< GNELane * > & GNEHierarchicalContainer::getChildren | ( | ) | const |
Definition at line 437 of file GNEHierarchicalContainer.cpp.
References myChildLanes.
const std::vector< GNEAdditional * > & GNEHierarchicalContainer::getChildren | ( | ) | const |
Definition at line 443 of file GNEHierarchicalContainer.cpp.
References myChildAdditionals.
const std::vector< GNEDemandElement * > & GNEHierarchicalContainer::getChildren | ( | ) | const |
Definition at line 449 of file GNEHierarchicalContainer.cpp.
References myChildDemandElements.
const std::vector< GNEGenericData * > & GNEHierarchicalContainer::getChildren | ( | ) | const |
Definition at line 455 of file GNEHierarchicalContainer.cpp.
References myChildGenericDatas.
const T & GNEHierarchicalContainer::getChildren | ( | ) | const |
get children
Referenced by GNEChange::addElementInParentsAndChildren(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEHierarchicalElement::getChildEdges(), GNEHierarchicalElement::getChildGenericDatas(), GNEHierarchicalElement::getChildJunctions(), GNEHierarchicalElement::getChildLanes(), GNEChange::removeElementFromParentsAndChildren(), and GNEHierarchicalElement::replaceChildElements().
size_t GNEHierarchicalContainer::getContainerSize | ( | ) | const |
get container size
Definition at line 54 of file GNEHierarchicalContainer.cpp.
References myChildAdditionals, myChildDemandElements, myChildEdges, myChildGenericDatas, myChildJunctions, myChildLanes, myParentAdditionals, myParentDemandElements, myParentEdges, myParentGenericDatas, myParentJunctions, and myParentLanes.
Referenced by GNEHierarchicalElement::getAllHierarchicalElements().
const std::vector< GNEJunction * > & GNEHierarchicalContainer::getParents | ( | ) | const |
Definition at line 353 of file GNEHierarchicalContainer.cpp.
References myParentJunctions.
const std::vector< GNEEdge * > & GNEHierarchicalContainer::getParents | ( | ) | const |
Definition at line 359 of file GNEHierarchicalContainer.cpp.
References myParentEdges.
const std::vector< GNELane * > & GNEHierarchicalContainer::getParents | ( | ) | const |
Definition at line 365 of file GNEHierarchicalContainer.cpp.
References myParentLanes.
const std::vector< GNEAdditional * > & GNEHierarchicalContainer::getParents | ( | ) | const |
Definition at line 371 of file GNEHierarchicalContainer.cpp.
References myParentAdditionals.
const std::vector< GNEDemandElement * > & GNEHierarchicalContainer::getParents | ( | ) | const |
Definition at line 377 of file GNEHierarchicalContainer.cpp.
References myParentDemandElements.
const std::vector< GNEGenericData * > & GNEHierarchicalContainer::getParents | ( | ) | const |
Definition at line 383 of file GNEHierarchicalContainer.cpp.
References myParentGenericDatas.
const T & GNEHierarchicalContainer::getParents | ( | ) | const |
get parents
Referenced by GNEChange::addElementInParentsAndChildren(), GNEHierarchicalElement::getParentAdditionals(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentGenericDatas(), GNEHierarchicalElement::getParentJunctions(), GNEHierarchicalElement::getParentLanes(), GNEChange_DemandElement::redo(), GNEChange::removeElementFromParentsAndChildren(), GNEHierarchicalElement::replaceParentElements(), and GNEChange_DemandElement::undo().
void GNEHierarchicalContainer::removeChildElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEAdditional * | additional | ||
) |
Definition at line 317 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myChildAdditionals.
void GNEHierarchicalContainer::removeChildElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEDemandElement * | demandElement | ||
) |
Definition at line 329 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myChildDemandElements.
void GNEHierarchicalContainer::removeChildElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEEdge * | edge | ||
) |
Definition at line 293 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myChildEdges.
void GNEHierarchicalContainer::removeChildElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEGenericData * | genericData | ||
) |
Definition at line 341 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myChildGenericDatas.
void GNEHierarchicalContainer::removeChildElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEJunction * | junction | ||
) |
Definition at line 281 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myChildJunctions.
void GNEHierarchicalContainer::removeChildElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNELane * | lane | ||
) |
Definition at line 305 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myChildLanes.
void GNEHierarchicalContainer::removeChildElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
T * | element | ||
) |
remove child element
Referenced by GNEHierarchicalElement::removeChildElement(), GNEHierarchicalElement::removeChildElement(), GNEHierarchicalElement::removeChildElement(), GNEHierarchicalElement::removeChildElement(), GNEHierarchicalElement::removeChildElement(), and GNEHierarchicalElement::removeChildElement().
void GNEHierarchicalContainer::removeParentElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEAdditional * | additional | ||
) |
Definition at line 175 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myParentAdditionals.
void GNEHierarchicalContainer::removeParentElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEDemandElement * | demandElement | ||
) |
Definition at line 187 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myParentDemandElements.
void GNEHierarchicalContainer::removeParentElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEEdge * | edge | ||
) |
Definition at line 151 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myParentEdges.
void GNEHierarchicalContainer::removeParentElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEGenericData * | genericData | ||
) |
Definition at line 199 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myParentGenericDatas.
void GNEHierarchicalContainer::removeParentElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNEJunction * | junction | ||
) |
Definition at line 139 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myParentJunctions.
void GNEHierarchicalContainer::removeParentElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
GNELane * | lane | ||
) |
Definition at line 163 of file GNEHierarchicalContainer.cpp.
References checkContainer, GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and myParentLanes.
void GNEHierarchicalContainer::removeParentElement | ( | const GNEHierarchicalElement * | hierarchicalElement, |
T * | element | ||
) |
remove parent element
Referenced by GNEHierarchicalElement::removeParentElement(), GNEHierarchicalElement::removeParentElement(), GNEHierarchicalElement::removeParentElement(), GNEHierarchicalElement::removeParentElement(), GNEHierarchicalElement::removeParentElement(), and GNEHierarchicalElement::removeParentElement().
void GNEHierarchicalContainer::setChildren | ( | const std::vector< GNEAdditional * > & | newChildren | ) |
Definition at line 479 of file GNEHierarchicalContainer.cpp.
References myChildAdditionals.
void GNEHierarchicalContainer::setChildren | ( | const std::vector< GNEDemandElement * > & | newChildren | ) |
Definition at line 485 of file GNEHierarchicalContainer.cpp.
References myChildDemandElements.
void GNEHierarchicalContainer::setChildren | ( | const std::vector< GNEEdge * > & | newChildren | ) |
Definition at line 467 of file GNEHierarchicalContainer.cpp.
References myChildEdges.
void GNEHierarchicalContainer::setChildren | ( | const std::vector< GNEGenericData * > & | newChildren | ) |
Definition at line 491 of file GNEHierarchicalContainer.cpp.
References myChildGenericDatas.
void GNEHierarchicalContainer::setChildren | ( | const std::vector< GNEJunction * > & | newChildren | ) |
Definition at line 461 of file GNEHierarchicalContainer.cpp.
References myChildJunctions.
void GNEHierarchicalContainer::setChildren | ( | const std::vector< GNELane * > & | newChildren | ) |
Definition at line 473 of file GNEHierarchicalContainer.cpp.
References myChildLanes.
void GNEHierarchicalContainer::setChildren | ( | const T & | newChildren | ) |
set children
Referenced by GNEHierarchicalElement::replaceChildElements().
void GNEHierarchicalContainer::setParents | ( | const std::vector< GNEAdditional * > & | newParents | ) |
Definition at line 407 of file GNEHierarchicalContainer.cpp.
References myParentAdditionals.
void GNEHierarchicalContainer::setParents | ( | const std::vector< GNEDemandElement * > & | newParents | ) |
Definition at line 413 of file GNEHierarchicalContainer.cpp.
References myParentDemandElements.
void GNEHierarchicalContainer::setParents | ( | const std::vector< GNEEdge * > & | newParents | ) |
Definition at line 395 of file GNEHierarchicalContainer.cpp.
References myParentEdges.
void GNEHierarchicalContainer::setParents | ( | const std::vector< GNEGenericData * > & | newParents | ) |
Definition at line 419 of file GNEHierarchicalContainer.cpp.
References myParentGenericDatas.
void GNEHierarchicalContainer::setParents | ( | const std::vector< GNEJunction * > & | newParents | ) |
Definition at line 389 of file GNEHierarchicalContainer.cpp.
References myParentJunctions.
void GNEHierarchicalContainer::setParents | ( | const std::vector< GNELane * > & | newParents | ) |
Definition at line 401 of file GNEHierarchicalContainer.cpp.
References myParentLanes.
void GNEHierarchicalContainer::setParents | ( | const T & | newParents | ) |
set parents
Referenced by GNEHierarchicalElement::replaceParentElements().
|
staticprivate |
flag for enable/disable check duplicate elements (only used for debug purposes)
Definition at line 130 of file GNEHierarchicalContainer.h.
Referenced by addChildElement(), addChildElement(), addChildElement(), addChildElement(), addChildElement(), addParentElement(), addParentElement(), addParentElement(), addParentElement(), addParentElement(), addParentElement(), removeChildElement(), removeChildElement(), removeChildElement(), removeChildElement(), removeChildElement(), removeChildElement(), removeParentElement(), removeParentElement(), removeParentElement(), removeParentElement(), removeParentElement(), and removeParentElement().
|
private |
vector with the child additional
Definition at line 121 of file GNEHierarchicalContainer.h.
Referenced by addChildElement(), getChildren(), getContainerSize(), removeChildElement(), and setChildren().
|
private |
vector with the child demand elements
Definition at line 124 of file GNEHierarchicalContainer.h.
Referenced by addChildElement(), getChildren(), getContainerSize(), removeChildElement(), and setChildren().
|
private |
vector with the child edges
Definition at line 115 of file GNEHierarchicalContainer.h.
Referenced by addChildElement(), getChildren(), getContainerSize(), removeChildElement(), and setChildren().
|
private |
vector with the generic child data elements
Definition at line 127 of file GNEHierarchicalContainer.h.
Referenced by addChildElement(), getChildren(), getContainerSize(), removeChildElement(), and setChildren().
|
private |
vector with the child junctions
Definition at line 112 of file GNEHierarchicalContainer.h.
Referenced by addChildElement(), getChildren(), getContainerSize(), removeChildElement(), and setChildren().
|
private |
vector with the child lanes
Definition at line 118 of file GNEHierarchicalContainer.h.
Referenced by addChildElement(), getChildren(), getContainerSize(), removeChildElement(), and setChildren().
|
private |
vector of parent additionals
Definition at line 103 of file GNEHierarchicalContainer.h.
Referenced by addParentElement(), getContainerSize(), getParents(), removeParentElement(), and setParents().
|
private |
vector of parent demand elements
Definition at line 106 of file GNEHierarchicalContainer.h.
Referenced by addParentElement(), getContainerSize(), getParents(), removeParentElement(), and setParents().
|
private |
vector of parent edges
Definition at line 97 of file GNEHierarchicalContainer.h.
Referenced by addParentElement(), getContainerSize(), getParents(), removeParentElement(), and setParents().
|
private |
vector of parent generic datas
Definition at line 109 of file GNEHierarchicalContainer.h.
Referenced by addParentElement(), getContainerSize(), getParents(), removeParentElement(), and setParents().
|
private |
vector of parent junctions
Definition at line 94 of file GNEHierarchicalContainer.h.
Referenced by addParentElement(), getContainerSize(), getParents(), removeParentElement(), and setParents().
|
private |
vector of parent lanes
Definition at line 100 of file GNEHierarchicalContainer.h.
Referenced by addParentElement(), getContainerSize(), getParents(), removeParentElement(), and setParents().