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

Function PushValue

libs/indexer/classificator.cpp:170–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void PushValue(uint32_t & type, uint8_t value)
171{
172 ASSERT(value <= max_value, ("invalid input value", value));
173
174 uint8_t const cl = get_control_level(type);
175 // to avoid warning in release
176#ifdef RELEASE
177 UNUSED_VALUE(levels_count);
178#endif
179 ASSERT(cl < levels_count, (cl));
180
181 set_value(type, cl, value);
182
183 // set control level
184 set_value(type, cl + 1, 1);
185}
186
187uint8_t GetValue(uint32_t type, uint8_t level)
188{

Callers 3

ForEachObjectInTreeMethod · 0.85
GetTypeByPathImplMethod · 0.85
check_values_arrayFunction · 0.85

Calls 3

ASSERTFunction · 0.85
get_control_levelFunction · 0.85
set_valueFunction · 0.85

Tested by 1

check_values_arrayFunction · 0.68