MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / add

Method add

src/common/classes/Hash.h:228–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226
227 public:
228 bool add(C* value)
229 {
230 Entry** e = locate(KeyOfValue::generate(*value));
231 if ((!duplicates) && (*e))
232 {
233 return false; // sorry, duplicate
234 }
235 value->link(e);
236 return true;
237 }
238
239 C* lookup(const K& key)
240 {

Callers

nothing calls this directly

Calls 2

locateFunction · 0.85
linkMethod · 0.45

Tested by

no test coverage detected