UCommon
Public Member Functions | Protected Attributes
ucommon::pointer Class Reference

Generic smart pointer class. More...

#include <generics.h>

Public Member Functions

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

Protected Attributes

unsigned * counter
T * object

Detailed Description

Generic smart pointer class.

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

Author:
David Sugar <dyfet@gnutelephony.org>

The documentation for this class was generated from the following file: