MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / erase

Method erase

src/ifcparse/rocksdb_map_adapter.h:333–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331 }
332
333 size_t erase(const key_type& key) {
334#ifdef IFOPSH_WITH_ROCKSDB
335 std::string key_str = key_to_string(key);
336 std::string full_key = prefix_ + key_str;
337 rocksdb::Status s = db_->Delete(rocksdb::WriteOptions{}, full_key);
338 return s.ok() ? 1 : 0;
339#else
340 return 0;
341#endif
342 }
343
344 std::pair<iterator, bool> insert(const value_type& val) {
345#ifdef IFOPSH_WITH_ROCKSDB

Callers

nothing calls this directly

Calls 1

key_to_stringFunction · 0.85

Tested by

no test coverage detected