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

Method begin

src/ifcparse/rocksdb_map_adapter.h:306–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304 };
305
306 iterator begin() const {
307#ifdef IFOPSH_WITH_ROCKSDB
308 auto iter = std::unique_ptr<rocksdb::Iterator>(db_->NewIterator(rocksdb::ReadOptions{}));
309 iter->Seek(prefix_);
310 if (iter->Valid() && iter->key().starts_with(prefix_)) {
311 return iterator(db_, prefix_, std::move(iter), codec_);
312 }
313#endif
314 return end();
315 }
316
317 iterator end() const {
318 return iterator();

Callers

nothing calls this directly

Calls 3

iteratorClass · 0.70
endFunction · 0.70
keyMethod · 0.45

Tested by

no test coverage detected