Lines Matching refs:TKey
37 template <typename TKey, typename TValue>
47 void setOnEntryRemovedListener(OnEntryRemoved<TKey, TValue>* listener);
49 const TValue& get(const TKey& key);
50 bool put(const TKey& key, const TValue& value);
51 bool remove(const TKey& key);
60 TKey key;
65 Entry(TKey key_, TValue value_) : key(key_), value(value_), parent(NULL), child(NULL) { in Entry()
67 const TKey& getKey() const { return key; } in getKey()
87 typename LruCacheSet::iterator findByKey(const TKey& key) { in findByKey()
94 OnEntryRemoved<TKey, TValue>* mListener;
107 Iterator(const LruCache<TKey, TValue>& cache): in Iterator() argument
130 const TKey& key() const { in key()
134 const LruCache<TKey, TValue>& mCache;
141 template <typename TKey, typename TValue>
142 LruCache<TKey, TValue>::LruCache(uint32_t maxCapacity) in LruCache()
152 template <typename TKey, typename TValue>
153 LruCache<TKey, TValue>::~LruCache() { in ~LruCache()
163 template <typename TKey, typename TValue>
164 size_t LruCache<TKey, TValue>::size() const { in size()
168 template <typename TKey, typename TValue>
169 const TValue& LruCache<TKey, TValue>::get(const TKey& key) { in get()
180 template <typename TKey, typename TValue>
181 bool LruCache<TKey, TValue>::put(const TKey& key, const TValue& value) { in put()
196 template <typename TKey, typename TValue>
197 bool LruCache<TKey, TValue>::remove(const TKey& key) { in remove()
212 template <typename TKey, typename TValue>
213 bool LruCache<TKey, TValue>::removeOldest() { in removeOldest()
221 template <typename TKey, typename TValue>
222 const TValue& LruCache<TKey, TValue>::peekOldestValue() { in peekOldestValue()
229 template <typename TKey, typename TValue>
230 void LruCache<TKey, TValue>::clear() { in clear()
244 template <typename TKey, typename TValue>
245 void LruCache<TKey, TValue>::attachToCache(Entry& entry) { in attachToCache()
255 template <typename TKey, typename TValue>
256 void LruCache<TKey, TValue>::detachFromCache(Entry& entry) { in detachFromCache()