FUObjectOwner Class Reference
[Utility Classes.]

An object owner. More...

#include <FUObject.h>

Inheritance diagram for FUObjectOwner:

FUObjectContainer< ObjectClass > FUObjectRef< ObjectClass > List of all members.

Public Member Functions

virtual ~FUObjectOwner ()
 Destructor.
virtual void OnOwnedObjectReleased (FUObject *object)=0
 Notification from the object to its owner, when it is released.

Protected Member Functions

void AttachObject (FUObject *object)
 Owns the given object.
void DetachObject (FUObject *object)
 Detaches the given object.

Detailed Description

An object owner.

This interface allows containment classes to be notified when a contained object is released.


Member Function Documentation

void FUObjectOwner::AttachObject FUObject object  )  [inline, protected]
 

Owns the given object.

Parameters:
object The object to own.

void FUObjectOwner::DetachObject FUObject object  )  [inline, protected]
 

Detaches the given object.

Use this function right before releasing the object to avoid calling the notification function (OnOwnedObjectReleased).

Parameters:
object The object to detach.

virtual void FUObjectOwner::OnOwnedObjectReleased FUObject object  )  [pure virtual]
 

Notification from the object to its owner, when it is released.

Parameters:
object The object being released.

Implemented in FUObjectRef< ObjectClass >, FUObjectContainer< ObjectClass >, FUObjectRef< FCDExternalReferenceManager >, FUObjectRef< FCDAnimated >, FUObjectRef< FCDPhysicsAnalyticalGeometry >, FUObjectRef< FCDEntityReference >, FUObjectContainer< FUPlugin >, FUObjectContainer< FCDAnimated >, and FUObjectContainer< FCDPlaceHolder >.


The documentation for this class was generated from the following file:
Generated on Thu Feb 14 16:58:41 2008 for FCollada by  doxygen 1.4.6-NO