Stun Server  Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
CRefCountedPtr< T > Class Template Reference

#include <refcountobject.h>

Public Member Functions

 CRefCountedPtr ()
 
 CRefCountedPtr (T *ptr)
 
 CRefCountedPtr (const CRefCountedPtr< T > &sp)
 
 ~CRefCountedPtr ()
 
T * GetPointer ()
 
 operator T * () const
 
T ** GetPointerPointer ()
 
T * operator-> () const
 
T * operator= (T *ptr)
 
T * operator= (const CRefCountedPtr< T > &sp)
 
bool operator! () const
 
bool operator!= (T *ptr) const
 
bool operator== (T *ptr) const
 
void ReleaseAndClear ()
 
void Attach (T *ptr)
 
T * Detach ()
 
HRESULT CopyTo (T **ppT)
 

Protected Attributes

T * m_ptr
 

Detailed Description

template<class T>
class CRefCountedPtr< T >

Definition at line 57 of file refcountobject.h.

Constructor & Destructor Documentation

template<class T>
CRefCountedPtr< T >::CRefCountedPtr ( )
inline

Definition at line 65 of file refcountobject.h.

template<class T>
CRefCountedPtr< T >::CRefCountedPtr ( T *  ptr)
inline

Definition at line 70 of file refcountobject.h.

template<class T>
CRefCountedPtr< T >::CRefCountedPtr ( const CRefCountedPtr< T > &  sp)
inline

Definition at line 78 of file refcountobject.h.

template<class T>
CRefCountedPtr< T >::~CRefCountedPtr ( )
inline

Definition at line 86 of file refcountobject.h.

Member Function Documentation

template<class T>
void CRefCountedPtr< T >::Attach ( T *  ptr)
inline

Definition at line 176 of file refcountobject.h.

template<class T>
HRESULT CRefCountedPtr< T >::CopyTo ( T **  ppT)
inline

Definition at line 192 of file refcountobject.h.

template<class T>
T* CRefCountedPtr< T >::Detach ( )
inline

Definition at line 185 of file refcountobject.h.

template<class T>
T* CRefCountedPtr< T >::GetPointer ( )
inline

Definition at line 95 of file refcountobject.h.

template<class T>
T** CRefCountedPtr< T >::GetPointerPointer ( )
inline

Definition at line 112 of file refcountobject.h.

template<class T>
CRefCountedPtr< T >::operator T * ( ) const
inline

Definition at line 100 of file refcountobject.h.

template<class T>
bool CRefCountedPtr< T >::operator! ( ) const
inline

Definition at line 151 of file refcountobject.h.

template<class T>
bool CRefCountedPtr< T >::operator!= ( T *  ptr) const
inline

Definition at line 156 of file refcountobject.h.

template<class T>
T* CRefCountedPtr< T >::operator-> ( ) const
inline

Definition at line 118 of file refcountobject.h.

template<class T>
T* CRefCountedPtr< T >::operator= ( T *  ptr)
inline

Definition at line 123 of file refcountobject.h.

template<class T>
T* CRefCountedPtr< T >::operator= ( const CRefCountedPtr< T > &  sp)
inline

Definition at line 137 of file refcountobject.h.

template<class T>
bool CRefCountedPtr< T >::operator== ( T *  ptr) const
inline

Definition at line 161 of file refcountobject.h.

template<class T>
void CRefCountedPtr< T >::ReleaseAndClear ( )
inline

Definition at line 167 of file refcountobject.h.

Member Data Documentation

template<class T>
T* CRefCountedPtr< T >::m_ptr
protected

Definition at line 60 of file refcountobject.h.


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