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

Function GetLimitRect

generator/affiliation.cpp:33–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32template <typename T>
33m2::RectD GetLimitRect(T && t)
34{
35 using Type = RemoveCvrefT<T>;
36 if constexpr (std::is_same_v<Type, FeatureBuilder>)
37 return t.GetLimitRect();
38 if constexpr (std::is_same_v<Type, std::vector<m2::PointD>>)
39 {
40 m2::RectD r;
41 for (auto const & p : t)
42 r.Add(p);
43 return r;
44 }
45 if constexpr (std::is_same_v<Type, m2::PointD>)
46 return m2::RectD(t, t);
47
48 UNREACHABLE();
49}
50
51template <typename T, typename F>
52bool ForAnyPoint(T && t, F && f)

Callers 6

LimitRectMethod · 0.70
GetBboxForMethod · 0.70
GetAffiliationsFunction · 0.70
AddMethod · 0.50
ReplaceAllInRectMethod · 0.50
ReplaceEqualInRectMethod · 0.50

Calls 2

GetLimitRectMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected