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

CdbCPtr.hh File Reference

#include "CdbBase/CdbCommon.hh"
#include "CdbBase/CdbCPtrBase.hh"
#include "CdbBase/CdbDoNotClosePolicy.hh"
#include <iostream>

Go to the source code of this file.

Compounds

class  CdbCPtr
 Smart counted pointer class supporting the automatic close policy. More...

class  Counter
 The nested class representing an internal counter. More...


Functions

template<class P, class CLOSE_POLICY> bool operator== (const P *ptr, const CdbCPtr< P, CLOSE_POLICY > &thePtr)
 The missing equality operator for the smart pointer.

template<class P, class CLOSE_POLICY> bool operator!= (const P *ptr, const CdbCPtr< P, CLOSE_POLICY > &thePtr)
 The missing non-equal operator for the smart pointer.


Function Documentation

template<class P, class CLOSE_POLICY>
bool operator!= const P *    ptr,
const CdbCPtr< P, CLOSE_POLICY > &    thePtr
 

The missing non-equal operator for the smart pointer.

See the previously defined global equaty operator

Definition at line 322 of file CdbCPtr.hh.

template<class P, class CLOSE_POLICY>
bool operator== const P *    ptr,
const CdbCPtr< P, CLOSE_POLICY > &    thePtr
 

The missing equality operator for the smart pointer.

This operator allows to compare a smart pointer with a regular one while having the regular one on the left hand side of the comparision expression.

This makes possible the following use case:

     CdbXyzPtr thePtr = ...;
     if( 0 == thePtr ) ...
 

Definition at line 310 of file CdbCPtr.hh.


Generated on Mon Dec 5 18:22:14 2005 for CDB by doxygen1.3-rc3