MCPcopy Create free account
hub / github.com/ceph/ceph / get_name

Method get_name

src/include/CompatSet.h:65–69  ·  view source on GitHub ↗

* Getter instead of using name[] to be const safe */

Source from the content-addressed store, hash-verified

63 * Getter instead of using name[] to be const safe
64 */
65 std::string get_name(uint64_t const f) const {
66 std::map<uint64_t, std::string>::const_iterator i = names.find(f);
67 ceph_assert(i != names.end());
68 return i->second;
69 }
70
71 void remove(uint64_t f) {
72 if (names.count(f)) {

Callers 1

mergeMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected