Flutter Engine
The Flutter Engine
|
#include <GrHashMapWithCache.h>
Public Member Functions | |
int | count () const |
size_t | approxBytesUsed () const |
const V * | find (const K &key) const |
const V * | set (K key, V val) |
void | remove (K key) |
void | reset () |
Public Member Functions inherited from SkNoncopyable | |
SkNoncopyable ()=default | |
SkNoncopyable (SkNoncopyable &&)=default | |
SkNoncopyable & | operator= (SkNoncopyable &&)=default |
A hash map that caches the most recently accessed entry. The API is a subset of SkHashMap, and you must provide a sentinel key that will never be present, such as SK_InvalidUniqueID.
KeyTraits must have:
Definition at line 30 of file GrHashMapWithCache.h.
|
inline |
Definition at line 36 of file GrHashMapWithCache.h.
|
inline |
Definition at line 33 of file GrHashMapWithCache.h.
|
inline |
Definition at line 42 of file GrHashMapWithCache.h.
|
inline |
Definition at line 63 of file GrHashMapWithCache.h.
|
inline |
Definition at line 72 of file GrHashMapWithCache.h.
Definition at line 52 of file GrHashMapWithCache.h.