| 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*; |
no test coverage detected