MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / getMemberNames

Method getMemberNames

vrclient_x64/jsoncpp.cpp:3653–3668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3651#endif
3652
3653Value::Members Value::getMemberNames() const {
3654 JSON_ASSERT_MESSAGE(
3655 type_ == nullValue || type_ == objectValue,
3656 "in Json::Value::getMemberNames(), value must be objectValue");
3657 if (type_ == nullValue)
3658 return Value::Members();
3659 Members members;
3660 members.reserve(value_.map_->size());
3661 ObjectValues::const_iterator it = value_.map_->begin();
3662 ObjectValues::const_iterator itEnd = value_.map_->end();
3663 for (; it != itEnd; ++it) {
3664 members.push_back(std::string((*it).first.data(),
3665 (*it).first.length()));
3666 }
3667 return members;
3668}
3669//
3670//# ifdef JSON_USE_CPPTL
3671// EnumMemberNames

Callers 2

validateMethod · 0.80
writeValueMethod · 0.80

Calls 5

sizeMethod · 0.80
beginMethod · 0.80
endMethod · 0.80
dataMethod · 0.80
lengthMethod · 0.80

Tested by

no test coverage detected