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

Method getMemberNames

Libraries/jsoncpp-0.y.z/src/lib_json/json_value.cpp:1151–1166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1149#endif
1150
1151Value::Members Value::getMemberNames() const {
1152 JSON_ASSERT_MESSAGE(
1153 type_ == nullValue || type_ == objectValue,
1154 "in Json::Value::getMemberNames(), value must be objectValue");
1155 if (type_ == nullValue)
1156 return Value::Members();
1157 Members members;
1158 members.reserve(value_.map_->size());
1159 ObjectValues::const_iterator it = value_.map_->begin();
1160 ObjectValues::const_iterator itEnd = value_.map_->end();
1161 for (; it != itEnd; ++it) {
1162 members.push_back(std::string((*it).first.data(),
1163 (*it).first.length()));
1164 }
1165 return members;
1166}
1167//
1168//# ifdef JSON_USE_CPPTL
1169// EnumMemberNames

Callers 5

validateMethod · 0.45
writeValueMethod · 0.45
validateMethod · 0.45
printValueTreeFunction · 0.45
JSONTEST_FIXTUREFunction · 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