Public Member Functions | |
virtual CBufferHandle * | AllocateHandle ()=0 |
Allocate a CBufferHandle, remember to call Release() on it when you're done with it. | |
virtual CSmartBuffer | Allocate (const IBuffer &buffer)=0 |
Allocate a CBufferHandle and attach the supplied IBuffer to it, return the CBufferHandle's IBuffer interface, remember to call Release() on it when you're done with it. | |
virtual bool | Flush ()=0 |
Flushes the allocator. Use with care as this forces active buffer handles to be released and destroyed! Generally only called as part of process cleanup and even then only to aid in buffer leak tracking. | |
Protected Member Functions | |
virtual | ~IAllocateBufferHandles () |
We never delete instances of this interface; you must manage the lifetime of the class that implements it. |
virtual ~IAllocateBufferHandles | ( | ) | [protected, virtual] |
We never delete instances of this interface; you must manage the lifetime of the class that implements it.
virtual CBufferHandle* AllocateHandle | ( | ) | [pure virtual] |
Allocate a CBufferHandle, remember to call Release() on it when you're done with it.
Implemented in CBufferHandleAllocator.
virtual CSmartBuffer Allocate | ( | const IBuffer & | buffer | ) | [pure virtual] |
Allocate a CBufferHandle and attach the supplied IBuffer to it, return the CBufferHandle's IBuffer interface, remember to call Release() on it when you're done with it.
Implemented in CBufferHandleAllocator.
virtual bool Flush | ( | ) | [pure virtual] |
Flushes the allocator. Use with care as this forces active buffer handles to be released and destroyed! Generally only called as part of process cleanup and even then only to aid in buffer leak tracking.
Implemented in CBufferHandleAllocator.