![]() |
|
This object is responsible for storing the executor buffer data, comprised of the executor cache vector, as well as a mask that denotes the available data. More...
#include <executorBufferData.h>
Public Member Functions | |
| VdfExecutorBufferData (const VdfExecutorBufferData &)=delete | |
| Noncopyable. | |
| VdfExecutorBufferData & | operator= (const VdfExecutorBufferData &)=delete |
| VdfExecutorBufferData () | |
| Constructor. | |
| VDF_API | ~VdfExecutorBufferData () |
| Destructor. | |
| VDF_API void | Reset () |
| Reset the instance to its original, newly constructed state. | |
| VDF_API void | Clone (VdfExecutorBufferData *dest) const |
Clones this VdfExecutorBufferData instance to dest. | |
| VdfVector * | CreateExecutorCache (const VdfOutputSpec &spec) |
| Creates a new executor cache for this buffer. | |
| VdfVector * | CreateExecutorCache (const VdfOutputSpec &spec, const VdfMask::Bits &bits) |
| Creates a new executor cache for this buffer. | |
| VdfVector * | SwapExecutorCache (VdfExecutorBufferData *rhs) |
| Swaps the executor cache at this buffer, with that of another buffer. | |
| VdfVector * | GetExecutorCache () const |
| Returns the executor cache stored at this buffer data instance. | |
| const VdfMask & | GetExecutorCacheMask () const |
| Get the available mask. | |
| void | SetExecutorCacheMask (const VdfMask &mask) |
| Sets the available mask. | |
| void | ResetExecutorCache (const VdfMask &mask) |
Reset the executor cache without releasing any memory and set the executor cache mask to mask. | |
| void | ResetExecutorCache () |
| Reset the executor cache without releasing any memory. | |
| VDF_API void | RetainExecutorCache (const VdfOutputSpec &spec, VdfSMBLData *smblData) |
| Takes the existing executor cache and retains it within the existing VdfSMBLData object. | |
| VDF_API VdfMask | ReleaseExecutorCache (VdfSMBLData *smblData) |
Merges the executor cache previously retained in smblData into this cache and releases the SMBL data. | |
| bool | HasOwnership () const |
Returns true if the buffer owns the executor cache. | |
| void | YieldOwnership () |
| Yields ownership of the internal vector, i.e. | |
| void | YieldOwnership (VdfVector *v) |
Yields ownership of the given vector. | |
| void | TakeOwnership (VdfVector *v) |
| Assumes ownership of the given vector. | |
This object is responsible for storing the executor buffer data, comprised of the executor cache vector, as well as a mask that denotes the available data.
Definition at line 31 of file executorBufferData.h.
|
delete |
Noncopyable.
|
inline |
Constructor.
Definition at line 41 of file executorBufferData.h.
| VDF_API ~VdfExecutorBufferData | ( | ) |
Destructor.
| VDF_API void Clone | ( | VdfExecutorBufferData * | dest | ) | const |
Clones this VdfExecutorBufferData instance to dest.
|
inline |
Creates a new executor cache for this buffer.
Definition at line 194 of file executorBufferData.h.
|
inline |
Creates a new executor cache for this buffer.
The executor cache will be sized to accommodate all the entries set in the given bits.
Definition at line 220 of file executorBufferData.h.
|
inline |
Returns the executor cache stored at this buffer data instance.
Definition at line 243 of file executorBufferData.h.
|
inline |
Get the available mask.
Definition at line 252 of file executorBufferData.h.
|
inline |
Returns true if the buffer owns the executor cache.
The owner of the cache is responsible for its lifetime management.
Definition at line 288 of file executorBufferData.h.
| VDF_API VdfMask ReleaseExecutorCache | ( | VdfSMBLData * | smblData | ) |
Merges the executor cache previously retained in smblData into this cache and releases the SMBL data.
Returns the mask denoting the data merged into the executor cache.
| VDF_API void Reset | ( | ) |
Reset the instance to its original, newly constructed state.
|
inline |
Reset the executor cache without releasing any memory.
Definition at line 276 of file executorBufferData.h.
|
inline |
Reset the executor cache without releasing any memory and set the executor cache mask to mask.
Definition at line 258 of file executorBufferData.h.
| VDF_API void RetainExecutorCache | ( | const VdfOutputSpec & | spec, |
| VdfSMBLData * | smblData | ||
| ) |
Takes the existing executor cache and retains it within the existing VdfSMBLData object.
|
inline |
Sets the available mask.
Definition at line 282 of file executorBufferData.h.
|
inline |
Swaps the executor cache at this buffer, with that of another buffer.
Definition at line 230 of file executorBufferData.h.
|
inline |
Assumes ownership of the given vector.
Note, this will cause the given vector to be deallocated when this instance goes out of scope. The client must ensure that only a single buffer instance maintains ownership over any vector.
Definition at line 315 of file executorBufferData.h.
|
inline |
Yields ownership of the internal vector, i.e.
the vector will no longer be deallocated when this object goes out of scope.
Definition at line 295 of file executorBufferData.h.
|
inline |
Yields ownership of the given vector.
Note, this method deallocates any vector previously owned by this instance.
Definition at line 303 of file executorBufferData.h.