| 91 | } |
| 92 | |
| 93 | void ProgramCache::startRound(std::size_t _roundNumber) |
| 94 | { |
| 95 | assert(_roundNumber > m_currentRound); |
| 96 | m_currentRound = _roundNumber; |
| 97 | |
| 98 | for (auto pair = m_entries.begin(); pair != m_entries.end();) |
| 99 | { |
| 100 | assert(pair->second.roundNumber < m_currentRound); |
| 101 | |
| 102 | if (pair->second.roundNumber < m_currentRound - 1) |
| 103 | m_entries.erase(pair++); |
| 104 | else |
| 105 | ++pair; |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | void ProgramCache::clear() |
| 110 | { |
no test coverage detected