Function lanelet::utils::has(const LaneletSequence&, Id)

Function Documentation

inline bool lanelet::utils::has(const LaneletSequence &ll, 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:
  • ll – the element holding other primitives

  • id – id to look for

Returns:

true if the primitive has such an element