Lines Matching refs:other
26 AutoPtr(T *other);
28 AutoPtr(const AutoPtr<T> &other);
30 AutoPtr(AutoPtr<T> &&other);
34 AutoPtr &operator=(T *other);
36 AutoPtr &operator=(const AutoPtr<T> &other);
38 AutoPtr &operator=(AutoPtr<T> &&other);
40 void MoveTo(T **other);
52 inline bool operator==(T *other) const;
54 inline bool operator==(const AutoPtr<T> &other) const;
56 inline bool operator!=(T *other) const;
58 inline bool operator!=(const AutoPtr<T> &other) const;
60 inline bool operator>(T *other) const;
62 inline bool operator>(const AutoPtr<T> &other) const;
64 inline bool operator<(T *other) const;
66 inline bool operator<(const AutoPtr<T> &other) const;
68 inline bool operator<=(T *other) const;
70 inline bool operator<=(const AutoPtr<T> &other) const;
72 inline bool operator>=(T *other) const;
74 inline bool operator>=(const AutoPtr<T> &other) const;
81 AutoPtr<T>::AutoPtr(T *other) : mPtr(other)
89 AutoPtr<T>::AutoPtr(const AutoPtr<T> &other) : mPtr(other.mPtr)
97 AutoPtr<T>::AutoPtr(AutoPtr<T> &&other) : mPtr(other.mPtr)
99 other.mPtr = nullptr;
111 AutoPtr<T> &AutoPtr<T>::operator=(T *other)
113 if (mPtr == other) {
116 if (other != nullptr) {
117 other->AddRef();
122 mPtr = other;
127 AutoPtr<T> &AutoPtr<T>::operator=(const AutoPtr<T> &other)
129 if (mPtr == other.mPtr) {
132 if (other.mPtr != nullptr) {
133 other.mPtr->AddRef();
138 mPtr = other.mPtr;
143 AutoPtr<T> &AutoPtr<T>::operator=(AutoPtr<T> &&other)
148 mPtr = other.mPtr;
149 other.mPtr = nullptr;
154 void AutoPtr<T>::MoveTo(T **other)
156 if (other != nullptr) {
157 *other = mPtr;
193 bool AutoPtr<T>::operator==(T *other) const
195 return mPtr == other;
199 bool AutoPtr<T>::operator==(const AutoPtr<T> &other) const
201 return mPtr == other.mPtr;
205 bool AutoPtr<T>::operator!=(T *other) const
207 return mPtr != other;
211 bool AutoPtr<T>::operator!=(const AutoPtr<T> &other) const
213 return mPtr != other.mPtr;
217 bool AutoPtr<T>::operator>(T *other) const
219 return mPtr > other;
223 bool AutoPtr<T>::operator>(const AutoPtr<T> &other) const
225 return mPtr > other.mPtr;
229 bool AutoPtr<T>::operator<(T *other) const
231 return mPtr < other;
235 bool AutoPtr<T>::operator<(const AutoPtr<T> &other) const
237 return mPtr < other.mPtr;
241 bool AutoPtr<T>::operator<=(T *other) const
243 return mPtr <= other;
247 bool AutoPtr<T>::operator<=(const AutoPtr<T> &other) const
249 return mPtr <= other.mPtr;
253 bool AutoPtr<T>::operator>=(T *other) const
255 return mPtr >= other;
259 bool AutoPtr<T>::operator>=(const AutoPtr<T> &other) const
261 return mPtr >= other.mPtr;