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= (const RefCountedFloatBuffer &otherBuffer) |
assignment operator (will free existing buffer if any) | |
operator const float * () const | |
convert to const float* | |
operator float * () | |
convert to float* | |
RefCountedFloatBuffer | operator+ (ptrdiff_t value) const |
add an offset | |
RefCountedFloatBuffer | operator- (ptrdiff_t value) const |
subtract an offset | |
void | operator+= (ptrdiff_t value) |
add an offset | |
void | operator-= (ptrdiff_t value) |
subtract an offset | |
RefCountedFloatBuffer | operator++ () |
increment, return the old value | |
RefCountedFloatBuffer & | operator++ (int) |
increment, return the new value | |
RefCountedFloatBuffer | operator-- () |
decrement, return the old value | |
RefCountedFloatBuffer & | operator-- (int) |
increment, return the new value | |
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 | |
Static Public Member Functions | |
static RefCountedFloatBuffer | allocate (size_t size) |
allocate some new memory for a buffer |
©2009 The Foundry Visionmongers, Ltd. All Rights Reserved. |