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

Method GetMetadata

libs/indexer/feature.cpp:876–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874}
875
876std::string_view FeatureType::GetMetadata(feature::Metadata::EType type)
877{
878 ParseMetaIds();
879
880 auto meta = m_metadata.Get(type);
881 if (meta.empty())
882 {
883 auto const it = base::FindIf(m_metaIds, [&type](auto const & v) { return v.first == type; });
884 if (it != m_metaIds.end())
885 meta = m_metadata.Set(type, m_loadInfo->m_metaDeserializer->GetMetaById(it->second));
886 }
887 return meta;
888}
889
890bool FeatureType::HasMetadata(feature::Metadata::EType type)
891{

Callers 15

ProcessMethod · 0.45
EditorDialogMethod · 0.45
PlacePageDialogUserMethod · 0.45
FillDetailsFunction · 0.45
GetNameScoresFunction · 0.45
LoadFeatureMethod · 0.45
MakeResultMethod · 0.45
SerializeMethod · 0.45
SerializeMethod · 0.45
SerializeMethod · 0.45

Calls 6

GetMetaByIdMethod · 0.80
FindIfFunction · 0.50
GetMethod · 0.45
emptyMethod · 0.45
endMethod · 0.45
SetMethod · 0.45

Tested by 8

SerializeMethod · 0.36
SerializeMethod · 0.36
SerializeMethod · 0.36
MakeFeatureMethod · 0.36
SerializeMethod · 0.36
UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36
GetEditedFeatureTestMethod · 0.36