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

Method find

runtime/3rdparty/jsoncpp/jsoncpp.cpp:3779–3791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3777bool Value::isValidIndex(ArrayIndex index) const { return index < size(); }
3778
3779Value const *Value::find(char const *begin, char const *end) const
3780{
3781 JSON_ASSERT_MESSAGE(type() == nullValue || type() == objectValue,
3782 "in Json::Value::find(begin, end): requires "
3783 "objectValue or nullValue");
3784 if (type() == nullValue)
3785 return nullptr;
3786 CZString actualKey(begin, static_cast<unsigned>(end - begin), CZString::noDuplication);
3787 ObjectValues::const_iterator it = value_.map_->find(actualKey);
3788 if (it == value_.map_->end())
3789 return nullptr;
3790 return &(*it).second;
3791}
3792Value *Value::demand(char const *begin, char const *end)
3793{
3794 JSON_ASSERT_MESSAGE(type() == nullValue || type() == objectValue,

Callers 15

getNameFunction · 0.45
ConfigFileMethod · 0.45
check_valid_keyFunction · 0.45
print_graph_infoFunction · 0.45
print_summaryFunction · 0.45
getDataByTensorIndexMethod · 0.45
runBackwardMethod · 0.45
updateWeightsMethod · 0.45

Calls 2

typeFunction · 0.50
endMethod · 0.45

Tested by 5

PrettyPrintAsFloatFunction · 0.36
for_eachFunction · 0.36
getQuant8AllowedErrorFunction · 0.36
hasOutputSizesMethod · 0.36
TEST_FFunction · 0.36