Namespaces | Classes | Typedefs | Enumerations | Functions
lanelet::traits Namespace Reference

Namespaces

 detail
 
 internal
 

Classes

struct  AreaTag
 Identifies LaneletPrimitives. More...
 
struct  BoundingBoxTag
 Identifies PointPrimitives. More...
 
struct  LaneletTag
 Identifies PolygonPrimitives. More...
 
struct  LayerPrimitive
 
struct  LayerPrimitive< const T >
 
struct  LineStringTag
 Identifies bounding boxes. More...
 
struct  LineStringTraits
 Specialization of traits for linestrings. More...
 
struct  LineStringTraits< BasicLineString2d >
 
struct  LineStringTraits< BasicLineString3d >
 
struct  LineStringTraits< Segment< PointT > >
 
struct  Owned
 Can be used to determine which primitive type is managed by a primitive. More...
 
struct  Owned< Area >
 
struct  Owned< Lanelet >
 
struct  Owned< LineString3d >
 
struct  Owned< Polygon3d >
 
struct  Owned< RegulatoryElementPtr >
 
struct  PointTag
 
struct  PointTraits
 Specialization of traits for points. More...
 
struct  PointTraits< BasicPoint2d >
 
struct  PointTraits< BasicPoint3d >
 
struct  PointTraits< Eigen::Vector2d >
 
struct  PolygonTag
 Identifies LineStringPrimitives. More...
 
struct  PolygonTraits
 Specialization of traits for polygons. More...
 
struct  PrimitiveTraits
 Identifies RegulatoryElementPrimitives. More...
 
struct  PrimitiveTraits< BasicLineString2d >
 
struct  PrimitiveTraits< BasicLineString3d >
 
struct  PrimitiveTraits< BasicPoint2d >
 
struct  PrimitiveTraits< BasicPoint3d >
 used for templates that require info about this point More...
 
struct  PrimitiveTraits< BasicPolygon2d >
 
struct  PrimitiveTraits< BasicPolygon3d >
 
struct  PrimitiveTraits< BoundingBox2d >
 
struct  PrimitiveTraits< BoundingBox3d >
 
struct  PrimitiveTraits< ConstRuleParameter >
 
struct  PrimitiveTraits< Eigen::Vector2d >
 
struct  PrimitiveTraits< RegulatoryElementConstPtr >
 
struct  PrimitiveTraits< RegulatoryElementPtr >
 
struct  PrimitiveTraits< RuleParameter >
 
struct  PrimitiveTraits< Segment< PointT > >
 
struct  RegulatoryElementTag
 Identifies AreaPrimitives. More...
 

Typedefs

template<typename PointT >
using BasicPointT = typename PointTraits< PointT >::BasicPoint
 
template<typename PointT >
using ConstPointT = typename PointTraits< PointT >::ConstPoint
 
template<typename PrimitiveT >
using ConstPrimitiveType = typename PrimitiveTraits< PrimitiveT >::ConstType
 Utility for determinig the matching const type for a primitive. More...
 
template<typename LineStringT >
using HybridT = typename detail::HybridType< LineStringT >::Type
 
template<typename T >
using LayerPrimitiveType = typename LayerPrimitive< T >::Type
 
template<typename PointT >
using MutablePointT = typename PointTraits< PointT >::MutablePoint
 
template<typename PrimitiveT >
using MutablePrimitiveType = typename PrimitiveTraits< PrimitiveT >::MutableType
 Utility for determinig the matching mutable type for a primitive. More...
 
template<typename PrimitiveT >
using OwnedT = typename Owned< PrimitiveT >::Type
 
template<typename LineStringT >
using PointType = typename LineStringTraits< LineStringT >::PointType
 
template<typename PrimitiveT >
using ThreeD = typename PrimitiveTraits< PrimitiveT >::ThreeDType
 f Utility for determinig the matching three dimensional type for a primitive More...
 
template<typename PrimitiveT >
using TwoD = typename PrimitiveTraits< PrimitiveT >::TwoDType
 Utility for determinig the matching two dimensional type for a primitive. More...
 

Enumerations

enum  Dimensions { Dimensions::Two = 2, Dimensions::Three = 3 }
 

Functions

template<typename PrimT >
Id getId (const PrimT &prim)
 
template<>
Id getId< ConstRuleParameter > (const ConstRuleParameter &prim)
 
template<>
Id getId< RegulatoryElementConstPtr > (const RegulatoryElementConstPtr &prim)
 
template<>
Id getId< RegulatoryElementPtr > (const RegulatoryElementPtr &prim)
 
template<>
Id getId< RuleParameter > (const RuleParameter &prim)
 Extracts the id of a rule parameter. More...
 
template<typename PrimitiveT >
constexpr bool is2D ()
 Checks (at compile time) whether a primitive is two dimensional. More...
 
template<typename PrimitiveT >
constexpr bool is3D ()
 Checks (at compile time) whether a primitive is three dimensional. More...
 
template<typename T >
constexpr bool isAreaT ()
 
template<typename PrimT , typename TagT >
constexpr bool isCategory ()
 
template<typename PrimitiveT >
constexpr bool isConst ()
 
template<typename PrimitiveT >
constexpr bool isLaneletPrimitive ()
 
template<typename T >
constexpr bool isLaneletT ()
 
template<typename T >
constexpr bool isLinestringT ()
 
template<typename T >
constexpr bool isPointT ()
 
template<typename T >
constexpr bool isPolygonT ()
 
template<typename T >
constexpr bool isRegulatoryElementT ()
 
template<typename T >
constexpr bool noRegelem ()
 
template<>
BasicPoint2d to2D (const BasicPoint3d &primitive)
 
BoundingBox2d to2D (const BoundingBox3d &primitive)
 
template<typename PrimitiveT >
auto to2D (const PrimitiveT &primitive) -> TwoD< PrimitiveT >
 Converts a primitive to its matching twoD type. More...
 
template<>
BasicLineString2d to2D< BasicLineString3d > (const BasicLineString3d &primitive)
 
template<>
BasicPolygon2d to2D< BasicPolygon3d > (const BasicPolygon3d &primitive)
 
template<>
BasicPoint3d to3D (const BasicPoint2d &primitive)
 
BoundingBox3d to3D (const BoundingBox2d &primitive)
 
template<typename PrimitiveT >
auto to3D (const PrimitiveT &primitive) -> ThreeD< PrimitiveT >
 Converts a primitive to its matching threeD type. More...
 
template<typename PointT >
auto toBasicPoint (const PointT &point) -> std::enable_if_t< PointTraits< PointT >::IsPrimitive, BasicPointT< PointT >>
 
BasicPolygon2d toBasicPolygon2d (BasicPolygon2d &&t)
 
template<typename PolygonT >
std::enable_if_t< traits::isPolygonT< PolygonT >), BasicPolygon2dtoBasicPolygon2d (const PolygonT &t)
 
template<>
BasicPolygon2d toBasicPolygon2d< BasicPolygon2d > (const BasicPolygon2d &t)
 
template<>
BasicPolygon2d toBasicPolygon2d< BasicPolygon3d > (const BasicPolygon3d &t)
 
BasicPolygon3d toBasicPolygon3d (BasicPolygon3d &&t)
 
template<typename PolygonT >
std::enable_if_t< traits::isPolygonT< PolygonT >), BasicPolygon3dtoBasicPolygon3d (const PolygonT &t)
 
template<>
BasicPolygon3d toBasicPolygon3d< BasicPolygon3d > (const BasicPolygon3d &t)
 
template<typename PointT >
auto toBasicSegment (const Segment< PointT > &s)
 
template<typename PrimitiveT >
ConstPrimitiveType< PrimitiveT > toConst (const PrimitiveT &primitive)
 Converts a primitive to its matching const type. More...
 
template<>
ConstRuleParameter toConst< RuleParameter > (const RuleParameter &primitive)
 
template<typename LineStringT >
constexpr auto toHybrid (const LineStringT ls)
 

Typedef Documentation

◆ BasicPointT

template<typename PointT >
using lanelet::traits::BasicPointT = typedef typename PointTraits<PointT>::BasicPoint

Definition at line 156 of file Traits.h.

◆ ConstPointT

template<typename PointT >
using lanelet::traits::ConstPointT = typedef typename PointTraits<PointT>::ConstPoint

Definition at line 159 of file Traits.h.

◆ ConstPrimitiveType

template<typename PrimitiveT >
using lanelet::traits::ConstPrimitiveType = typedef typename PrimitiveTraits<PrimitiveT>::ConstType

Utility for determinig the matching const type for a primitive.

Definition at line 80 of file Traits.h.

◆ HybridT

template<typename LineStringT >
using lanelet::traits::HybridT = typedef typename detail::HybridType<LineStringT>::Type

Definition at line 762 of file primitives/LineString.h.

◆ LayerPrimitiveType

template<typename T >
using lanelet::traits::LayerPrimitiveType = typedef typename LayerPrimitive<T>::Type

Definition at line 560 of file LaneletMap.h.

◆ MutablePointT

template<typename PointT >
using lanelet::traits::MutablePointT = typedef typename PointTraits<PointT>::MutablePoint

Definition at line 162 of file Traits.h.

◆ MutablePrimitiveType

template<typename PrimitiveT >
using lanelet::traits::MutablePrimitiveType = typedef typename PrimitiveTraits<PrimitiveT>::MutableType

Utility for determinig the matching mutable type for a primitive.

Definition at line 84 of file Traits.h.

◆ OwnedT

template<typename PrimitiveT >
using lanelet::traits::OwnedT = typedef typename Owned<PrimitiveT>::Type

Definition at line 76 of file Traits.h.

◆ PointType

template<typename LineStringT >
using lanelet::traits::PointType = typedef typename LineStringTraits<LineStringT>::PointType

Definition at line 191 of file Traits.h.

◆ ThreeD

template<typename PrimitiveT >
using lanelet::traits::ThreeD = typedef typename PrimitiveTraits<PrimitiveT>::ThreeDType

f Utility for determinig the matching three dimensional type for a primitive

Definition at line 92 of file Traits.h.

◆ TwoD

template<typename PrimitiveT >
using lanelet::traits::TwoD = typedef typename PrimitiveTraits<PrimitiveT>::TwoDType

Utility for determinig the matching two dimensional type for a primitive.

Definition at line 88 of file Traits.h.

Enumeration Type Documentation

◆ Dimensions

Enumerator
Two 
Three 

Definition at line 129 of file Traits.h.

Function Documentation

◆ getId()

template<typename PrimT >
Id lanelet::traits::getId ( const PrimT &  prim)

Definition at line 194 of file Traits.h.

◆ getId< ConstRuleParameter >()

Definition at line 196 of file RegulatoryElement.cpp.

◆ getId< RegulatoryElementConstPtr >()

Definition at line 302 of file primitives/RegulatoryElement.h.

◆ getId< RegulatoryElementPtr >()

template<>
Id lanelet::traits::getId< RegulatoryElementPtr > ( const RegulatoryElementPtr prim)
inline

Definition at line 297 of file primitives/RegulatoryElement.h.

◆ getId< RuleParameter >()

template<>
Id lanelet::traits::getId< RuleParameter > ( const RuleParameter prim)

Extracts the id of a rule parameter.

Definition at line 191 of file RegulatoryElement.cpp.

◆ is2D()

template<typename PrimitiveT >
constexpr bool lanelet::traits::is2D ( )
constexpr

Checks (at compile time) whether a primitive is two dimensional.

Definition at line 119 of file Traits.h.

◆ is3D()

template<typename PrimitiveT >
constexpr bool lanelet::traits::is3D ( )
constexpr

Checks (at compile time) whether a primitive is three dimensional.

Definition at line 125 of file Traits.h.

◆ isAreaT()

template<typename T >
constexpr bool lanelet::traits::isAreaT ( )
constexpr

Definition at line 358 of file primitives/Area.h.

◆ isCategory()

template<typename PrimT , typename TagT >
constexpr bool lanelet::traits::isCategory ( )
constexpr

Definition at line 181 of file Traits.h.

◆ isConst()

template<typename PrimitiveT >
constexpr bool lanelet::traits::isConst ( )
constexpr

Definition at line 113 of file Traits.h.

◆ isLaneletPrimitive()

template<typename PrimitiveT >
constexpr bool lanelet::traits::isLaneletPrimitive ( )
constexpr

Definition at line 321 of file Primitive.h.

◆ isLaneletT()

template<typename T >
constexpr bool lanelet::traits::isLaneletT ( )
constexpr

Definition at line 381 of file primitives/Lanelet.h.

◆ isLinestringT()

template<typename T >
constexpr bool lanelet::traits::isLinestringT ( )
constexpr

Definition at line 744 of file primitives/LineString.h.

◆ isPointT()

template<typename T >
constexpr bool lanelet::traits::isPointT ( )
constexpr

Definition at line 330 of file primitives/Point.h.

◆ isPolygonT()

template<typename T >
constexpr bool lanelet::traits::isPolygonT ( )
constexpr

Definition at line 370 of file primitives/Polygon.h.

◆ isRegulatoryElementT()

template<typename T >
constexpr bool lanelet::traits::isRegulatoryElementT ( )
constexpr

Definition at line 497 of file primitives/RegulatoryElement.h.

◆ noRegelem()

template<typename T >
constexpr bool lanelet::traits::noRegelem ( )
constexpr

Definition at line 186 of file Traits.h.

◆ to2D() [1/3]

template<>
BasicPoint2d lanelet::traits::to2D ( const BasicPoint3d primitive)
inline

Definition at line 92 of file primitives/Point.h.

◆ to2D() [2/3]

BoundingBox2d lanelet::traits::to2D ( const BoundingBox3d primitive)
inline

Definition at line 304 of file primitives/BoundingBox.h.

◆ to2D() [3/3]

template<typename PrimitiveT >
auto lanelet::traits::to2D ( const PrimitiveT &  primitive) -> TwoD<PrimitiveT>

Converts a primitive to its matching twoD type.

Definition at line 102 of file Traits.h.

◆ to2D< BasicLineString3d >()

template<>
BasicLineString2d lanelet::traits::to2D< BasicLineString3d > ( const BasicLineString3d primitive)
inline

Definition at line 68 of file primitives/LineString.h.

◆ to2D< BasicPolygon3d >()

template<>
BasicPolygon2d lanelet::traits::to2D< BasicPolygon3d > ( const BasicPolygon3d primitive)
inline

Definition at line 391 of file primitives/Polygon.h.

◆ to3D() [1/3]

template<>
BasicPoint3d lanelet::traits::to3D ( const BasicPoint2d primitive)
inline

Definition at line 88 of file primitives/Point.h.

◆ to3D() [2/3]

BoundingBox3d lanelet::traits::to3D ( const BoundingBox2d primitive)
inline

Definition at line 303 of file primitives/BoundingBox.h.

◆ to3D() [3/3]

template<typename PrimitiveT >
auto lanelet::traits::to3D ( const PrimitiveT &  primitive) -> ThreeD<PrimitiveT>

Converts a primitive to its matching threeD type.

Definition at line 96 of file Traits.h.

◆ toBasicPoint()

template<typename PointT >
auto lanelet::traits::toBasicPoint ( const PointT &  point) -> std::enable_if_t<PointTraits<PointT>::IsPrimitive, BasicPointT<PointT>>

Definition at line 165 of file Traits.h.

◆ toBasicPolygon2d() [1/2]

BasicPolygon2d lanelet::traits::toBasicPolygon2d ( BasicPolygon2d &&  t)
inline

Definition at line 412 of file primitives/Polygon.h.

◆ toBasicPolygon2d() [2/2]

template<typename PolygonT >
std::enable_if_t<traits::isPolygonT<PolygonT>), BasicPolygon2d> lanelet::traits::toBasicPolygon2d ( const PolygonT &  t)

Definition at line 398 of file primitives/Polygon.h.

◆ toBasicPolygon2d< BasicPolygon2d >()

Definition at line 403 of file primitives/Polygon.h.

◆ toBasicPolygon2d< BasicPolygon3d >()

Definition at line 408 of file primitives/Polygon.h.

◆ toBasicPolygon3d() [1/2]

BasicPolygon3d lanelet::traits::toBasicPolygon3d ( BasicPolygon3d &&  t)
inline

Definition at line 424 of file primitives/Polygon.h.

◆ toBasicPolygon3d() [2/2]

template<typename PolygonT >
std::enable_if_t<traits::isPolygonT<PolygonT>), BasicPolygon3d> lanelet::traits::toBasicPolygon3d ( const PolygonT &  t)

Definition at line 415 of file primitives/Polygon.h.

◆ toBasicPolygon3d< BasicPolygon3d >()

Definition at line 420 of file primitives/Polygon.h.

◆ toBasicSegment()

template<typename PointT >
auto lanelet::traits::toBasicSegment ( const Segment< PointT > &  s)

Definition at line 75 of file primitives/LineString.h.

◆ toConst()

template<typename PrimitiveT >
ConstPrimitiveType<PrimitiveT> lanelet::traits::toConst ( const PrimitiveT &  primitive)

Converts a primitive to its matching const type.

Definition at line 108 of file Traits.h.

◆ toConst< RuleParameter >()

Definition at line 171 of file RegulatoryElement.cpp.

◆ toHybrid()

template<typename LineStringT >
constexpr auto lanelet::traits::toHybrid ( const LineStringT  ls)
constexpr

Definition at line 765 of file primitives/LineString.h.



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