CARLA
Public Member Functions | Private Types | Private Attributes | List of all members
MapGen::GraphParser Class Reference

#include <GraphParser.h>

+ Inheritance diagram for MapGen::GraphParser:
+ Collaboration diagram for MapGen::GraphParser:

Public Member Functions

size_t CityAreaCount () const
 
const CityAreaDescriptionGetCityAreaAt (size_t i) const
 
const RoadSegmentDescriptionGetRoadSegmentAt (size_t i) const
 
 GraphParser (DoublyConnectedEdgeList &Dcel)
 
bool HasCityAreas () const
 
bool HasRoadSegments () const
 
TUniquePtr< CityAreaDescriptionPopCityArea ()
 
TUniquePtr< RoadSegmentDescriptionPopRoadSegment ()
 
size_t RoadSegmentCount () const
 

Private Types

using CityAreaList = std::vector< TUniquePtr< CityAreaDescription > >
 
using RoadSegmentList = std::vector< TUniquePtr< RoadSegmentDescription > >
 

Private Attributes

CityAreaList CityAreas
 
RoadSegmentList RoadSegments
 

Additional Inherited Members

- Private Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Detailed Description

Definition at line 19 of file GraphParser.h.

Member Typedef Documentation

◆ CityAreaList

using MapGen::GraphParser::CityAreaList = std::vector<TUniquePtr<CityAreaDescription> >
private

Definition at line 65 of file GraphParser.h.

◆ RoadSegmentList

using MapGen::GraphParser::RoadSegmentList = std::vector<TUniquePtr<RoadSegmentDescription> >
private

Definition at line 63 of file GraphParser.h.

Constructor & Destructor Documentation

◆ GraphParser()

MapGen::GraphParser::GraphParser ( DoublyConnectedEdgeList Dcel)
explicit

Member Function Documentation

◆ CityAreaCount()

size_t MapGen::GraphParser::CityAreaCount ( ) const
inline

Definition at line 37 of file GraphParser.h.

References CityAreas.

◆ GetCityAreaAt()

const CityAreaDescription& MapGen::GraphParser::GetCityAreaAt ( size_t  i) const
inline

Definition at line 45 of file GraphParser.h.

References CityAreas.

◆ GetRoadSegmentAt()

const RoadSegmentDescription& MapGen::GraphParser::GetRoadSegmentAt ( size_t  i) const
inline

Definition at line 41 of file GraphParser.h.

References RoadSegments.

◆ HasCityAreas()

bool MapGen::GraphParser::HasCityAreas ( ) const
inline

Definition at line 29 of file GraphParser.h.

References CityAreas.

◆ HasRoadSegments()

bool MapGen::GraphParser::HasRoadSegments ( ) const
inline

Definition at line 25 of file GraphParser.h.

References RoadSegments.

◆ PopCityArea()

TUniquePtr<CityAreaDescription> MapGen::GraphParser::PopCityArea ( )
inline

Definition at line 55 of file GraphParser.h.

References CityAreas.

◆ PopRoadSegment()

TUniquePtr<RoadSegmentDescription> MapGen::GraphParser::PopRoadSegment ( )
inline

Definition at line 49 of file GraphParser.h.

References RoadSegments.

◆ RoadSegmentCount()

size_t MapGen::GraphParser::RoadSegmentCount ( ) const
inline

Definition at line 33 of file GraphParser.h.

References RoadSegments.

Member Data Documentation

◆ CityAreas

CityAreaList MapGen::GraphParser::CityAreas
private

Definition at line 69 of file GraphParser.h.

Referenced by CityAreaCount(), GetCityAreaAt(), HasCityAreas(), and PopCityArea().

◆ RoadSegments

RoadSegmentList MapGen::GraphParser::RoadSegments
private

Definition at line 67 of file GraphParser.h.

Referenced by GetRoadSegmentAt(), HasRoadSegments(), PopRoadSegment(), and RoadSegmentCount().


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