Lines Matching defs:nsRefPtr

897 class nsRefPtr
931 ~nsRefPtr()
939 nsRefPtr()
945 nsRefPtr( const nsRefPtr<T>& aSmartPtr )
953 nsRefPtr( T* aRawPtr )
961 nsRefPtr( const already_AddRefed<T>& aSmartPtr )
969 nsRefPtr<T>&
970 operator=( const nsRefPtr<T>& rhs )
977 nsRefPtr<T>&
985 nsRefPtr<T>&
996 swap( nsRefPtr<T>& rhs )
1028 ...makes an |nsRefPtr| act like its underlying raw pointer type (except against |AddRef()|, |Release()|,
1030 that makes an |nsRefPtr| substitutable for a raw pointer.
1041 NS_PRECONDITION(mRawPtr != 0, "You can't dereference a NULL nsRefPtr with operator->().");
1048 nsRefPtr<T>*
1053 return NS_CONST_CAST(nsRefPtr<T>*, this);
1058 nsRefPtr<T>*
1066 const nsRefPtr<T>*
1080 NS_PRECONDITION(mRawPtr != 0, "You can't dereference a NULL nsRefPtr with operator*().");
1102 nsRefPtr<T>*
1103 address_of( const nsRefPtr<T>& aPtr )
1112 nsRefPtr<T>*
1113 address_of( nsRefPtr<T>& aPtr )
1120 const nsRefPtr<T>*
1121 address_of( const nsRefPtr<T>& aPtr )
1136 nsRefPtr<IFoo> fooP;
1141 When initialized with a |nsRefPtr|, as in the example above, it returns
1145 This type should be a nested class inside |nsRefPtr<T>|.
1150 nsRefPtrGetterAddRefs( nsRefPtr<T>& aSmartPtr )
1173 nsRefPtr<T>& mTargetSmartPtr;
1179 getter_AddRefs( nsRefPtr<T>& aSmartPtr )
1181 Used around a |nsRefPtr| when
1190 // Comparing two |nsRefPtr|s
1195 operator==( const nsRefPtr<T>& lhs, const nsRefPtr<U>& rhs )
1204 operator!=( const nsRefPtr<T>& lhs, const nsRefPtr<U>& rhs )
1210 // Comparing an |nsRefPtr| to a raw pointer
1215 operator==( const nsRefPtr<T>& lhs, const U* rhs )
1223 operator==( const U* lhs, const nsRefPtr<T>& rhs )
1231 operator!=( const nsRefPtr<T>& lhs, const U* rhs )
1239 operator!=( const U* lhs, const nsRefPtr<T>& rhs )
1255 operator==( const nsRefPtr<T>& lhs, U* rhs )
1263 operator==( U* lhs, const nsRefPtr<T>& rhs )
1271 operator!=( const nsRefPtr<T>& lhs, U* rhs )
1279 operator!=( U* lhs, const nsRefPtr<T>& rhs )
1287 // Comparing an |nsRefPtr| to |0|
1292 operator==( const nsRefPtr<T>& lhs, NSCAP_Zero* rhs )
1301 operator==( NSCAP_Zero* lhs, const nsRefPtr<T>& rhs )
1310 operator!=( const nsRefPtr<T>& lhs, NSCAP_Zero* rhs )
1319 operator!=( NSCAP_Zero* lhs, const nsRefPtr<T>& rhs )
1334 operator==( const nsRefPtr<T>& lhs, int rhs )
1343 operator==( int lhs, const nsRefPtr<T>& rhs )