Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
nsGetterAddRefs< T > Class Template Reference

#include <nsCOMPtr.h>

List of all members.

Public Member Functions

 nsGetterAddRefs (nsCOMPtr< T > &aSmartPtr)
 operator void ** ()
 operator nsISupports ** ()
 operator T ** ()
T *& operator* ()

Private Attributes

nsCOMPtr< T > & mTargetSmartPtr

Detailed Description

template<class T>
class nsGetterAddRefs< T >

Definition at line 1339 of file nsCOMPtr.h.


Constructor & Destructor Documentation

template<class T >
nsGetterAddRefs< T >::nsGetterAddRefs ( nsCOMPtr< T > &  aSmartPtr) [inline, explicit]

Definition at line 1360 of file nsCOMPtr.h.

          : mTargetSmartPtr(aSmartPtr)
        {
          // nothing else to do
        }

Member Function Documentation

template<class T >
nsGetterAddRefs< T >::operator nsISupports ** ( ) [inline]

Definition at line 1384 of file nsCOMPtr.h.

        {
          return NS_REINTERPRET_CAST(nsISupports**, mTargetSmartPtr.StartAssignment());
        }
template<class T >
nsGetterAddRefs< T >::operator T ** ( ) [inline]

Definition at line 1389 of file nsCOMPtr.h.

        {
          return mTargetSmartPtr.StartAssignment();
        }
template<class T >
nsGetterAddRefs< T >::operator void ** ( ) [inline]

Definition at line 1379 of file nsCOMPtr.h.

        {
          return NS_REINTERPRET_CAST(void**, mTargetSmartPtr.StartAssignment());
        }
template<class T >
T*& nsGetterAddRefs< T >::operator* ( ) [inline]

Definition at line 1395 of file nsCOMPtr.h.

        {
          return *(mTargetSmartPtr.StartAssignment());
        }

Member Data Documentation

template<class T >
nsCOMPtr<T>& nsGetterAddRefs< T >::mTargetSmartPtr [private]

Definition at line 1401 of file nsCOMPtr.h.


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