Poster of Linux kernelThe best gift for a Linux geek
zipios::SimpleSmartPointer

zipios::SimpleSmartPointer

Section: C Library Functions (3) Updated: 7 Nov 2008
Local index Up
 

NAME

zipios::SimpleSmartPointer - SimpleSmartPointer is a simple reference counting smart pointer template.

 

SYNOPSIS


#include <simplesmartptr.h>

 

Public Member Functions


Type * operator-> () const

Type & operator* () const

SimpleSmartPointer (Type *p=0)

template<class T2> SimpleSmartPointer (const SimpleSmartPointer< T2 > &src)

SimpleSmartPointer (const SimpleSmartPointer &src)

template<class T2> SimpleSmartPointer & operator= (const SimpleSmartPointer< T2 > &src)

SimpleSmartPointer & operator= (const SimpleSmartPointer &src)

SimpleSmartPointer & operator= (Type *src)

bool operator== (const Type *p) const

bool operator!= (const Type *p) const

bool operator== (const SimpleSmartPointer &sp) const

bool operator!= (const SimpleSmartPointer &sp) const

bool operator! () const

operator void * () const

Type * get () const

unsigned int getReferenceCount () const
Returns the reference count - For debugging purposes.  

Detailed Description

 

template<class Type> class zipios::SimpleSmartPointer< Type >

SimpleSmartPointer is a simple reference counting smart pointer template.

The type pointed to must keep a reference count that is accessible through the two methods void ref() const and unsigned int unref() const. The type must also handle the reference count properly. The easiest way to do that is to use the ReferenceCount template class.

Definition at line 15 of file simplesmartptr.h.  

Member Function Documentation

 

template<class Type> unsigned int zipios::SimpleSmartPointer< Type >::getReferenceCount () const [inline]

Returns the reference count - For debugging purposes.

Definition at line 67 of file simplesmartptr.h.

 

Author

Generated automatically by Doxygen for Zipios++ from the source code.


 

Index

NAME
SYNOPSIS
Public Member Functions
Detailed Description
template<class Type> class zipios::SimpleSmartPointer< Type >
Member Function Documentation
template<class Type> unsigned int zipios::SimpleSmartPointer< Type >::getReferenceCount () const [inline]
Author

This document was created by man2html, using the manual pages.
Time: 21:59:26 GMT, April 16, 2011