MCPcopy Create free account
hub / github.com/SOUI2/soui / getMemberNames

Method getMemberNames

third-part/jsoncpp/src/lib_json/json_value.cpp:1255–1270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1253#endif
1254
1255Value::Members Value::getMemberNames() const {
1256 JSON_ASSERT_MESSAGE(
1257 type_ == nullValue || type_ == objectValue,
1258 "in Json::Value::getMemberNames(), value must be objectValue");
1259 if (type_ == nullValue)
1260 return Value::Members();
1261 Members members;
1262 members.reserve(value_.map_->size());
1263 ObjectValues::const_iterator it = value_.map_->begin();
1264 ObjectValues::const_iterator itEnd = value_.map_->end();
1265 for (; it != itEnd; ++it) {
1266 members.push_back(JSONCPP_STRING((*it).first.data(),
1267 (*it).first.length()));
1268 }
1269 return members;
1270}
1271//
1272//# ifdef JSON_USE_CPPTL
1273// EnumMemberNames

Callers 5

validateMethod · 0.80
writeValueMethod · 0.80
validateMethod · 0.80
printValueTreeFunction · 0.80
JSONTEST_FIXTUREFunction · 0.80

Calls 7

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