Nuke binary plugins  14.0.8
DD::Image::RefCountedFloatBuffer Class Reference

Public Member Functions

 RefCountedFloatBuffer ()
 construct a NULL buffer
 
 RefCountedFloatBuffer (const RefCountedFloatBuffer &otherBuffer)
 copy construct the pointer to the buffer
 
 ~RefCountedFloatBuffer ()
 destructor (will free the buffer if the reference count becomes zero)
 
RefCountedFloatBuffer operator+ (ptrdiff_t offset) const
 
RefCountedFloatBufferoperator= (const RefCountedFloatBuffer &otherBuffer)
 assignment operator (will free existing buffer if any)
 
 operator const float * () const
 convert to const float*
 
 operator float * ()
 convert to float*
 
void print () const
 dump out debug information
 
void reset ()
 reset to the NULL pointer
 
size_t usage () const
 get the memory used for this buffer
 
int refCount () const
 get the reference count for this buffer
 

Static Public Member Functions

static RefCountedFloatBuffer allocate (const DD::Image::Box &bounds, int nComps, int pixelStep, int rowStep, int componentStep, size_t alignment=0)
 allocate some new memory for a buffer, optionally align memory (also rounds up allocated amount to multiple of alignment)
 

Detailed Description

Provides a reference counted float buffer. Has a pointer to the actual underlying buffer for the purpose of reference counting and also an offset which can be manipulated by pointer arithmetic.



©2024 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com