Public Types | Public Member Functions | List of all members
lanelet::LineStringOrPolygon3d Class Reference

This class holds either a LineString3d or a Polygon3d. More...

#include <LineStringOrPolygon.h>

Inheritance diagram for lanelet::LineStringOrPolygon3d:
Inheritance graph
[legend]

Public Types

using Base = LineStringOrPolygonBase< LineString3d, Polygon3d >
 

Public Member Functions

template<typename VisitorT >
decltype(auto) applyVisitor (VisitorT visitor)
 apply a generic visitor More...
 
RuleParameter asRuleParameter () const
 
 operator RuleParameter () const
 
- Public Member Functions inherited from lanelet::LineStringOrPolygonBase< LineString3d, Polygon3d >
decltype(auto) applyVisitor (VisitorT visitor) const
 apply a generic visitor More...
 
const AttributeMapattributes () const
 get the attributes of the linestring or polygon More...
 
bool equals (const LineStringOrPolygonBase &other) const
 
Id id () const
 get the id of the linestring or polygon More...
 
bool isLineString () const
 true if this objct holds a lineString More...
 
bool isPolygon () const
 true if this object holds an polygon More...
 
Optional< LineString3dlineString () const
 return the managed linestring More...
 
 LineStringOrPolygonBase ()=default
 
 LineStringOrPolygonBase (const LineStringOrPolygonBase &rhs)=default
 
 LineStringOrPolygonBase (LineString3d linestring)
 
 LineStringOrPolygonBase (LineStringOrPolygonBase &&rhs)=default
 
 LineStringOrPolygonBase (Polygon3d polygon)
 
 operator const LineString3d & () const
 convert to linestring (type is not checked) More...
 
 operator const Polygon3d & () const
 convert to polygon (type is not checked) More...
 
LineStringOrPolygonBaseoperator= (const LineStringOrPolygonBase &rhs)=default
 
LineStringOrPolygonBaseoperator= (LineString3d linestring)
 
LineStringOrPolygonBaseoperator= (LineStringOrPolygonBase &&rhs)=default
 
LineStringOrPolygonBaseoperator= (Polygon3d poly)
 
Optional< Polygon3dpolygon () const
 get the managed polygon More...
 
 ~LineStringOrPolygonBase () noexcept=default
 

Additional Inherited Members

- Protected Attributes inherited from lanelet::LineStringOrPolygonBase< LineString3d, Polygon3d >
boost::variant< LineString3d, Polygon3dlsOrPoly_
 

Detailed Description

This class holds either a LineString3d or a Polygon3d.

Definition at line 86 of file LineStringOrPolygon.h.

Member Typedef Documentation

◆ Base

Definition at line 88 of file LineStringOrPolygon.h.

Member Function Documentation

◆ applyVisitor()

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

apply a generic visitor

Definition at line 98 of file LineStringOrPolygon.h.

◆ asRuleParameter()

RuleParameter lanelet::LineStringOrPolygon3d::asRuleParameter ( ) const
inline

Definition at line 91 of file LineStringOrPolygon.h.

◆ operator RuleParameter()

lanelet::LineStringOrPolygon3d::operator RuleParameter ( ) const
inline

Definition at line 90 of file LineStringOrPolygon.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