Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsAutoPtr.h File Reference
#include "nsCOMPtr.h"

Go to the source code of this file.

Classes

class  nsAutoPtr< T >
class  nsAutoPtr< T >::Ptr
class  nsAutoPtrGetterTransfers< T >
class  nsAutoArrayPtr< T >
class  nsAutoArrayPtrGetterTransfers< T >
class  nsRefPtr< T >
class  nsRefPtrGetterAddRefs< T >

Functions

template<class T >
nsAutoPtr< T > * address_of (nsAutoPtr< T > &aPtr)
template<class T >
const nsAutoPtr< T > * address_of (const nsAutoPtr< T > &aPtr)
template<class T >
nsAutoPtrGetterTransfers< Tgetter_Transfers (nsAutoPtr< T > &aSmartPtr)
template<class T , class U >
NSCAP_BOOL operator== (const nsAutoPtr< T > &lhs, const nsAutoPtr< U > &rhs)
template<class T , class U >
NSCAP_BOOL operator!= (const nsAutoPtr< T > &lhs, const nsAutoPtr< U > &rhs)
template<class T , class U >
NSCAP_BOOL operator== (const nsAutoPtr< T > &lhs, const U *rhs)
template<class T , class U >
NSCAP_BOOL operator== (const U *lhs, const nsAutoPtr< T > &rhs)
template<class T , class U >
NSCAP_BOOL operator!= (const nsAutoPtr< T > &lhs, const U *rhs)
template<class T , class U >
NSCAP_BOOL operator!= (const U *lhs, const nsAutoPtr< T > &rhs)
template<class T , class U >
NSCAP_BOOL operator== (const nsAutoPtr< T > &lhs, U *rhs)
template<class T , class U >
NSCAP_BOOL operator== (U *lhs, const nsAutoPtr< T > &rhs)
template<class T , class U >
NSCAP_BOOL operator!= (const nsAutoPtr< T > &lhs, U *rhs)
template<class T , class U >
NSCAP_BOOL operator!= (U *lhs, const nsAutoPtr< T > &rhs)
template<class T >
NSCAP_BOOL operator== (const nsAutoPtr< T > &lhs, NSCAP_Zero *rhs)
template<class T >
NSCAP_BOOL operator== (NSCAP_Zero *lhs, const nsAutoPtr< T > &rhs)
template<class T >
NSCAP_BOOL operator!= (const nsAutoPtr< T > &lhs, NSCAP_Zero *rhs)
template<class T >
NSCAP_BOOL operator!= (NSCAP_Zero *lhs, const nsAutoPtr< T > &rhs)
template<class T >
nsAutoArrayPtr< T > * address_of (nsAutoArrayPtr< T > &aPtr)
template<class T >
const nsAutoArrayPtr< T > * address_of (const nsAutoArrayPtr< T > &aPtr)
template<class T >
nsAutoArrayPtrGetterTransfers< Tgetter_Transfers (nsAutoArrayPtr< T > &aSmartPtr)
template<class T , class U >
NSCAP_BOOL operator== (const nsAutoArrayPtr< T > &lhs, const nsAutoArrayPtr< U > &rhs)
template<class T , class U >
NSCAP_BOOL operator!= (const nsAutoArrayPtr< T > &lhs, const nsAutoArrayPtr< U > &rhs)
template<class T , class U >
NSCAP_BOOL operator== (const nsAutoArrayPtr< T > &lhs, const U *rhs)
template<class T , class U >
NSCAP_BOOL operator== (const U *lhs, const nsAutoArrayPtr< T > &rhs)
template<class T , class U >
NSCAP_BOOL operator!= (const nsAutoArrayPtr< T > &lhs, const U *rhs)
template<class T , class U >
NSCAP_BOOL operator!= (const U *lhs, const nsAutoArrayPtr< T > &rhs)
template<class T , class U >
NSCAP_BOOL operator== (const nsAutoArrayPtr< T > &lhs, U *rhs)
template<class T , class U >
NSCAP_BOOL operator== (U *lhs, const nsAutoArrayPtr< T > &rhs)
template<class T , class U >
NSCAP_BOOL operator!= (const nsAutoArrayPtr< T > &lhs, U *rhs)
template<class T , class U >
NSCAP_BOOL operator!= (U *lhs, const nsAutoArrayPtr< T > &rhs)
template<class T >
NSCAP_BOOL operator== (const nsAutoArrayPtr< T > &lhs, NSCAP_Zero *rhs)
template<class T >
NSCAP_BOOL operator== (NSCAP_Zero *lhs, const nsAutoArrayPtr< T > &rhs)
template<class T >
NSCAP_BOOL operator!= (const nsAutoArrayPtr< T > &lhs, NSCAP_Zero *rhs)
template<class T >
NSCAP_BOOL operator!= (NSCAP_Zero *lhs, const nsAutoArrayPtr< T > &rhs)
template<class T >
nsRefPtr< T > * address_of (nsRefPtr< T > &aPtr)
template<class T >
const nsRefPtr< T > * address_of (const nsRefPtr< T > &aPtr)
template<class T >
nsRefPtrGetterAddRefs< Tgetter_AddRefs (nsRefPtr< T > &aSmartPtr)
template<class T , class U >
NSCAP_BOOL operator== (const nsRefPtr< T > &lhs, const nsRefPtr< U > &rhs)
template<class T , class U >
NSCAP_BOOL operator!= (const nsRefPtr< T > &lhs, const nsRefPtr< U > &rhs)
template<class T , class U >
NSCAP_BOOL operator== (const nsRefPtr< T > &lhs, const U *rhs)
template<class T , class U >
NSCAP_BOOL operator== (const U *lhs, const nsRefPtr< T > &rhs)
template<class T , class U >
NSCAP_BOOL operator!= (const nsRefPtr< T > &lhs, const U *rhs)
template<class T , class U >
NSCAP_BOOL operator!= (const U *lhs, const nsRefPtr< T > &rhs)
template<class T , class U >
NSCAP_BOOL operator== (const nsRefPtr< T > &lhs, U *rhs)
template<class T , class U >
NSCAP_BOOL operator== (U *lhs, const nsRefPtr< T > &rhs)
template<class T , class U >
NSCAP_BOOL operator!= (const nsRefPtr< T > &lhs, U *rhs)
template<class T , class U >
NSCAP_BOOL operator!= (U *lhs, const nsRefPtr< T > &rhs)
template<class T >
NSCAP_BOOL operator== (const nsRefPtr< T > &lhs, NSCAP_Zero *rhs)
template<class T >
NSCAP_BOOL operator== (NSCAP_Zero *lhs, const nsRefPtr< T > &rhs)
template<class T >
NSCAP_BOOL operator!= (const nsRefPtr< T > &lhs, NSCAP_Zero *rhs)
template<class T >
NSCAP_BOOL operator!= (NSCAP_Zero *lhs, const nsRefPtr< T > &rhs)

Function Documentation

template<class T >
nsAutoPtr<T>* address_of ( nsAutoPtr< T > &  aPtr) [inline]

Definition at line 255 of file nsAutoPtr.h.

  {
    return aPtr.get_address();
  }

Here is the call graph for this function:

template<class T >
const nsAutoPtr<T>* address_of ( const nsAutoPtr< T > &  aPtr) [inline]

Definition at line 263 of file nsAutoPtr.h.

  {
    return aPtr.get_address();
  }

Here is the call graph for this function:

template<class T >
nsAutoArrayPtr<T>* address_of ( nsAutoArrayPtr< T > &  aPtr) [inline]

Definition at line 675 of file nsAutoPtr.h.

  {
    return aPtr.get_address();
  }

Here is the call graph for this function:

template<class T >
const nsAutoArrayPtr<T>* address_of ( const nsAutoArrayPtr< T > &  aPtr) [inline]

Definition at line 683 of file nsAutoPtr.h.

  {
    return aPtr.get_address();
  }

Here is the call graph for this function:

template<class T >
nsRefPtr<T>* address_of ( nsRefPtr< T > &  aPtr) [inline]

Definition at line 1135 of file nsAutoPtr.h.

  {
    return aPtr.get_address();
  }

Here is the call graph for this function:

template<class T >
const nsRefPtr<T>* address_of ( const nsRefPtr< T > &  aPtr) [inline]

Definition at line 1143 of file nsAutoPtr.h.

  {
    return aPtr.get_address();
  }

Here is the call graph for this function:

template<class T >
nsRefPtrGetterAddRefs<T> getter_AddRefs ( nsRefPtr< T > &  aSmartPtr) [inline]

Definition at line 1201 of file nsAutoPtr.h.

  {
    return nsRefPtrGetterAddRefs<T>(aSmartPtr);
  }
template<class T >
nsAutoPtrGetterTransfers<T> getter_Transfers ( nsAutoPtr< T > &  aSmartPtr) [inline]

Definition at line 321 of file nsAutoPtr.h.

  {
    return nsAutoPtrGetterTransfers<T>(aSmartPtr);
  }

Here is the caller graph for this function:

template<class T >
nsAutoArrayPtrGetterTransfers<T> getter_Transfers ( nsAutoArrayPtr< T > &  aSmartPtr) [inline]

Definition at line 741 of file nsAutoPtr.h.

  {
    return nsAutoArrayPtrGetterTransfers<T>(aSmartPtr);
  }
template<class T , class U >
NSCAP_BOOL operator!= ( const nsAutoPtr< T > &  lhs,
const nsAutoPtr< U > &  rhs 
) [inline]

Definition at line 346 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) != NS_STATIC_CAST(const U*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator!= ( const nsAutoPtr< T > &  lhs,
const U rhs 
) [inline]

Definition at line 373 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) != NS_STATIC_CAST(const U*, rhs);
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator!= ( const U lhs,
const nsAutoPtr< T > &  rhs 
) [inline]

Definition at line 381 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const U*, lhs) != NS_STATIC_CAST(const T*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator!= ( const nsAutoPtr< T > &  lhs,
U rhs 
) [inline]

Definition at line 413 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) != NS_CONST_CAST(const U*, rhs);
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator!= ( U lhs,
const nsAutoPtr< T > &  rhs 
) [inline]

Definition at line 421 of file nsAutoPtr.h.

  {
    return NS_CONST_CAST(const U*, lhs) != NS_STATIC_CAST(const T*, rhs.get());
  }

Here is the call graph for this function:

template<class T >
NSCAP_BOOL operator!= ( const nsAutoPtr< T > &  lhs,
NSCAP_Zero *  rhs 
) [inline]

Definition at line 452 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const void*, lhs.get()) != NS_REINTERPRET_CAST(const void*, rhs);
  }

Here is the call graph for this function:

template<class T >
NSCAP_BOOL operator!= ( NSCAP_Zero *  lhs,
const nsAutoPtr< T > &  rhs 
) [inline]

Definition at line 461 of file nsAutoPtr.h.

  {
    return NS_REINTERPRET_CAST(const void*, lhs) != NS_STATIC_CAST(const void*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator!= ( const nsAutoArrayPtr< T > &  lhs,
const nsAutoArrayPtr< U > &  rhs 
) [inline]

Definition at line 766 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) != NS_STATIC_CAST(const U*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator!= ( const nsAutoArrayPtr< T > &  lhs,
const U rhs 
) [inline]

Definition at line 793 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) != NS_STATIC_CAST(const U*, rhs);
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator!= ( const U lhs,
const nsAutoArrayPtr< T > &  rhs 
) [inline]

Definition at line 801 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const U*, lhs) != NS_STATIC_CAST(const T*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator!= ( const nsAutoArrayPtr< T > &  lhs,
U rhs 
) [inline]

Definition at line 833 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) != NS_CONST_CAST(const U*, rhs);
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator!= ( U lhs,
const nsAutoArrayPtr< T > &  rhs 
) [inline]

Definition at line 841 of file nsAutoPtr.h.

  {
    return NS_CONST_CAST(const U*, lhs) != NS_STATIC_CAST(const T*, rhs.get());
  }

Here is the call graph for this function:

template<class T >
NSCAP_BOOL operator!= ( const nsAutoArrayPtr< T > &  lhs,
NSCAP_Zero *  rhs 
) [inline]

Definition at line 872 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const void*, lhs.get()) != NS_REINTERPRET_CAST(const void*, rhs);
  }

Here is the call graph for this function:

template<class T >
NSCAP_BOOL operator!= ( NSCAP_Zero *  lhs,
const nsAutoArrayPtr< T > &  rhs 
) [inline]

Definition at line 881 of file nsAutoPtr.h.

  {
    return NS_REINTERPRET_CAST(const void*, lhs) != NS_STATIC_CAST(const void*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator!= ( const nsRefPtr< T > &  lhs,
const nsRefPtr< U > &  rhs 
) [inline]

Definition at line 1226 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) != NS_STATIC_CAST(const U*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator!= ( const nsRefPtr< T > &  lhs,
const U rhs 
) [inline]

Definition at line 1253 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) != NS_STATIC_CAST(const U*, rhs);
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator!= ( const U lhs,
const nsRefPtr< T > &  rhs 
) [inline]

Definition at line 1261 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const U*, lhs) != NS_STATIC_CAST(const T*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator!= ( const nsRefPtr< T > &  lhs,
U rhs 
) [inline]

Definition at line 1293 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) != NS_CONST_CAST(const U*, rhs);
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator!= ( U lhs,
const nsRefPtr< T > &  rhs 
) [inline]

Definition at line 1301 of file nsAutoPtr.h.

  {
    return NS_CONST_CAST(const U*, lhs) != NS_STATIC_CAST(const T*, rhs.get());
  }

Here is the call graph for this function:

template<class T >
NSCAP_BOOL operator!= ( const nsRefPtr< T > &  lhs,
NSCAP_Zero *  rhs 
) [inline]

Definition at line 1332 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const void*, lhs.get()) != NS_REINTERPRET_CAST(const void*, rhs);
  }

Here is the call graph for this function:

template<class T >
NSCAP_BOOL operator!= ( NSCAP_Zero *  lhs,
const nsRefPtr< T > &  rhs 
) [inline]

Definition at line 1341 of file nsAutoPtr.h.

  {
    return NS_REINTERPRET_CAST(const void*, lhs) != NS_STATIC_CAST(const void*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( const nsAutoPtr< T > &  lhs,
const nsAutoPtr< U > &  rhs 
) [inline]

Definition at line 337 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) == NS_STATIC_CAST(const U*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( const nsAutoPtr< T > &  lhs,
const U rhs 
) [inline]

Definition at line 357 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) == NS_STATIC_CAST(const U*, rhs);
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( const U lhs,
const nsAutoPtr< T > &  rhs 
) [inline]

Definition at line 365 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const U*, lhs) == NS_STATIC_CAST(const T*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( const nsAutoPtr< T > &  lhs,
U rhs 
) [inline]

Definition at line 397 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) == NS_CONST_CAST(const U*, rhs);
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( U lhs,
const nsAutoPtr< T > &  rhs 
) [inline]

Definition at line 405 of file nsAutoPtr.h.

  {
    return NS_CONST_CAST(const U*, lhs) == NS_STATIC_CAST(const T*, rhs.get());
  }

Here is the call graph for this function:

template<class T >
NSCAP_BOOL operator== ( const nsAutoPtr< T > &  lhs,
NSCAP_Zero *  rhs 
) [inline]

Definition at line 434 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const void*, lhs.get()) == NS_REINTERPRET_CAST(const void*, rhs);
  }

Here is the call graph for this function:

template<class T >
NSCAP_BOOL operator== ( NSCAP_Zero *  lhs,
const nsAutoPtr< T > &  rhs 
) [inline]

Definition at line 443 of file nsAutoPtr.h.

  {
    return NS_REINTERPRET_CAST(const void*, lhs) == NS_STATIC_CAST(const void*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( const nsAutoArrayPtr< T > &  lhs,
const nsAutoArrayPtr< U > &  rhs 
) [inline]

Definition at line 757 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) == NS_STATIC_CAST(const U*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( const nsAutoArrayPtr< T > &  lhs,
const U rhs 
) [inline]

Definition at line 777 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) == NS_STATIC_CAST(const U*, rhs);
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( const U lhs,
const nsAutoArrayPtr< T > &  rhs 
) [inline]

Definition at line 785 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const U*, lhs) == NS_STATIC_CAST(const T*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( const nsAutoArrayPtr< T > &  lhs,
U rhs 
) [inline]

Definition at line 817 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) == NS_CONST_CAST(const U*, rhs);
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( U lhs,
const nsAutoArrayPtr< T > &  rhs 
) [inline]

Definition at line 825 of file nsAutoPtr.h.

  {
    return NS_CONST_CAST(const U*, lhs) == NS_STATIC_CAST(const T*, rhs.get());
  }

Here is the call graph for this function:

template<class T >
NSCAP_BOOL operator== ( const nsAutoArrayPtr< T > &  lhs,
NSCAP_Zero *  rhs 
) [inline]

Definition at line 854 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const void*, lhs.get()) == NS_REINTERPRET_CAST(const void*, rhs);
  }

Here is the call graph for this function:

template<class T >
NSCAP_BOOL operator== ( NSCAP_Zero *  lhs,
const nsAutoArrayPtr< T > &  rhs 
) [inline]

Definition at line 863 of file nsAutoPtr.h.

  {
    return NS_REINTERPRET_CAST(const void*, lhs) == NS_STATIC_CAST(const void*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( const nsRefPtr< T > &  lhs,
const nsRefPtr< U > &  rhs 
) [inline]

Definition at line 1217 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) == NS_STATIC_CAST(const U*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( const nsRefPtr< T > &  lhs,
const U rhs 
) [inline]

Definition at line 1237 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) == NS_STATIC_CAST(const U*, rhs);
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( const U lhs,
const nsRefPtr< T > &  rhs 
) [inline]

Definition at line 1245 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const U*, lhs) == NS_STATIC_CAST(const T*, rhs.get());
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( const nsRefPtr< T > &  lhs,
U rhs 
) [inline]

Definition at line 1277 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const T*, lhs.get()) == NS_CONST_CAST(const U*, rhs);
  }

Here is the call graph for this function:

template<class T , class U >
NSCAP_BOOL operator== ( U lhs,
const nsRefPtr< T > &  rhs 
) [inline]

Definition at line 1285 of file nsAutoPtr.h.

  {
    return NS_CONST_CAST(const U*, lhs) == NS_STATIC_CAST(const T*, rhs.get());
  }

Here is the call graph for this function:

template<class T >
NSCAP_BOOL operator== ( const nsRefPtr< T > &  lhs,
NSCAP_Zero *  rhs 
) [inline]

Definition at line 1314 of file nsAutoPtr.h.

  {
    return NS_STATIC_CAST(const void*, lhs.get()) == NS_REINTERPRET_CAST(const void*, rhs);
  }

Here is the call graph for this function:

template<class T >
NSCAP_BOOL operator== ( NSCAP_Zero *  lhs,
const nsRefPtr< T > &  rhs 
) [inline]

Definition at line 1323 of file nsAutoPtr.h.

  {
    return NS_REINTERPRET_CAST(const void*, lhs) == NS_STATIC_CAST(const void*, rhs.get());
  }

Here is the call graph for this function: