MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / findPartIndex

Method findPartIndex

src/core/map.cpp:2050–2060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2048}
2049
2050int Map::findPartIndex(const MapPart* part) const
2051{
2052 std::size_t const size = parts.size();
2053 for (std::size_t i = 0; i < size; ++i)
2054 {
2055 if (parts[i] == part)
2056 return i;
2057 }
2058 Q_ASSERT(false);
2059 return -1;
2060}
2061
2062void Map::setCurrentPartIndex(std::size_t index)
2063{

Callers 2

setNameMethod · 0.80
MapPartUndoStepMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected