MCPcopy Create free account
hub / github.com/Icinga/icinga2 / TypePreference

Function TypePreference

tools/mkclass/classcompiler.cpp:116–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116static int TypePreference(const std::string& type)
117{
118 if (type == "Value")
119 return 0;
120 else if (type == "String")
121 return 1;
122 else if (type == "double")
123 return 2;
124 else if (type.find("::Ptr") != std::string::npos)
125 return 3;
126 else if (type == "int")
127 return 4;
128 else
129 return 5;
130}
131
132static bool FieldLayoutCmp(const Field& a, const Field& b)
133{

Callers 1

FieldLayoutCmpFunction · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected