MCPcopy Create free account
hub / github.com/PlayFab/gsdk / getMemberNames

Method getMemberNames

cpp/cppsdk/jsoncpp.cpp:3746–3760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3744#endif
3745
3746Value::Members Value::getMemberNames() const {
3747 JSON_ASSERT_MESSAGE(
3748 type_ == nullValue || type_ == objectValue,
3749 "in Json::Value::getMemberNames(), value must be objectValue");
3750 if (type_ == nullValue)
3751 return Value::Members();
3752 Members members;
3753 members.reserve(value_.map_->size());
3754 ObjectValues::const_iterator it = value_.map_->begin();
3755 ObjectValues::const_iterator itEnd = value_.map_->end();
3756 for (; it != itEnd; ++it) {
3757 members.push_back(JSONCPP_STRING((*it).first.data(), (*it).first.length()));
3758 }
3759 return members;
3760}
3761//
3762//# ifdef JSON_USE_CPPTL
3763// 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