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

Method IsSameType

libs/search/result.cpp:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool Result::IsSameType(uint32_t type) const
76{
77 uint8_t const level = ftype::GetLevel(type);
78 for (uint32_t t : {m_mainType, m_matchedType})
79 {
80 ftype::TruncValue(t, level);
81 if (t == type)
82 return true;
83 }
84 return false;
85}
86
87std::string GetLocalizedTypeName(uint32_t type)
88{

Callers 4

EqualClassifTypeMethod · 0.80
CountClassifTypeMethod · 0.80
HasAddressMethod · 0.80
UNIT_CLASS_TESTFunction · 0.80

Calls 2

GetLevelFunction · 0.85
TruncValueFunction · 0.85

Tested by 4

EqualClassifTypeMethod · 0.64
CountClassifTypeMethod · 0.64
HasAddressMethod · 0.64
UNIT_CLASS_TESTFunction · 0.64