Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Counted Class Template Reference

A counted pointer to T (used by SmartPtr). More...

#include <smartptr.h>

Collaboration diagram for Counted:

Collaboration graph
[legend]
List of all members.

Private Methods

 Counted (T *p)
 ~Counted ()
unsigned new_reference ()
unsigned free_reference ()

Private Attributes

unsigned counter
T *const pointer

Friends

class SmartPtr< T >

Detailed Description

template<class T>
class rs::Counted< T >

A counted pointer to T (used by SmartPtr).

Definition at line 40 of file smartptr.h.


Constructor & Destructor Documentation

Counted T *    p [inline, private]
 

Definition at line 45 of file smartptr.h.

~Counted   [inline, private]
 

Definition at line 46 of file smartptr.h.


Member Function Documentation

unsigned new_reference   [inline, private]
 

Definition at line 48 of file smartptr.h.

Referenced by SmartPtr::SmartPtr().

unsigned free_reference   [inline, private]
 

Definition at line 52 of file smartptr.h.

Referenced by SmartPtr::Unbind().


Friends And Related Function Documentation

friend class SmartPtr< T > [friend]
 

Definition at line 58 of file smartptr.h.


Member Data Documentation

unsigned counter [private]
 

Definition at line 42 of file smartptr.h.

Referenced by Counted::Counted(), Counted::free_reference(), Counted::new_reference(), and Counted::~Counted().

T* const pointer [private]
 

Definition at line 43 of file smartptr.h.

Referenced by Counted::Counted(), SmartPtr::operator *(), SmartPtr::operator->(), and Counted::~Counted().


The documentation for this class was generated from the following file:
Contact me in case of errors or questions.
This documentation is powered by Doxygen.
(C) 2000-2002 Doxygen