29template <
typename ParentType>
61 template<
typename ParentType>
65 template<
typename ParentType>
66 ParentType
at(
const int index)
const;
72 template<
typename ParentType>
73 void add(ParentType parent,
const int index = -1);
76 template<
typename ParentType>
83 template<
typename ParentType>
87 template<
typename ParentType>
std::vector< ParentType > GNEHierarchicalContainerParents
A road/street connecting two junctions (netedit-version)
Hierarchical structure used for keep parents.
GNEHierarchicalContainerParents< GNETAZSourceSink * > myParentTAZSourceSinks
parents TAZSourceSinks (Unused, but needed for function addElementInParentsAndChildren)
void remove(ParentType parent)
remove parent element
void replaceAll(const GNEHierarchicalContainerParents< ParentType > &newParents)
update all parent element
GNEHierarchicalStructureParents()
default constructor
ParentType at(const int index) const
get parent at the given position
GNEHierarchicalContainerParents< GNEJunction * > myParentJunctions
parents junctions
void clear()
clear container
GNEHierarchicalContainerParents< GNEDemandElement * > myParentDemandElements
parents demand elements
GNEHierarchicalContainerParents< GNELane * > myParentLanes
parents lanes
const GNEHierarchicalContainerParents< ParentType > & get() const
get parents
GNEHierarchicalContainerParents< GNEAdditional * > myParentAdditionals
parents additionals
GNEHierarchicalContainerParents< GNEGenericData * > myParentGenericDatas
parents generic datas
void add(ParentType parent, const int index=-1)
add parent element
void replaceSingle(const int index, ParentType newParent)
update single parent element
GNEHierarchicalContainerParents< GNEEdge * > myParentEdges
parents edges
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.