Public Member Functions | Private Attributes | List of all members
lanelet::ConstLaneletOrArea Class Reference

An object that can either refer to a lanelet or an area. More...

#include <LaneletOrArea.h>

Public Member Functions

template<typename VisitorT >
decltype(auto) applyVisitor (VisitorT visitor) const
 apply a generic visitor More...
 
Optional< ConstAreaarea () const
 get the managed area More...
 
const AttributeMapattributes () const
 get the attributes of the lanelet or area More...
 
CompoundPolygon3d boundingPolygon () const
 returns the outer bound if it is an area or the polygon made of the lanelet bounds if it's a lanelet More...
 
 ConstLaneletOrArea ()=default
 
 ConstLaneletOrArea (const ConstLaneletOrArea &rhs)=default
 
 ConstLaneletOrArea (ConstArea area)
 
 ConstLaneletOrArea (ConstLanelet lanelet)
 
 ConstLaneletOrArea (ConstLaneletOrArea &&rhs)=default
 
bool equals (const ConstLaneletOrArea &other) const
 compares this lanelet or area More...
 
Id id () const
 get the id of the lanelet or area More...
 
bool isArea () const
 true if this object holds an area More...
 
bool isLanelet () const
 true if this objct holds a lanelet More...
 
Optional< ConstLaneletlanelet () const
 return the managed lanelet More...
 
 operator const ConstArea & () const
 convert to area (type is not checked) More...
 
 operator const ConstLanelet & () const
 convert to lanelet (type is not checked) More...
 
ConstLaneletOrAreaoperator= (const ConstLaneletOrArea &rhs)=default
 
ConstLaneletOrAreaoperator= (ConstArea area)
 
ConstLaneletOrAreaoperator= (ConstLanelet lanelet)
 
ConstLaneletOrAreaoperator= (ConstLaneletOrArea &&rhs)=default
 
RegulatoryElementConstPtrs regulatoryElements () const
 
template<typename T >
std::vector< std::shared_ptr< const T > > regulatoryElementsAs () const
 
 ~ConstLaneletOrArea () noexcept=default
 

Private Attributes

boost::variant< ConstLanelet, ConstArealaneletOrArea_
 

Detailed Description

An object that can either refer to a lanelet or an area.

Definition at line 10 of file LaneletOrArea.h.

Constructor & Destructor Documentation

◆ ConstLaneletOrArea() [1/5]

lanelet::ConstLaneletOrArea::ConstLaneletOrArea ( )
default

◆ ConstLaneletOrArea() [2/5]

lanelet::ConstLaneletOrArea::ConstLaneletOrArea ( ConstLaneletOrArea &&  rhs)
default

◆ ConstLaneletOrArea() [3/5]

lanelet::ConstLaneletOrArea::ConstLaneletOrArea ( const ConstLaneletOrArea rhs)
default

◆ ~ConstLaneletOrArea()

lanelet::ConstLaneletOrArea::~ConstLaneletOrArea ( )
defaultnoexcept

◆ ConstLaneletOrArea() [4/5]

lanelet::ConstLaneletOrArea::ConstLaneletOrArea ( ConstLanelet  lanelet)
inline

Definition at line 19 of file LaneletOrArea.h.

◆ ConstLaneletOrArea() [5/5]

lanelet::ConstLaneletOrArea::ConstLaneletOrArea ( ConstArea  area)
inline

Definition at line 21 of file LaneletOrArea.h.

Member Function Documentation

◆ applyVisitor()

template<typename VisitorT >
decltype(auto) lanelet::ConstLaneletOrArea::applyVisitor ( VisitorT  visitor) const
inline

apply a generic visitor

Definition at line 46 of file LaneletOrArea.h.

◆ area()

Optional<ConstArea> lanelet::ConstLaneletOrArea::area ( ) const
inline

get the managed area

Definition at line 79 of file LaneletOrArea.h.

◆ attributes()

const AttributeMap& lanelet::ConstLaneletOrArea::attributes ( ) const
inline

get the attributes of the lanelet or area

Definition at line 56 of file LaneletOrArea.h.

◆ boundingPolygon()

CompoundPolygon3d lanelet::ConstLaneletOrArea::boundingPolygon ( ) const
inline

returns the outer bound if it is an area or the polygon made of the lanelet bounds if it's a lanelet

Definition at line 90 of file LaneletOrArea.h.

◆ equals()

bool lanelet::ConstLaneletOrArea::equals ( const ConstLaneletOrArea other) const
inline

compares this lanelet or area

Definition at line 87 of file LaneletOrArea.h.

◆ id()

Id lanelet::ConstLaneletOrArea::id ( ) const
inline

get the id of the lanelet or area

Definition at line 51 of file LaneletOrArea.h.

◆ isArea()

bool lanelet::ConstLaneletOrArea::isArea ( ) const
inline

true if this object holds an area

Definition at line 33 of file LaneletOrArea.h.

◆ isLanelet()

bool lanelet::ConstLaneletOrArea::isLanelet ( ) const
inline

true if this objct holds a lanelet

Definition at line 36 of file LaneletOrArea.h.

◆ lanelet()

Optional<ConstLanelet> lanelet::ConstLaneletOrArea::lanelet ( ) const
inline

return the managed lanelet

Definition at line 70 of file LaneletOrArea.h.

◆ operator const ConstArea &()

lanelet::ConstLaneletOrArea::operator const ConstArea & ( ) const
inlineexplicit

convert to area (type is not checked)

Definition at line 42 of file LaneletOrArea.h.

◆ operator const ConstLanelet &()

lanelet::ConstLaneletOrArea::operator const ConstLanelet & ( ) const
inlineexplicit

convert to lanelet (type is not checked)

Definition at line 39 of file LaneletOrArea.h.

◆ operator=() [1/4]

ConstLaneletOrArea& lanelet::ConstLaneletOrArea::operator= ( const ConstLaneletOrArea rhs)
default

◆ operator=() [2/4]

ConstLaneletOrArea& lanelet::ConstLaneletOrArea::operator= ( ConstArea  area)
inline

Definition at line 27 of file LaneletOrArea.h.

◆ operator=() [3/4]

ConstLaneletOrArea& lanelet::ConstLaneletOrArea::operator= ( ConstLanelet  lanelet)
inline

Definition at line 23 of file LaneletOrArea.h.

◆ operator=() [4/4]

ConstLaneletOrArea& lanelet::ConstLaneletOrArea::operator= ( ConstLaneletOrArea &&  rhs)
default

◆ regulatoryElements()

RegulatoryElementConstPtrs lanelet::ConstLaneletOrArea::regulatoryElements ( ) const
inline

Definition at line 60 of file LaneletOrArea.h.

◆ regulatoryElementsAs()

template<typename T >
std::vector<std::shared_ptr<const T> > lanelet::ConstLaneletOrArea::regulatoryElementsAs ( ) const
inline

Definition at line 65 of file LaneletOrArea.h.

Member Data Documentation

◆ laneletOrArea_

boost::variant<ConstLanelet, ConstArea> lanelet::ConstLaneletOrArea::laneletOrArea_
private

Definition at line 98 of file LaneletOrArea.h.


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


lanelet2_core
Author(s): Fabian Poggenhans
autogenerated on Thu Mar 6 2025 03:25:52