\brief Checks for coherence class params. \note It's a time consumption method and should be called for tests only.
| 55 | /// \brief Checks for coherence class params. |
| 56 | /// \note It's a time consumption method and should be called for tests only. |
| 57 | bool IsValidForTesting() const |
| 58 | { |
| 59 | if (!m_keyAge.IsValidForTesting()) |
| 60 | return false; |
| 61 | |
| 62 | for (auto const & kv : m_cache) |
| 63 | if (!m_keyAge.IsKeyValidForTesting(kv.first)) |
| 64 | return false; |
| 65 | |
| 66 | return true; |
| 67 | } |
| 68 | |
| 69 | private: |
| 70 | /// \brief This class support cross mapping from age to key and for key to age. |