IManageBufferLifeCycle Class Reference
[InterfacesI/O BuffersProtected non-virtual destructors on abstract base classes]

Inheritance diagram for IManageBufferLifeCycle:

Inheritance graph
[legend]

List of all members.


Detailed Description

A helper interface to remove a friend relationship between buffers and their allocators...

Public Member Functions

virtual IBufferAllocate ()=0
 Allocate an instance of IBuffer, remember to call Release() on it when you're done with it.
virtual void Release (IBuffer *pBuffer)=0

Protected Member Functions

 ~IManageBufferLifeCycle ()
 We never delete instances of this interface; you must manage the lifetime of the class that implements it.

Constructor & Destructor Documentation

~IManageBufferLifeCycle (  )  [inline, protected]

We never delete instances of this interface; you must manage the lifetime of the class that implements it.


Member Function Documentation

virtual IBuffer* Allocate (  )  [pure virtual]

Allocate an instance of IBuffer, remember to call Release() on it when you're done with it.

Implemented in CBufferAllocator, and CLockFreeBufferAllocator.

virtual void Release ( IBuffer pBuffer  )  [pure virtual]


Generated on Tue Oct 2 15:45:24 2007 for JetByte Tools - v5.2 by  doxygen 1.5.3