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

Method operator()

generator/holes.cpp:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29{}
30
31base::ControlFlow HolesProcessor::operator()(uint64_t /* id */, RelationElement const & e)
32{
33 auto const type = e.GetType();
34 if (!(type == "multipolygon" || type == "boundary"))
35 return base::ControlFlow::Continue;
36
37 if (auto const role = e.GetWayRole(m_id); role == "outer")
38 {
39 e.ForEachWay(*this);
40 // Stop processing. Assume that "outer way" exists in one relation only.
41 return base::ControlFlow::Break;
42 }
43 return base::ControlFlow::Continue;
44}
45
46void HolesProcessor::operator()(uint64_t id, std::string const & role)
47{

Callers

nothing calls this directly

Calls 3

GetWayRoleMethod · 0.80
GetTypeMethod · 0.45
ForEachWayMethod · 0.45

Tested by

no test coverage detected