| 14 | namespace Valdi { |
| 15 | |
| 16 | struct ReferenceTableEntry { |
| 17 | Valdi::SequenceID id; |
| 18 | size_t retainCount = 0; |
| 19 | const char* tag = nullptr; |
| 20 | |
| 21 | inline ReferenceTableEntry() = default; |
| 22 | inline ReferenceTableEntry(Valdi::SequenceID id, size_t retainCount, const char* tag) |
| 23 | : id(id), retainCount(retainCount), tag(tag) {} |
| 24 | |
| 25 | bool operator==(const ReferenceTableEntry& other) const; |
| 26 | bool operator!=(const ReferenceTableEntry& other) const; |
| 27 | |
| 28 | size_t getIndex() const; |
| 29 | }; |
| 30 | |
| 31 | struct ReferenceTableStats { |
| 32 | /** |