Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL::SafeObjectRef class Reference

TNL::SafeObjectRef Class Reference

#include <tnlNetBase.h>

Inheritance diagram for TNL::SafeObjectRef:

TNL::SafePtr< T >

Detailed Description

Base class for Object safe pointers.


Public Member Functions

 SafeObjectRef (Object *object)
 SafeObjectRef ()
void set (Object *object)
 ~SafeObjectRef ()
void registerReference ()
 Links this SafeObjectRef into the doubly linked list of SafeObjectRef instances for mObject.

void unregisterReference ()
 Unlinks this SafeObjectRef from the doubly linked list of SafeObjectRef instance for mObject.


Protected Attributes

ObjectmObject
 The object this is a safe pointer to, or NULL if the object has been deleted.

SafeObjectRefmPrevObjectRef
 The previous SafeObjectRef for mObject.

SafeObjectRefmNextObjectRef
 The next SafeObjectRef for mObject.


Friends

class Object


Constructor & Destructor Documentation

TNL::SafeObjectRef::SafeObjectRef Object object  )  [inline]
 

TNL::SafeObjectRef::SafeObjectRef  )  [inline]
 

TNL::SafeObjectRef::~SafeObjectRef  )  [inline]
 


Member Function Documentation

void TNL::SafeObjectRef::set Object object  )  [inline]
 

void TNL::SafeObjectRef::registerReference  )  [inline]
 

Links this SafeObjectRef into the doubly linked list of SafeObjectRef instances for mObject.

void TNL::SafeObjectRef::unregisterReference  )  [inline]
 

Unlinks this SafeObjectRef from the doubly linked list of SafeObjectRef instance for mObject.


Friends And Related Function Documentation

friend class Object [friend]
 


Field Documentation

Object* TNL::SafeObjectRef::mObject [protected]
 

The object this is a safe pointer to, or NULL if the object has been deleted.

SafeObjectRef* TNL::SafeObjectRef::mPrevObjectRef [protected]
 

The previous SafeObjectRef for mObject.

SafeObjectRef* TNL::SafeObjectRef::mNextObjectRef [protected]
 

The next SafeObjectRef for mObject.