RefPtr< T > Class Template Reference


Detailed Description

template<class T>
class lemon::RefPtr< T >

This is a simple implementation of a reference counted pointer.

Warning:
Current implementation is far from being thread-safe.
#include <lemon/refptr.h>

List of all members.

Public Member Functions

 RefPtr ()
 
 RefPtr (const RefPtr &r)
 
 RefPtr (T *p)
 
 ~RefPtr ()
 
const RefPtroperator= (const RefPtr &r)
 
const RefPtroperator= (const T *&p)
 
void swap (RefPtr &r)
 
void clear ()
 
T * operator-> ()
 
const T * operator-> () const
 
 operator T * ()
 
 operator const T * () const
 
bool operator< (const RefPtr &r) const
 
bool operator<= (const RefPtr &r) const
 
bool operator== (const RefPtr &r) const
 
bool operator>= (const RefPtr &r) const
 
bool operator> (const RefPtr &r) const
 
bool operator!= (const RefPtr &r) const
 
 operator bool () const
 
const RefPtrborrow (const T *&p)
 
const RefPtrborrow ()
 


Generated on Thu Jun 4 04:06:40 2009 for LEMON by  doxygen 1.5.9