MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / getMemberNames

Method getMemberNames

Source/JSON/jsoncpp.cpp:3292–3307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3290#endif
3291
3292Value::Members Value::getMemberNames() const {
3293 JSON_ASSERT_MESSAGE(
3294 type_ == nullValue || type_ == objectValue,
3295 "in Json::Value::getMemberNames(), value must be objectValue");
3296 if (type_ == nullValue)
3297 return Value::Members();
3298 Members members;
3299 members.reserve(value_.map_->size());
3300 ObjectValues::const_iterator it = value_.map_->begin();
3301 ObjectValues::const_iterator itEnd = value_.map_->end();
3302 for (; it != itEnd; ++it) {
3303 members.push_back(std::string((*it).first.data(),
3304 (*it).first.length()));
3305 }
3306 return members;
3307}
3308//
3309// # ifdef JSON_USE_CPPTL
3310// EnumMemberNames

Callers 4

JSONValueGetMembersFunction · 0.45
testJSONFunction · 0.45
validateMethod · 0.45
writeValueMethod · 0.45

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