Template Class LineStringImpl
Defined in File LineString.h
Inheritance Relationships
Base Type
public lanelet::Primitive< ConstLineStringT >
(Template Class Primitive)
Class Documentation
-
template<typename ConstLineStringT>
class LineStringImpl : public lanelet::Primitive<ConstLineStringT> Implementation template class that is common to all non-const types.
Public Types
-
using iterator = internal::SelectLsIteratorT<PointType>
Public Functions
-
LineStringImpl() = default
-
template<typename OtherT>
inline explicit LineStringImpl(const LineStringImpl<OtherT> &other) Construct from other (mutable!) LineStrings.
Construct from linestring data.
-
inline LineStringImpl &operator=(std::vector<PointType> rhs)
Copy assign from a normal vector. The Id of this object is unchanged.
-
inline LineStringImpl &operator=(std::vector<Point3d> &&rhs)
Move assign from a normal vector. Id and attributes stay unchanged.
-
inline iterator insert(iterator position, const PointType &point)
Inserts an element at a specific position.
Just as you would expect from an std::vector… If you plan to insert more elements than one, use the ranged version below. That saves you from some unnecessary cache regenerations.
-
template<typename InIter>
inline iterator insert(iterator position, InIter start, InIter end) Inserts an range of elements at a specific position.
-
inline void pop_back()
removes element from the end
-
inline void reserve(size_t num)
request a change in capacity
-
inline void resize(size_t num)
Changes the number of points contained either by deleting them or by inserting new (invalId points).
-
inline void clear()
Remove all points, making the linestring invalid until new points are inserted.
-
inline SegmentType segment(size_t idx) noexcept
returns the n-th segment. If n equals size() -1, the segment from back() to front() is returned.
Protected Types
-
using Base = Primitive<ConstLineStringT>
Protected Functions
-
LineStringImpl(LineStringImpl &&rhs) noexcept = default
-
LineStringImpl &operator=(LineStringImpl &&rhs) noexcept = default
-
LineStringImpl(const LineStringImpl &rhs) = default
-
LineStringImpl &operator=(const LineStringImpl &rhs) = default
-
~LineStringImpl() noexcept = default
-
using iterator = internal::SelectLsIteratorT<PointType>