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

Function Documentation

bool lanelet::utils::has(const RegulatoryElement &regElem, Id id)

returns true if element of a regulatory element 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 linestrings and lanelets.

Parameters:
  • regElem – the element holding other primitives

  • id – id to look for

Returns:

true if the primitive has such an element