| 117 | return id; |
| 118 | } |
| 119 | std::string ToString() const |
| 120 | { |
| 121 | auto itr = GetStringLookup().find(id); |
| 122 | if (itr == GetStringLookup().end()) |
| 123 | { |
| 124 | return "murmur:" + std::to_string(id); |
| 125 | } |
| 126 | return itr->second; |
| 127 | } |
| 128 | |
| 129 | static std::unordered_map<uint32_t, std::string>& GetStringLookup(); |
| 130 | }; |
no test coverage detected