TC::Impl::SharedPtrCountType< T, DELETER > Class Template Reference

Shared counter implementation for specified pointer type Holds also the pointer which gets also deleted when the counter is deleted. More...

#include <TCSharedPtrImpl.h>

Inheritance diagram for TC::Impl::SharedPtrCountType< T, DELETER >:

Inheritance graph
[legend]
Collaboration diagram for TC::Impl::SharedPtrCountType< T, DELETER >:

Collaboration graph
[legend]

List of all members.

Protected Member Functions

 SharedPtrCountType (T *ptr, DELETER deleter)
 Construct reference counter with 1.
virtual void DeletePtr ()

Private Attributes

T * m_ptr
 The real pointer.
DELETER m_deleter
 The delete function for deleting the pointer.

Friends

class TC::SharedPtrCount


Detailed Description

template<class T, class DELETER>
class TC::Impl::SharedPtrCountType< T, DELETER >

Shared counter implementation for specified pointer type Holds also the pointer which gets also deleted when the counter is deleted.

Definition at line 142 of file TCSharedPtrImpl.h.


Constructor & Destructor Documentation

template<class T , class DELETER >
TC::Impl::SharedPtrCountType< T, DELETER >::SharedPtrCountType ( T *  ptr,
DELETER  deleter 
) [inline, protected]

Construct reference counter with 1.

Definition at line 146 of file TCSharedPtrImpl.h.


Member Function Documentation

template<class T , class DELETER >
virtual void TC::Impl::SharedPtrCountType< T, DELETER >::DeletePtr (  )  [inline, protected, virtual]


Friends And Related Function Documentation

template<class T , class DELETER >
friend class TC::SharedPtrCount [friend]

Reimplemented from TC::Impl::SharedPtrCountBase.

Definition at line 162 of file TCSharedPtrImpl.h.


Member Data Documentation

template<class T , class DELETER >
T* TC::Impl::SharedPtrCountType< T, DELETER >::m_ptr [private]

The real pointer.

Definition at line 158 of file TCSharedPtrImpl.h.

Referenced by TC::Impl::SharedPtrCountType< T, DELETER >::DeletePtr().

template<class T , class DELETER >
DELETER TC::Impl::SharedPtrCountType< T, DELETER >::m_deleter [private]

The delete function for deleting the pointer.

Definition at line 160 of file TCSharedPtrImpl.h.

Referenced by TC::Impl::SharedPtrCountType< T, DELETER >::DeletePtr().


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

Copyright (c) Thomas Goessler 2003 - 2008