ARefObject Class Reference
 
 
 
ARefObject Class Reference

#include <IRefObject.h>

Inheritance diagram for ARefObject:
IRefObject MaxHeapOperators ICustomRenderItem IDisplayCallback IRenderGeometry ChildObjectDisplayCallback

Class Description

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 ()

Constructor & Destructor Documentation

GraphicsUtilityAPI ARefObject ( )
virtual GraphicsUtilityAPI ~ARefObject ( ) [protected, virtual]

Member Function Documentation

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.

Returns:
decreased count

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.