| 283 | } |
| 284 | |
| 285 | bool DeDup(const TIndex pos, const UniqueSubMap& prior_map) { |
| 286 | INode* my_inode = &inodes_[pos]; |
| 287 | if (my_inode->owner_ptr_ != nullptr) { return false; } |
| 288 | const INode* prior_inode = prior_map.GetINodeByKey(my_inode->key_); |
| 289 | if (prior_inode == nullptr) { return false; } |
| 290 | my_inode->owner_ptr_ = prior_inode; |
| 291 | return true; |
| 292 | } |
| 293 | |
| 294 | bool TryIndexAndGetKey(const TIndex pos, const TIndex new_id, T* out) { |
| 295 | INode* inode = &inodes_[pos]; |
no test coverage detected