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

Method GetTypes

generator/pygen/pygen.cpp:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 uint32_t GetIndex() const { return m_feature->GetID().m_index; }
57
58 bp::list GetTypes()
59 {
60 bp::list types;
61 m_feature->ForEachType([&](auto t)
62 {
63 // A type can be invalid because the type was marked as deprecated in mapcss file.
64 types.append(classif().IsTypeValid(t) ? classif().GetIndexForType(t) : kInvalidIndex);
65 });
66 return types;
67 }
68
69 bp::dict GetMetadata()
70 {

Callers 15

IsAcceptedMethod · 0.45
IsRoadWayFunction · 0.45
IsAcceptedMethod · 0.45
CollectFeatureMethod · 0.45
AddSrcMethod · 0.45
MatchMethod · 0.45
FixLandTypeFunction · 0.45
ProcessRoundaboutsMethod · 0.45
CollectFeatureMethod · 0.45
IsProcessRoadMethod · 0.45
CollectFeatureMethod · 0.45
IsAcceptedMethod · 0.45

Calls 4

IsTypeValidMethod · 0.80
ForEachTypeMethod · 0.45
appendMethod · 0.45
GetIndexForTypeMethod · 0.45

Tested by 4

BuildAndCheckMethod · 0.36
UNIT_TESTFunction · 0.36
UNIT_CLASS_TESTFunction · 0.36
UNIT_TESTFunction · 0.36