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

Method GetLink

tools/poly_borders/help_structures.cpp:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27std::optional<Link> MarkedPoint::GetLink(size_t curBorderId) const
28{
29 if (m_links.size() != 1)
30 return std::nullopt;
31
32 size_t anotherBorderId = m_links.begin()->m_borderId;
33 if (anotherBorderId == curBorderId)
34 return std::nullopt;
35
36 return *m_links.begin();
37}
38
39// Polygon -----------------------------------------------------------------------------------------
40void Polygon::MakeFrozen(size_t a, size_t b)

Callers 2

TryToReplaceMethod · 0.80
HasLinkAtMethod · 0.80

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected