ucommon::pointer< T > Class Template Reference

Generic smart pointer class. More...

#include <generics.h>


Public Member Functions

T & operator * ()
 operator bool ()
bool operator! ()
T * operator-> ()
pointeroperator= (T *ptr)
pointeroperator= (pointer< T > &ref)
 pointer (pointer< T > &ref)
 pointer (T *ptr=((void *) 0))
 pointer ()
void release (void)
void retain (void)
void set (pointer< T > &ref)
void set (T *ptr)
 ~pointer ()

Protected Attributes

unsigned * counter
T * object


Detailed Description

template<typename T>
class ucommon::pointer< T >

Generic smart pointer class.

This is the original Common C++ "Pointer" class with a few additions.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 56 of file generics.h.


The documentation for this class was generated from the following file:
Generated on 14 Aug 2013 for UCommon by  doxygen 1.4.7