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

Method getMemberNames

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:3674–3688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3672}
3673
3674Value::Members Value::getMemberNames() const {
3675 JSON_ASSERT_MESSAGE(
3676 type() == nullValue || type() == objectValue,
3677 "in Json::Value::getMemberNames(), value must be objectValue");
3678 if (type() == nullValue)
3679 return Value::Members();
3680 Members members;
3681 members.reserve(value_.map_->size());
3682 ObjectValues::const_iterator it = value_.map_->begin();
3683 ObjectValues::const_iterator itEnd = value_.map_->end();
3684 for (; it != itEnd; ++it) {
3685 members.push_back(String((*it).first.data(), (*it).first.length()));
3686 }
3687 return members;
3688}
3689
3690static bool IsIntegral(double d) {
3691 double integral_part;

Callers 5

PrintMemberNamesFunction · 0.80
RequestInformationMethod · 0.80
writeValueMethod · 0.80
LoadDefaultBindingMethod · 0.80
InternalParseJSONMethod · 0.80

Calls 9

StringFunction · 0.85
typeEnum · 0.50
reserveMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected