StrongRefBase Class Reference

#include <refBase.h>

Inheritance diagram for StrongRefBase:

Inheritance graph
[legend]
List of all members.

Detailed Description

Base class for objects which can be strongly referenced (i.e., as long as reference exists, object will exist, when all strong references go away, object is destroyed).


Public Member Functions

 StrongRefBase ()
U32 getRefCount () const
virtual void destroySelf ()
 object destroy self call (from StrongRefPtr). Override if this class has specially allocated memory.

Private Attributes

U32 mRefCount
 reference counter for StrongRefPtr objects

Friends

class StrongObjectRef


Constructor & Destructor Documentation

StrongRefBase::StrongRefBase (  )  [inline]


Member Function Documentation

U32 StrongRefBase::getRefCount (  )  const [inline]

virtual void StrongRefBase::destroySelf (  )  [inline, virtual]

object destroy self call (from StrongRefPtr). Override if this class has specially allocated memory.

Reimplemented in ResourceBase::Header.


Friends And Related Function Documentation

friend class StrongObjectRef [friend]


Member Data Documentation

reference counter for StrongRefPtr objects