DD::Image::Handle Class Reference

Standard handle, which allocates via DD Images memory pool. More...

Inherits DD::Image::BaseHandle.

Public Member Functions

 Handle (size_t size)
 
- Public Member Functions inherited from DD::Image::BaseHandle
 BaseHandle (void *data, size_t size)
 ctor, sets the data and size
 
virtual ~BaseHandle ()=0
 Empty function - C++ requires an implementation for pure virtual destructors.
 
void * getAllocatedData () const
 Get the data that has been allocated at construction.
 
size_t getDataSize () const
 get the amount of data that is pointed to by this handle
 
- Public Member Functions inherited from DD::Image::RefCountedObject
void ref ()
 increment the reference count
 
void unref ()
 decrement the reference count. delete object if this becomes zero.
 
int refcount () const
 get the reference counter
 

Static Public Member Functions

static HandlePtr Make (size_t size)
 

Additional Inherited Members

- Protected Attributes inherited from DD::Image::BaseHandle
void * _data
 our data blob
 
const size_t _size
 how big it is
 

Detailed Description

Standard handle, which allocates via DD Images memory pool.



©2022 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk