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

Function read_id_

src/ifcparse/storage.h:452–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450 static constexpr char prefix_[] = "t|";
451
452 boost::optional<size_t> read_id_() const {
453#ifdef IFOPSH_WITH_ROCKSDB
454 auto sv = state_->key().ToStringView();
455 auto ii = sv.find("|", 2);
456 if (ii != decltype(sv)::npos) {
457 char* pEnd;
458 long result = strtol(sv.data() + 2, &pEnd, 10);
459 if (*pEnd == '|') {
460 return (size_t)result;
461 }
462 }
463#endif
464 return boost::none;
465 }
466 public:
467 using iterator_category = std::forward_iterator_tag;
468 using value_type = const IfcParse::declaration*;

Callers 3

IfcFile.cppFile · 0.85
storage.hFile · 0.85
operator==Function · 0.85

Calls 3

dataMethod · 0.80
keyMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected