Back to index

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

#include <nsAutoPtr.h>

List of all members.

Public Member Functions

 nsAutoPtrGetterTransfers (nsAutoPtr< T > &aSmartPtr)
 operator void ** ()
 operator T ** ()
T *& operator* ()

Private Attributes

nsAutoPtr< T > & mTargetSmartPtr

Detailed Description

template<class T>
class nsAutoPtrGetterTransfers< T >

Definition at line 271 of file nsAutoPtr.h.


Constructor & Destructor Documentation

template<class T >
nsAutoPtrGetterTransfers< T >::nsAutoPtrGetterTransfers ( nsAutoPtr< T > &  aSmartPtr) [inline, explicit]

Definition at line 292 of file nsAutoPtr.h.

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

Member Function Documentation

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

Definition at line 303 of file nsAutoPtr.h.

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

Definition at line 298 of file nsAutoPtr.h.

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

Definition at line 309 of file nsAutoPtr.h.

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

Member Data Documentation

template<class T >
nsAutoPtr<T>& nsAutoPtrGetterTransfers< T >::mTargetSmartPtr [private]

Definition at line 315 of file nsAutoPtr.h.


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