MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / getMemberNames

Method getMemberNames

Sources/Dependencies/jsoncpp/value.cpp:1409–1423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1407#endif
1408
1409 Value::Members Value::getMemberNames() const {
1410 JSON_ASSERT_MESSAGE(
1411 type() == nullValue || type() == objectValue,
1412 "in Json::Value::getMemberNames(), value must be objectValue");
1413 if (type() == nullValue)
1414 return Value::Members();
1415 Members members;
1416 members.reserve(value_.map_->size());
1417 ObjectValues::const_iterator it = value_.map_->begin();
1418 ObjectValues::const_iterator itEnd = value_.map_->end();
1419 for (; it != itEnd; ++it) {
1420 members.push_back(StringContainer((*it).first.data(), (*it).first.length()));
1421 }
1422 return members;
1423 }
1424
1425 size_t Value::getMemberCount() const {
1426 JSON_ASSERT_MESSAGE(

Callers 1

writeValueMethod · 0.80

Calls 8

typeClass · 0.85
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