| 524 | std::map<Tag, Promise<Void>> waitingTags; |
| 525 | |
| 526 | Reference<TagData> getTagData(Tag tag) { |
| 527 | int idx = tag.toTagDataIndex(); |
| 528 | if (idx >= tag_data.size()) { |
| 529 | tag_data.resize(idx + 1); |
| 530 | } |
| 531 | if (tag.id >= tag_data[idx].size()) { |
| 532 | tag_data[idx].resize(tag.id + 1); |
| 533 | } |
| 534 | return tag_data[idx][tag.id]; |
| 535 | } |
| 536 | |
| 537 | // only callable after getTagData returns a null reference |
| 538 | Reference<TagData> createTagData(Tag tag, |
no test coverage detected