CARLA
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
MapGen::RoadSegmentBuilder Class Reference
+ Collaboration diagram for MapGen::RoadSegmentBuilder:

Public Member Functions

void Add (Graph::HalfEdge &edge)
 
void Close ()
 
 RoadSegmentBuilder (const Graph &graph)
 

Public Attributes

std::vector< TUniquePtr< RoadSegmentDescription > > Segments
 

Private Member Functions

bool insert (Graph::HalfEdge &edge)
 Insert both half-edges only if they haven't been visited yet. More...
 

Private Attributes

const Graph_graph
 
bool _handlingInitial = true
 
std::vector< const Graph::HalfEdge * > _initial
 
std::unordered_set< const Graph::HalfEdge * > _visitedEdges
 

Detailed Description

Definition at line 92 of file GraphParser.cpp.

Constructor & Destructor Documentation

◆ RoadSegmentBuilder()

MapGen::RoadSegmentBuilder::RoadSegmentBuilder ( const Graph graph)
inlineexplicit

Definition at line 97 of file GraphParser.cpp.

Member Function Documentation

◆ Add()

void MapGen::RoadSegmentBuilder::Add ( Graph::HalfEdge edge)
inline

Definition at line 99 of file GraphParser.cpp.

References _handlingInitial, _initial, MapGen::DoublyConnectedEdgeList::GetSource(), and insert().

Referenced by MapGen::GraphParser::GraphParser().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Close()

void MapGen::RoadSegmentBuilder::Close ( )
inline

Definition at line 113 of file GraphParser.cpp.

References _handlingInitial, and _initial.

Referenced by MapGen::GraphParser::GraphParser().

+ Here is the caller graph for this function:

◆ insert()

bool MapGen::RoadSegmentBuilder::insert ( Graph::HalfEdge edge)
inlineprivate

Insert both half-edges only if they haven't been visited yet.

Definition at line 123 of file GraphParser.cpp.

References _visitedEdges, and MapGen::DoublyConnectedEdgeList::GetPair().

Referenced by Add().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _graph

const Graph& MapGen::RoadSegmentBuilder::_graph
private

Definition at line 128 of file GraphParser.cpp.

◆ _handlingInitial

bool MapGen::RoadSegmentBuilder::_handlingInitial = true
private

Definition at line 132 of file GraphParser.cpp.

Referenced by Add(), and Close().

◆ _initial

std::vector<const Graph::HalfEdge *> MapGen::RoadSegmentBuilder::_initial
private

Definition at line 134 of file GraphParser.cpp.

Referenced by Add(), and Close().

◆ _visitedEdges

std::unordered_set<const Graph::HalfEdge *> MapGen::RoadSegmentBuilder::_visitedEdges
private

Definition at line 130 of file GraphParser.cpp.

Referenced by insert().

◆ Segments

std::vector<TUniquePtr<RoadSegmentDescription> > MapGen::RoadSegmentBuilder::Segments

Definition at line 95 of file GraphParser.cpp.

Referenced by MapGen::GraphParser::GraphParser().


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