Public Types | Public Member Functions

nsCOMPtr< T > Class Template Reference

#include <nsCOMPtr.h>

Inheritance diagram for nsCOMPtr< T >:
Collaboration diagram for nsCOMPtr< T >:

List of all members.

Public Types

typedef T element_type

Public Member Functions

 nsCOMPtr ()
 nsCOMPtr (const nsCOMPtr< T > &aSmartPtr)
 nsCOMPtr (T *aRawPtr)
 nsCOMPtr (const already_AddRefed< T > &aSmartPtr)
 nsCOMPtr (const nsQueryInterface qi)
 nsCOMPtr (const nsQueryInterfaceWithError &qi)
 nsCOMPtr (const nsGetServiceByCID gs)
 nsCOMPtr (const nsGetServiceByCIDWithError &gs)
 nsCOMPtr (const nsGetServiceByContractID gs)
 nsCOMPtr (const nsGetServiceByContractIDWithError &gs)
 nsCOMPtr (const nsCOMPtr_helper &helper)
nsCOMPtr< T > & operator= (const nsCOMPtr< T > &rhs)
nsCOMPtr< T > & operator= (T *rhs)
nsCOMPtr< T > & operator= (const already_AddRefed< T > &rhs)
nsCOMPtr< T > & operator= (const nsQueryInterface rhs)
nsCOMPtr< T > & operator= (const nsQueryInterfaceWithError &rhs)
nsCOMPtr< T > & operator= (const nsGetServiceByCID rhs)
nsCOMPtr< T > & operator= (const nsGetServiceByCIDWithError &rhs)
nsCOMPtr< T > & operator= (const nsGetServiceByContractID rhs)
nsCOMPtr< T > & operator= (const nsGetServiceByContractIDWithError &rhs)
nsCOMPtr< T > & operator= (const nsCOMPtr_helper &rhs)
void swap (nsCOMPtr< T > &rhs)
void swap (T *&rhs)
already_AddRefed< T > forget ()
void forget (T **rhs)
T * get () const
 operator T * () const
T * operator-> () const
nsCOMPtr< T > * get_address ()
const nsCOMPtr< T > * get_address () const
T & operator* () const
T ** StartAssignment ()

template<class T>
class nsCOMPtr< T >


Member Typedef Documentation

template<class T>
typedef T nsCOMPtr< T >::element_type

Constructor & Destructor Documentation

template<class T>
nsCOMPtr< T >::nsCOMPtr (  )  [inline]
template<class T>
nsCOMPtr< T >::nsCOMPtr ( const nsCOMPtr< T > &  aSmartPtr  )  [inline]
template<class T>
nsCOMPtr< T >::nsCOMPtr ( T *  aRawPtr  )  [inline]
template<class T>
nsCOMPtr< T >::nsCOMPtr ( const already_AddRefed< T > &  aSmartPtr  )  [inline]
template<class T>
nsCOMPtr< T >::nsCOMPtr ( const nsQueryInterface  qi  )  [inline]
template<class T>
nsCOMPtr< T >::nsCOMPtr ( const nsQueryInterfaceWithError qi  )  [inline]
template<class T>
nsCOMPtr< T >::nsCOMPtr ( const nsGetServiceByCID  gs  )  [inline]
template<class T>
nsCOMPtr< T >::nsCOMPtr ( const nsGetServiceByCIDWithError gs  )  [inline]
template<class T>
nsCOMPtr< T >::nsCOMPtr ( const nsGetServiceByContractID  gs  )  [inline]
template<class T>
nsCOMPtr< T >::nsCOMPtr ( const nsGetServiceByContractIDWithError gs  )  [inline]
template<class T>
nsCOMPtr< T >::nsCOMPtr ( const nsCOMPtr_helper helper  )  [inline]

Member Function Documentation

template<class T>
already_AddRefed<T> nsCOMPtr< T >::forget (  )  [inline]
template<class T>
void nsCOMPtr< T >::forget ( T **  rhs  )  [inline]
template<class T>
T* nsCOMPtr< T >::get (  )  const [inline]
template<class T>
nsCOMPtr<T>* nsCOMPtr< T >::get_address (  )  [inline]
template<class T>
const nsCOMPtr<T>* nsCOMPtr< T >::get_address (  )  const [inline]
template<class T>
nsCOMPtr< T >::operator T * (  )  const [inline]
template<class T>
T& nsCOMPtr< T >::operator* (  )  const [inline]
template<class T>
T* nsCOMPtr< T >::operator-> (  )  const [inline]
template<class T>
nsCOMPtr<T>& nsCOMPtr< T >::operator= ( const nsCOMPtr< T > &  rhs  )  [inline]
template<class T>
nsCOMPtr<T>& nsCOMPtr< T >::operator= ( const nsGetServiceByCID  rhs  )  [inline]
template<class T>
nsCOMPtr<T>& nsCOMPtr< T >::operator= ( const nsGetServiceByContractID  rhs  )  [inline]
template<class T>
nsCOMPtr<T>& nsCOMPtr< T >::operator= ( T *  rhs  )  [inline]
template<class T>
nsCOMPtr<T>& nsCOMPtr< T >::operator= ( const nsQueryInterfaceWithError rhs  )  [inline]
template<class T>
nsCOMPtr<T>& nsCOMPtr< T >::operator= ( const nsGetServiceByContractIDWithError rhs  )  [inline]
template<class T>
nsCOMPtr<T>& nsCOMPtr< T >::operator= ( const nsQueryInterface  rhs  )  [inline]
template<class T>
nsCOMPtr<T>& nsCOMPtr< T >::operator= ( const nsGetServiceByCIDWithError rhs  )  [inline]
template<class T>
nsCOMPtr<T>& nsCOMPtr< T >::operator= ( const already_AddRefed< T > &  rhs  )  [inline]
template<class T>
nsCOMPtr<T>& nsCOMPtr< T >::operator= ( const nsCOMPtr_helper rhs  )  [inline]
template<class T>
T** nsCOMPtr< T >::StartAssignment (  )  [inline]
template<class T>
void nsCOMPtr< T >::swap ( T *&  rhs  )  [inline]
template<class T>
void nsCOMPtr< T >::swap ( nsCOMPtr< T > &  rhs  )  [inline]

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