MCPcopy Create free account
hub / github.com/Kitware/VTK / find

Method find

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:3520–3532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3518bool Value::isValidIndex(ArrayIndex index) const { return index < size(); }
3519
3520Value const* Value::find(char const* begin, char const* end) const {
3521 JSON_ASSERT_MESSAGE(type() == nullValue || type() == objectValue,
3522 "in Json::Value::find(begin, end): requires "
3523 "objectValue or nullValue");
3524 if (type() == nullValue)
3525 return nullptr;
3526 CZString actualKey(begin, static_cast<unsigned>(end - begin),
3527 CZString::noDuplication);
3528 ObjectValues::const_iterator it = value_.map_->find(actualKey);
3529 if (it == value_.map_->end())
3530 return nullptr;
3531 return &(*it).second;
3532}
3533Value const* Value::find(const String& key) const {
3534 return find(key.data(), key.data() + key.length());
3535}

Callers 15

AddFieldMethod · 0.45
GetFieldIndexMethod · 0.45
TestDataSet_ExplicitFunction · 0.45
DoTestMethod · 0.45
LoadFileMethod · 0.45
GetFieldModeMethod · 0.45
ClassifyParticlesMethod · 0.45
vector<int> FindRankMethod · 0.45
SetSeedArrayMethod · 0.45
UpdateActiveMethod · 0.45

Calls 5

typeEnum · 0.50
findFunction · 0.50
endMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by 10

TestDataSet_ExplicitFunction · 0.36
DoTestMethod · 0.36
TestDifferentCoordsFunction · 0.36
FoundMethod · 0.36
GetMesaVersionMethod · 0.36
HasErrorMessageFunction · 0.36
HasWarningMessageFunction · 0.36
operator()Method · 0.36
CheckErrorMessageFunction · 0.36