Intrusive_Auto_Ptr.h File Reference

#include "ace/Auto_Ptr.h"
#include "ace/Atomic_Op.h"
#include "ace/Intrusive_Auto_Ptr.inl"
#include "ace/Intrusive_Auto_Ptr.cpp"

Include dependency graph for Intrusive_Auto_Ptr.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ACE_Intrusive_Auto_Ptr< X >
 This class implements support for a reference counted auto_ptr. It assumes reference counting abilities of the parameterizing class. More...

Functions

template<class T, class U>
bool operator== (ACE_Intrusive_Auto_Ptr< T > const &a, ACE_Intrusive_Auto_Ptr< U > const &b)
template<class T, class U>
bool operator!= (ACE_Intrusive_Auto_Ptr< T > const &a, ACE_Intrusive_Auto_Ptr< U > const &b)
 Inequality operator, which is the opposite of equality.
template<class T, class U>
bool operator== (ACE_Intrusive_Auto_Ptr< T > const &a, U *b)
template<class T, class U>
bool operator!= (ACE_Intrusive_Auto_Ptr< T > &a, U *b)
template<class T, class U>
bool operator== (T *a, ACE_Intrusive_Auto_Ptr< U > const &b)
template<class T, class U>
bool operator!= (T *a, ACE_Intrusive_Auto_Ptr< U > const &b)


Detailed Description

Id
Intrusive_Auto_Ptr.h 81388 2008-04-23 14:02:05Z johnnyw

Author:
Iliyan Jeliazkov <iliyan@ociweb.com>
Note:
Modeled on http://www.boost.org/boost/intrusive_ptr.hpp

Definition in file Intrusive_Auto_Ptr.h.


Function Documentation

template<class T, class U>
bool operator!= ( T *  a,
ACE_Intrusive_Auto_Ptr< U > const &  b 
)

Definition at line 141 of file Intrusive_Auto_Ptr.inl.

00142 {
00143     return a != b.get();
00144 }

template<class T, class U>
bool operator!= ( ACE_Intrusive_Auto_Ptr< T > &  a,
U *  b 
)

Definition at line 131 of file Intrusive_Auto_Ptr.inl.

00132 {
00133     return a.get() != b;
00134 }

template<class T, class U>
bool operator!= ( ACE_Intrusive_Auto_Ptr< T > const &  a,
ACE_Intrusive_Auto_Ptr< U > const &  b 
)

Inequality operator, which is the opposite of equality.

Definition at line 121 of file Intrusive_Auto_Ptr.inl.

00122 {
00123     return a.get() != b.get();
00124 }

template<class T, class U>
bool operator== ( T *  a,
ACE_Intrusive_Auto_Ptr< U > const &  b 
)

Definition at line 136 of file Intrusive_Auto_Ptr.inl.

00137 {
00138     return a == b.get();
00139 }

template<class T, class U>
bool operator== ( ACE_Intrusive_Auto_Ptr< T > const &  a,
U *  b 
)

Definition at line 126 of file Intrusive_Auto_Ptr.inl.

00127 {
00128     return a.get() == b;
00129 }

template<class T, class U>
bool operator== ( ACE_Intrusive_Auto_Ptr< T > const &  a,
ACE_Intrusive_Auto_Ptr< U > const &  b 
)

Note:
It also returns true if both objects have just been instantiated and not used yet.

Definition at line 115 of file Intrusive_Auto_Ptr.inl.

00116 {
00117     return a.get() == b.get();
00118 }


Generated on Tue Feb 2 17:23:02 2010 for ACE by  doxygen 1.4.7