MCPcopy Index your code
hub / github.com/Kitware/CMake / getMemberNames

Method getMemberNames

Utilities/cmjsoncpp/src/lib_json/json_value.cpp:1236–1250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1234}
1235
1236Value::Members Value::getMemberNames() const {
1237 JSON_ASSERT_MESSAGE(
1238 type() == nullValue || type() == objectValue,
1239 "in Json::Value::getMemberNames(), value must be objectValue");
1240 if (type() == nullValue)
1241 return Value::Members();
1242 Members members;
1243 members.reserve(value_.map_->size());
1244 ObjectValues::const_iterator it = value_.map_->begin();
1245 ObjectValues::const_iterator itEnd = value_.map_->end();
1246 for (; it != itEnd; ++it) {
1247 members.push_back(String((*it).first.data(), (*it).first.length()));
1248 }
1249 return members;
1250}
1251
1252static bool IsIntegral(double d) {
1253 double integral_part;

Callers 6

TraverseValueFunction · 0.80
writeValueMethod · 0.80
operator()Method · 0.80
FilteredObjectFunction · 0.80

Calls 9

StringFunction · 0.85
reserveMethod · 0.80
push_backMethod · 0.80
lengthMethod · 0.80
typeClass · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
dataMethod · 0.45

Tested by 1