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

Method field

Utilities/cmcppdap/src/jsoncpp_json_serializer.cpp:252–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250
251 FS(Json::Value* json) : json(json) {}
252 bool field(const std::string& name, const SerializeFunc& cb) override {
253 JsonCppSerializer s(&(*json)[name]);
254 auto res = cb(&s);
255 if (s.removed) {
256 json->removeMember(name);
257 }
258 return res;
259 }
260 };
261
262 *json = Json::Value(Json::objectValue);

Callers

nothing calls this directly

Calls 1

removeMemberMethod · 0.80

Tested by

no test coverage detected