ARB
Public Member Functions | Friends | List of all members
Counted< T, AP > Class Template Reference

#include <smartptr.h>

Public Member Functions

 Counted (T *p)
 
unsigned new_reference ()
 
unsigned free_reference ()
 
const TgetPointer () const
 
TgetPointer ()
 

Friends

class SmartPtr< T, Counted< T, AP > >
 

Detailed Description

template<class T, class AP>
class Counted< T, AP >

Definition at line 152 of file smartptr.h.

Constructor & Destructor Documentation

template<class T , class AP >
Counted< T, AP >::Counted ( T p)
inline

Definition at line 158 of file smartptr.h.

References DUMP_SMART_PTRS_DO, Counted< T, AP >::getPointer(), and tpl_assert.

Member Function Documentation

template<class T , class AP >
unsigned Counted< T, AP >::new_reference ( )
inline

Definition at line 169 of file smartptr.h.

References DUMP_SMART_PTRS_DO, and Counted< T, AP >::getPointer().

template<class T , class AP >
unsigned Counted< T, AP >::free_reference ( )
inline

Definition at line 173 of file smartptr.h.

References DUMP_SMART_PTRS_DO, Counted< T, AP >::getPointer(), and tpl_assert.

template<class T , class AP >
const T* Counted< T, AP >::getPointer ( ) const
inline
template<class T , class AP >
T* Counted< T, AP >::getPointer ( )
inline

Definition at line 180 of file smartptr.h.

Friends And Related Function Documentation

template<class T , class AP >
friend class SmartPtr< T, Counted< T, AP > >
friend

Definition at line 182 of file smartptr.h.


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