#include <ReadArraySampleCache.h>
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.
◆ ~ReadArraySampleCache()
| Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::ReadArraySampleCache::~ReadArraySampleCache |
( |
| ) |
|
|
virtual |
◆ find()
| virtual ReadArraySampleID Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::ReadArraySampleCache::find |
( |
const ArraySample::Key & | iKey | ) |
|
|
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.
◆ store()
| virtual ReadArraySampleID Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::ReadArraySampleCache::store |
( |
const ArraySample::Key & | iKey, |
|
|
ArraySamplePtr | iSamp ) |
|
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.
The documentation for this class was generated from the following files: