Class LineStringData

Inheritance Relationships

Base Type

Class Documentation

class LineStringData : public lanelet::PrimitiveData

Common data management class for all LineString primitives.

Public Types

using iterator = internal::ReverseAndForwardIterator<Points3d::iterator>
using const_iterator = internal::ReverseAndForwardIterator<Points3d::const_iterator>

Public Functions

inline explicit LineStringData(Id id)
inline LineStringData(Id id, Points3d points, AttributeMap attributes)
inline Points3d &points()

returns a reference to the points

This ignores the “inverted” property

template<typename IteratorT = const_iterator>
inline IteratorT begin(bool inverted) const noexcept
template<typename IteratorT = iterator>
inline IteratorT begin(bool inverted) noexcept
template<typename IteratorT = const_iterator>
inline IteratorT end(bool inverted) const noexcept
template<typename IteratorT = iterator>
inline IteratorT end(bool inverted) noexcept
inline auto size() const noexcept
inline auto empty() const noexcept
inline const ConstPoint3d &at(bool inverted, size_t idx) const noexcept
inline const ConstPoint3d &front(bool inverted) const noexcept
inline const ConstPoint3d &back(bool inverted) const noexcept