MCPcopy Create free account
hub / github.com/comaps/comaps / ForAnyPoint

Method ForAnyPoint

generator/feature_builder.hpp:97–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95
96 template <class ToDo>
97 bool ForAnyPoint(ToDo && toDo) const
98 {
99 if (IsPoint())
100 return toDo(m_center);
101
102 for (auto const & points : m_polygons)
103 if (base::AnyOf(points, std::forward<ToDo>(toDo)))
104 return true;
105
106 return false;
107 }
108
109 template <class ToDo>
110 void ForEachPolygon(ToDo && toDo) const

Callers 1

ForAnyPointFunction · 0.80

Calls 1

AnyOfFunction · 0.85

Tested by

no test coverage detected