MCPcopy Create free account
hub / github.com/comaps/comaps / operator()

Method operator()

libs/map/benchmark_tool/features_loading.cpp:36–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 bool IsEmpty() const { return m_count == 0; }
35
36 void operator()(FeatureType & ft)
37 {
38 ++m_count;
39
40 m_timer.Reset();
41
42 drule::KeysT keys;
43 UNUSED_VALUE(feature::GetDrawRule(feature::TypesHolder(ft), m_scale, keys));
44
45 if (!keys.empty())
46 {
47 // Call this function to load feature's inner data and geometry.
48 UNUSED_VALUE(ft.IsEmptyGeometry(m_scale));
49 }
50
51 m_res.Add(m_timer.ElapsedSeconds());
52 }
53
54private:
55 base::Timer m_timer;

Callers

nothing calls this directly

Calls 7

GetDrawRuleFunction · 0.85
IsEmptyGeometryMethod · 0.80
ElapsedSecondsMethod · 0.80
TypesHolderClass · 0.50
ResetMethod · 0.45
emptyMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected