Classes | Public Member Functions | Protected Types | Protected Member Functions

nsAutoRefBase< T > Class Template Reference

template <class t>=""> class nsAutoRefBase More...

#include <nsAutoRef.h>

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

List of all members.

Classes

class  LocalSimpleRef
class  RawRefOnly

Public Member Functions

RawRef operator-> () const
RawRef disown ()

Protected Types

typedef nsAutoRefBase< T > ThisClass
typedef nsSimpleRef< T > SimpleRef
typedef SimpleRef::RawRef RawRef

Protected Member Functions

 nsAutoRefBase ()
 nsAutoRefBase (RawRefOnly aRefToRelease)
 nsAutoRefBase (ThisClass &aRefToSteal)
 nsAutoRefBase (const nsReturningRef< T > &aReturning)
 ~nsAutoRefBase ()
void steal (ThisClass &aOtherRef)
void own (RawRefOnly aRefToRelease)
void SafeRelease ()

Detailed Description

template<class T>
class nsAutoRefBase< T >

template <class t>=""> class nsAutoRefBase

Internal base class for |nsAutoRef<T>| and |nsReturnRef<T>|. Adds release on destruction to a |nsSimpleRef<T>|.


Member Typedef Documentation

template<class T >
typedef SimpleRef::RawRef nsAutoRefBase< T >::RawRef [protected]

Reimplemented from nsSimpleRef< T >.

Reimplemented in nsCountedRef< T >.

template<class T >
typedef nsSimpleRef<T> nsAutoRefBase< T >::SimpleRef [protected]

Reimplemented in nsAutoRef< T >, and nsCountedRef< T >.

template<class T >
typedef nsAutoRefBase<T> nsAutoRefBase< T >::ThisClass [protected]

Reimplemented in nsAutoRef< T >, and nsCountedRef< T >.


Constructor & Destructor Documentation

template<class T >
nsAutoRefBase< T >::nsAutoRefBase (  )  [inline, protected]
template<class T >
nsAutoRefBase< T >::nsAutoRefBase ( RawRefOnly  aRefToRelease  )  [inline, explicit, protected]
template<class T >
nsAutoRefBase< T >::nsAutoRefBase ( ThisClass aRefToSteal  )  [inline, explicit, protected]
template<class T >
nsAutoRefBase< T >::nsAutoRefBase ( const nsReturningRef< T > &  aReturning  )  [inline, explicit, protected]
template<class T >
nsAutoRefBase< T >::~nsAutoRefBase (  )  [inline, protected]

Member Function Documentation

template<class T >
RawRef nsAutoRefBase< T >::disown (  )  [inline]
template<class T >
RawRef nsAutoRefBase< T >::operator-> (  )  const [inline]
template<class T >
void nsAutoRefBase< T >::own ( RawRefOnly  aRefToRelease  )  [inline, protected]

Reimplemented in nsAutoRef< T >.

template<class T >
void nsAutoRefBase< T >::SafeRelease (  )  [inline, protected]
template<class T >
void nsAutoRefBase< T >::steal ( ThisClass aOtherRef  )  [inline, protected]

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