HDK
|
#include <ReadArraySampleCache.h>
Public Member Functions | |
virtual | ~ReadArraySampleCache () |
virtual ReadArraySampleID | find (const ArraySample::Key &iKey)=0 |
virtual ReadArraySampleID | store (const ArraySample::Key &iKey, ArraySamplePtr iSamp)=0 |
Alembic caches array samples based on a Murmur3 128bit checksum key. This is an abstract interface to these caches, which can be implemented in any number of ways.
Definition at line 110 of file ReadArraySampleCache.h.
|
virtual |
Virtual destructor ...
|
pure virtual |
If it finds the entry, return a valid pointer to it which is expected to lock the entry in the cache until the pointer is dereferenced.
|
pure virtual |
Store an entry given an explicit set of storage. The magnificent flexibility of the shared_ptr class makes it possible for an ArraySamplePtr to contain its own destructor as a custom deleter, and thus we can use ArraySamplePtrs for both reference and ownership, depending on the deleter. In this case, it is assumed that iSamp represents "owned" data, rather than a reference. The data will not be copied, but rather this sample will be stored directly using the passed shared_ptr.