MCPcopy Create free account
hub / github.com/apple/foundationdb / print

Method print

fdbcli/fdbcli.actor.cpp:267–283  ·  view source on GitHub ↗

Prints a list of all enabled options in this group

Source from the content-addressed store, hash-verified

265
266 // Prints a list of all enabled options in this group
267 bool print() const {
268 bool found = false;
269
270 for (auto itr = legalOptions.begin(); itr != legalOptions.end(); ++itr) {
271 auto optionItr = options.find(itr->second);
272 if (optionItr != options.end()) {
273 if (optionItr->second.present())
274 printf("%s: `%s'\n", itr->first.c_str(), formatStringRef(optionItr->second.get()).c_str());
275 else
276 printf("%s\n", itr->first.c_str());
277
278 found = true;
279 }
280 }
281
282 return found;
283 }
284
285 // Returns true if the specified option is documented
286 bool isDocumented(typename T::Option option) const {

Callers

nothing calls this directly

Calls 8

printfFunction · 0.85
formatStringRefFunction · 0.85
getMethod · 0.65
beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45
presentMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected