#include <IRefObject.h>
This class implemented IRefObject interfaces.
concrete class can derive from this class to avoid implementing IRefObject interfaces.
Public Member Functions |
|
GraphicsUtilityAPI | ARefObject () |
virtual GraphicsUtilityAPI long | AddRef () |
from
IRefObject, see comments in
IRefObject |
|
virtual GraphicsUtilityAPI long | Release () |
decrease reference count of this object by
one, if the decreased reference count equals zero, the object will
be deleted. |
|
Protected Member Functions |
|
virtual GraphicsUtilityAPI void | DeleteThis () |
This function will be called when the
reference count of an ARefObject
equals zero. |
|
virtual GraphicsUtilityAPI | ~ARefObject () |
GraphicsUtilityAPI ARefObject | ( | ) |
virtual GraphicsUtilityAPI ~ARefObject | ( | ) | [protected, virtual] |
virtual GraphicsUtilityAPI long AddRef | ( | ) | [virtual] |
virtual GraphicsUtilityAPI long Release | ( | ) | [virtual] |
decrease reference count of this object by one, if the decreased reference count equals zero, the object will be deleted.
Implements IRefObject.
virtual GraphicsUtilityAPI void DeleteThis | ( | ) | [protected, virtual] |
This function will be called when the reference count of an ARefObject equals zero.
Concrete class may need to override this function because it may be created on different heaps and need different ways to free its memory back to system.
Default behavior: delete this.