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

Method getMemberNames

src/jsoncpp.cpp:3654–3669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Tested by

no test coverage detected