145 throw ProcessError(
"invalid index in GNEHierarchicalStructureParents::add");
154 }
else if ((index < 0) || (index > (
int)
myParentEdges.size())) {
157 throw ProcessError(
"invalid index in GNEHierarchicalStructureParents::add");
166 }
else if ((index < 0) || (index > (
int)
myParentLanes.size())) {
169 throw ProcessError(
"invalid index in GNEHierarchicalStructureParents::add");
181 throw ProcessError(
"invalid index in GNEHierarchicalStructureParents::add");
193 throw ProcessError(
"invalid index in GNEHierarchicalStructureParents::add");
205 throw ProcessError(
"invalid index in GNEHierarchicalStructureParents::add");
217 throw ProcessError(
"invalid index in GNEHierarchicalStructureParents::add");
std::vector< ParentType > GNEHierarchicalContainerParents
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
const std::string getID() const
get ID (all Attribute Carriers have one)
const std::string & getTagStr() const
get tag assigned to this object in string format
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