![]() |
|
Organizes output-to-value caches into logical groups, called pages. More...
#include <pageCache.h>
Public Types | |
| typedef Ef_VectorKey::Map< Ef_OutputValueCache * >::Type | CacheMap |
| Type of the cache map. | |
| typedef CacheMap::iterator | iterator |
| Type of the cache map iterator. | |
Public Member Functions | |
| EF_API | ~Ef_PageCache () |
| Destructor. | |
| EF_API Ef_OutputValueCache * | Get (const VdfVector &key) const |
| Get the output-to-value cache associated with the given key, if one exists. | |
| EF_API Ef_OutputValueCache * | GetOrCreate (const VdfVector &key) |
| Get the output-to-value cache associated with the given key, or create a new, empty output-to-value cache if one does not already exist. | |
| EF_API size_t | Clear () |
| Clear the entire page cache. | |
| iterator | begin () |
| Returns an iterator to the output-to-value cache in the first page. | |
| iterator | end () |
| Returns an iterator past the output-to-value cache in the last page. | |
Static Public Member Functions | |
| template<typename T > | |
| static Ef_PageCache * | New () |
| Construct a new Ef_PageCache, which uses VdfVectors holding type T values as keys. | |
Organizes output-to-value caches into logical groups, called pages.
Pages are keyed off of VdfVector values, such as for example, time values.
Definition at line 28 of file pageCache.h.
Type of the cache map.
Definition at line 69 of file pageCache.h.
| CacheMap::iterator iterator |
Type of the cache map iterator.
Definition at line 75 of file pageCache.h.
| EF_API ~Ef_PageCache | ( | ) |
Destructor.
|
inline |
Returns an iterator to the output-to-value cache in the first page.
Definition at line 79 of file pageCache.h.
| EF_API size_t Clear | ( | ) |
Clear the entire page cache.
|
inline |
Returns an iterator past the output-to-value cache in the last page.
Definition at line 85 of file pageCache.h.
| EF_API Ef_OutputValueCache * Get | ( | const VdfVector & | key | ) | const |
Get the output-to-value cache associated with the given key, if one exists.
| EF_API Ef_OutputValueCache * GetOrCreate | ( | const VdfVector & | key | ) |
Get the output-to-value cache associated with the given key, or create a new, empty output-to-value cache if one does not already exist.
|
inlinestatic |
Construct a new Ef_PageCache, which uses VdfVectors holding type T values as keys.
The client is responsible for deleting the heap allocated return value.
Definition at line 43 of file pageCache.h.