Public Types | Public Member Functions | Static Public Attributes | List of all members
lanelet::ConstPoint2d Class Reference

An immutable 2d point. More...

#include <Point.h>

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

Public Types

using BasicPoint = BasicPoint2d
 returned basic point type More...
 
using Category = traits::PointTag
 
using ConstType = ConstPoint2d
 
using MutableType = Point2d
 
using ThreeDType = ConstPoint3d
 
using TwoDType = ConstPoint2d
 
- Public Types inherited from lanelet::ConstPrimitive< PointData >
using DataType = PointData
 

Public Member Functions

 ConstPoint2d (Id id, const BasicPoint3d &point, const AttributeMap &attributes=AttributeMap())
 Construct from an id and a point. More...
 
- Public Member Functions inherited from lanelet::ConstPrimitive< PointData >
const Attributeattribute (const std::string &name) const
 retrieve an attribute More...
 
const Attributeattribute (AttributeName name) const
 retrieve an attribute (enum version) More...
 
attributeOr (const std::string &name, T defaultVal) const noexcept
 retrieve an attribute (string version) More...
 
attributeOr (AttributeName name, T defaultVal) const
 retrieve an attribute (enum version) More...
 
const AttributeMapattributes () const
 get the attributes of this primitive More...
 
const std::shared_ptr< const PointData > & constData () const
 get the internal data of this primitive More...
 
 ConstPrimitive (const std::shared_ptr< const PointData > &data)
 Construct from a pointer to the data. More...
 
bool hasAttribute (const std::string &name) const noexcept
 check whether this primitive has a specific attribute More...
 
bool hasAttribute (AttributeName name) const noexcept
 check for an attribute (enum version) More...
 
Id id () const noexcept
 get the unique id of this primitive More...
 
bool operator!= (const ConstPrimitive &rhs) const
 
bool operator== (const ConstPrimitive &rhs) const
 

Static Public Attributes

static constexpr traits::Dimensions Dimension = traits::Dimensions::Two
 
- Static Public Attributes inherited from lanelet::ConstPrimitive< PointData >
static constexpr bool IsConst
 

Additional Inherited Members

- Protected Member Functions inherited from lanelet::ConstPrimitive< PointData >
 ConstPrimitive (ConstPrimitive &&rhs) noexcept=default
 
 ConstPrimitive (const ConstPrimitive &rhs)=default
 
ConstPrimitiveoperator= (ConstPrimitive &&rhs) noexcept=default
 
ConstPrimitiveoperator= (const ConstPrimitive &rhs)=default
 
 ~ConstPrimitive () noexcept=default
 

Detailed Description

An immutable 2d point.

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

Member Typedef Documentation

◆ BasicPoint

returned basic point type

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

◆ Category

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

◆ ConstType

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

◆ MutableType

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

◆ ThreeDType

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

◆ TwoDType

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

Constructor & Destructor Documentation

◆ ConstPoint2d()

lanelet::ConstPoint2d::ConstPoint2d ( Id  id,
const BasicPoint3d point,
const AttributeMap attributes = AttributeMap() 
)
inline

Construct from an id and a point.

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

Member Data Documentation

◆ Dimension

constexpr traits::Dimensions lanelet::ConstPoint2d::Dimension = traits::Dimensions::Two
static

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


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


lanelet2_core
Author(s): Fabian Poggenhans
autogenerated on Tue Jun 6 2023 02:23:32