ACE  6.3.3
Classes | Functions
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"

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...
 
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. More...
 
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

Author
Iliyan Jeliazkov iliya.nosp@m.n@oc.nosp@m.iweb..nosp@m.com
Note
Modeled on http://www.boost.org/boost/intrusive_ptr.hpp

Function Documentation

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

Inequality operator, which is the opposite of equality.

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

Equality operator that returns true if both ACE_Intrusive_Auto_Ptr objects point to the same underlying representation. It does not compare the actual pointers.

Note
It also returns true if both objects have just been instantiated and not used yet.
template<class T , class U >
bool operator== ( ACE_Intrusive_Auto_Ptr< T > const &  a,
U *  b 
)
inline
template<class T , class U >
bool operator== ( T *  a,
ACE_Intrusive_Auto_Ptr< U > const &  b 
)
inline