Main Page   Class Hierarchy   Compound List   Compound Members  

Producer::ref_ptr Class Template Reference

List of all members.

Public Types

typedef T element_type

Public Methods

 ref_ptr ()
 ref_ptr (T *t)
 ref_ptr (const ref_ptr &rp)
 ~ref_ptr ()
ref_ptr & operator= (const ref_ptr &rp)
ref_ptr & operator= (T *ptr)
bool operator== (const ref_ptr &rp) const
bool operator== (const T *ptr) const
bool operator!= (const ref_ptr &rp) const
bool operator!= (const T *ptr) const
bool operator< (const ref_ptr &rp) const
bool operator> (const ref_ptr &rp) const
bool operator> (const T *ptr) const
T & operator * ()
const T & operator * () const
T * operator-> ()
const T * operator-> () const
bool operator! () const
bool valid () const
T * get ()
const T * get () const
T * take ()

Detailed Description

template<class T>
class Producer::ref_ptr< T >

Smart pointer for handling referenced counted objects.


Member Function Documentation

template<class T>
T* Producer::ref_ptr< T >::take   [inline]
 

take control over the object pointed to by ref_ptr, unreference but do not delete even if ref count goes to 0, return the pointer to the object. Note, do not use this unless you are 100% sure your code handles the deletion of the object correctly, and only use when absolutely required.


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