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

Method GetIndex

libs/indexer/types_mapping.cpp:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59uint32_t IndexAndTypeMapping::GetIndex(uint32_t t) const
60{
61 Map::const_iterator i = m_map.find(t);
62 /// @todo Should review each call of Classificator::GetIndexForType (see also IsTypeValid),
63 /// because this situation is possible for deleted dummy types in old maps data.
64 CHECK(i != m_map.end(), (t, classif().GetFullObjectName(t)));
65 return i->second;
66}

Callers 1

GetTypeByPathImplMethod · 0.45

Calls 3

GetFullObjectNameMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected