MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / if_object

Method if_object

src/value.cpp:227–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225 return *r;
226}
227const std::vector<value>* value::if_object() const
228{
229 auto* r = x ? x->if_array() : nullptr;
230 assert(r == nullptr or
231 std::none_of(r->begin(), r->end(), [](auto&& v) { return v.get_key().empty(); }));
232 return r;
233}
234
235bool value::is_null() const { return x == nullptr; }
236

Callers 4

insertMethod · 0.95
value.cppFile · 0.45
find_implFunction · 0.45
object_rangeFunction · 0.45

Calls 5

none_ofFunction · 0.50
if_arrayMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected