Back to index

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

#include <nsAutoPtr.h>

List of all members.

Public Member Functions

 nsRefPtrGetterAddRefs (nsRefPtr< T > &aSmartPtr)
 operator void ** ()
 operator T ** ()
T *& operator* ()

Private Attributes

nsRefPtr< T > & mTargetSmartPtr

Detailed Description

template<class T>
class nsRefPtrGetterAddRefs< T >

Definition at line 1151 of file nsAutoPtr.h.


Constructor & Destructor Documentation

template<class T >
nsRefPtrGetterAddRefs< T >::nsRefPtrGetterAddRefs ( nsRefPtr< T > &  aSmartPtr) [inline, explicit]

Definition at line 1172 of file nsAutoPtr.h.

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

Member Function Documentation

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

Definition at line 1183 of file nsAutoPtr.h.

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

Definition at line 1178 of file nsAutoPtr.h.

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

Definition at line 1189 of file nsAutoPtr.h.

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

Member Data Documentation

template<class T >
nsRefPtr<T>& nsRefPtrGetterAddRefs< T >::mTargetSmartPtr [private]

Definition at line 1195 of file nsAutoPtr.h.


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