| 268 | |
| 269 | template <typename TKey, typename TValue> |
| 270 | void LruCache<TKey, TValue>::attachToCache(Entry& entry) { |
| 271 | if (mYoungest == NULL) { |
| 272 | mYoungest = mOldest = &entry; |
| 273 | } else { |
| 274 | entry.parent = mYoungest; |
| 275 | mYoungest->child = &entry; |
| 276 | mYoungest = &entry; |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | template <typename TKey, typename TValue> |
| 281 | void LruCache<TKey, TValue>::detachFromCache(Entry& entry) { |
nothing calls this directly
no outgoing calls
no test coverage detected