Main Page   Class Hierarchy   Compound List   Compound Members  

Producer::Referenced Class Reference

Inheritance diagram for Producer::Referenced:

Producer::Camera Producer::Camera::Callback Producer::Camera::Lens Producer::Camera::SceneHandler Producer::RenderSurface List of all members.

Public Methods

 Referenced ()
 Referenced (const Referenced &)
Referenced & operator= (Referenced &)
void ref () const
void unref () const
void unref_nodelete () const
int getReferenceCount () const

Protected Methods

virtual ~Referenced ()

Protected Attributes

int _refCount

Detailed Description

Base class from providing referencing counted objects.


Member Function Documentation

int Producer::Referenced::getReferenceCount   const [inline]
 

return the number pointers currently referencing this object.

void Producer::Referenced::ref   const [inline]
 

increment the reference count by one, indicating that this object has another pointer which is referencing it.

void Producer::Referenced::unref   const [inline]
 

decrement the reference count by one, indicating that a pointer to this object is referencing it. If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.

void Producer::Referenced::unref_nodelete   const [inline]
 

decrement the reference count by one, indicating that a pointer to this object is referencing it. However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be resonsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 15:21:44 2004 for OpenProducer by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002