MCPcopy Create free account
hub / github.com/Samsung/ONE / to_string

Function to_string

compiler/fme-detect/src/EqualizePatternWrite.cpp:30–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28{
29
30std::string to_string(EqualizePattern::Type t)
31{
32 switch (t)
33 {
34 case EqualizePattern::Type::ScaleOnly:
35 return "ScaleOnly";
36 case EqualizePattern::Type::ShiftOnly:
37 return "ShiftOnly";
38 case EqualizePattern::Type::ScaleShift:
39 return "ScaleShift";
40 default:
41 throw std::invalid_argument("Unsupported EqualizePattern type");
42 }
43}
44
45} // namespace
46

Callers 4

writeFunction · 0.70
visitMethod · 0.50
visitMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected