Template Function lanelet::utils::has(const CompoundLineStringImpl<PointT>&, Id)

Function Documentation

template<typename PointT>
bool lanelet::utils::has(const CompoundLineStringImpl<PointT> &ls, Id id)

returns true if element of a primitive has a matching Id

This function does not look for the id of the element, only its members Works for linestrings and polylines. A similar implementation exists for regulatory elements and lanelets.

Parameters:
  • ls – the element holding other primitives

  • id – id to look for

Returns:

true if the primitive has such an element