| 310 | } |
| 311 | |
| 312 | void Ev4Block::FindReferencedBlocks(const Hd4Block &hd4) { |
| 313 | parent_event_ = dynamic_cast<const Ev4Block *>(hd4.Find(Link(kIndexParent))); |
| 314 | range_event_ = dynamic_cast<const Ev4Block *>(hd4.Find(Link(kIndexRange))); |
| 315 | scope_list_.clear(); |
| 316 | for (size_t index_m = 0; index_m < length_m_; ++index_m) { |
| 317 | const auto index = 5 + index_m; |
| 318 | if (index < link_list_.size()) { |
| 319 | scope_list_.push_back(hd4.Find(Link(index))); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | attachment_list_.clear(); |
| 324 | for (size_t index_n = 0; index_n < length_n_; ++index_n) { |
| 325 | const auto index = 5 + length_m_ + index_n; |
| 326 | if (index < link_list_.size()) { |
| 327 | attachment_list_.push_back( |
| 328 | dynamic_cast<const At4Block *>(hd4.Find(Link(index)))); |
| 329 | } |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | } // namespace mdf::detail |
no test coverage detected