Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CdbCPtrBase< P > Class Template Reference

A base class for the counted smart pointer class. More...

#include <CdbCPtrBase.hh>

Inheritance diagram for CdbCPtrBase< P >:

CdbCPtr< P, CLOSE_POLICY > List of all members.

Static Protected Member Functions

void deleteObject (P *&ptr)
 The destructor of pointed objects.


Detailed Description

template<class P>
class CdbCPtrBase< P >

A base class for the counted smart pointer class.

The only role of this utility class is to provide "trusted" destruction of an object of the specific parameter class. We do this operation in the dedicated class in order to increase the flexibility in the actual implementation of the derived smart pointers.

Definition at line 17 of file CdbCPtrBase.hh.


Member Function Documentation

template<class P>
void CdbCPtrBase< P >::deleteObject P *&    ptr [static, protected]
 

The destructor of pointed objects.

We're assuming that the current class has access to the destructor of the pointed object. Note, that the passed pointer will also be reset to 0 upon the completion of this method.

Definition at line 15 of file CdbCPtrBase.cc.


The documentation for this class was generated from the following files:
Generated on Mon Dec 5 18:22:21 2005 for CDB by doxygen1.3-rc3