Lines Matching defs:nsAutoPtr

56 class nsAutoPtr
80 ~nsAutoPtr()
87 nsAutoPtr()
93 nsAutoPtr( T* aRawPtr )
99 nsAutoPtr( nsAutoPtr<T>& aSmartPtr )
108 nsAutoPtr<T>&
116 nsAutoPtr<T>& operator=( nsAutoPtr<T>& rhs )
138 ...makes an |nsAutoPtr| act like its underlying raw pointer
140 is expected. It is this operator that makes an |nsAutoPtr|
161 NS_PRECONDITION(mRawPtr != 0, "You can't dereference a NULL nsAutoPtr with operator->().");
168 nsAutoPtr<T>*
173 return NS_CONST_CAST(nsAutoPtr<T>*, this);
178 nsAutoPtr<T>*
186 const nsAutoPtr<T>*
200 NS_PRECONDITION(mRawPtr != 0, "You can't dereference a NULL nsAutoPtr with operator*().");
222 nsAutoPtr<T>*
223 address_of( const nsAutoPtr<T>& aPtr )
232 nsAutoPtr<T>*
233 address_of( nsAutoPtr<T>& aPtr )
240 const nsAutoPtr<T>*
241 address_of( const nsAutoPtr<T>& aPtr )
256 nsAutoPtr<IFoo> fooP;
261 When initialized with a |nsAutoPtr|, as in the example above, it returns
265 This type should be a nested class inside |nsAutoPtr<T>|.
270 nsAutoPtrGetterTransfers( nsAutoPtr<T>& aSmartPtr )
293 nsAutoPtr<T>& mTargetSmartPtr;
299 getter_Transfers( nsAutoPtr<T>& aSmartPtr )
301 Used around a |nsAutoPtr| when
310 // Comparing two |nsAutoPtr|s
315 operator==( const nsAutoPtr<T>& lhs, const nsAutoPtr<U>& rhs )
324 operator!=( const nsAutoPtr<T>& lhs, const nsAutoPtr<U>& rhs )
330 // Comparing an |nsAutoPtr| to a raw pointer
335 operator==( const nsAutoPtr<T>& lhs, const U* rhs )
343 operator==( const U* lhs, const nsAutoPtr<T>& rhs )
351 operator!=( const nsAutoPtr<T>& lhs, const U* rhs )
359 operator!=( const U* lhs, const nsAutoPtr<T>& rhs )
375 operator==( const nsAutoPtr<T>& lhs, U* rhs )
383 operator==( U* lhs, const nsAutoPtr<T>& rhs )
391 operator!=( const nsAutoPtr<T>& lhs, U* rhs )
399 operator!=( U* lhs, const nsAutoPtr<T>& rhs )
407 // Comparing an |nsAutoPtr| to |0|
412 operator==( const nsAutoPtr<T>& lhs, NSCAP_Zero* rhs )
421 operator==( NSCAP_Zero* lhs, const nsAutoPtr<T>& rhs )
430 operator!=( const nsAutoPtr<T>& lhs, NSCAP_Zero* rhs )
439 operator!=( NSCAP_Zero* lhs, const nsAutoPtr<T>& rhs )
454 operator==( const nsAutoPtr<T>& lhs, int rhs )
463 operator==( int lhs, const nsAutoPtr<T>& rhs )