Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
AGStreet::Builder Class Reference

#include <AGStreet.h>

Inheritance diagram for AGStreet::Builder:
[legend]
Collaboration diagram for AGStreet::Builder:
[legend]

Public Member Functions

ROEdgebuildEdge (const std::string &name, RONode *from, RONode *to, const int priority)
 Builds an edge with the given name.
 

Protected Member Functions

int getNextIndex ()
 Returns the index of the edge to built.
 

Private Attributes

int myCurrentIndex
 The next edge's index.
 

Detailed Description

Definition at line 52 of file AGStreet.h.

Member Function Documentation

◆ buildEdge()

ROEdge * AGStreet::Builder::buildEdge ( const std::string &  name,
RONode from,
RONode to,
const int  priority 
)
inlinevirtual

Builds an edge with the given name.

Parameters
[in]nameThe name of the edge
[in]fromThe node the edge begins at
[in]toThe node the edge ends at
[in]priorityThe edge priority (road class)
Returns
A proper instance of the named edge

Implements ROAbstractEdgeBuilder.

Definition at line 62 of file AGStreet.h.

References ROAbstractEdgeBuilder::getNextIndex().

◆ getNextIndex()

int ROAbstractEdgeBuilder::getNextIndex ( )
inlineprotectedinherited

Returns the index of the edge to built.

Returns
Next valid edge index

Definition at line 80 of file ROAbstractEdgeBuilder.h.

References ROAbstractEdgeBuilder::myCurrentIndex.

Referenced by buildEdge(), RODFEdgeBuilder::buildEdge(), RODUAEdgeBuilder::buildEdge(), ROJTREdgeBuilder::buildEdge(), and ROMAEdgeBuilder::buildEdge().

Here is the caller graph for this function:

Field Documentation

◆ myCurrentIndex

int ROAbstractEdgeBuilder::myCurrentIndex
privateinherited

The next edge's index.

Definition at line 87 of file ROAbstractEdgeBuilder.h.

Referenced by ROAbstractEdgeBuilder::getNextIndex().


The documentation for this class was generated from the following file: