Class ConstLineString2d

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class ConstLineString2d : public lanelet::ConstLineStringImpl<Point2d>

A normal 2d linestring with immutable data.

Subclassed by lanelet::Primitive< ConstLineString2d >, lanelet::ConstHybridLineString2d

Public Types

using ConstType = ConstLineString2d
using MutableType = LineString2d
using TwoDType = ConstLineString2d
using ThreeDType = ConstLineString3d
using HybridType = ConstHybridLineString2d

Public Functions

ConstLineString2d() = default
inline ConstLineString2d invert() const noexcept

create a new, inverted linestring from this one

inline explicit ConstLineStringImpl(Id id = InvalId, Points3d points = Points3d(), const AttributeMap &attributes = AttributeMap())

Constructs a LineString or similar from an Id and a list of points.

inline explicit ConstLineStringImpl(const std::shared_ptr<const LineStringData> &data, bool inverted = false)

Constructs a linestring from the data object of another linestring.

template<typename OtherT>
inline explicit ConstLineStringImpl(const ConstLineStringImpl<OtherT> &other)

construct from other ConstLineStrings

ConstLineStringImpl(ConstLineStringImpl &&rhs) noexcept = default
ConstLineStringImpl(const ConstLineStringImpl &rhs) = default