Lines Matching defs:wp

198 class wp
203 inline wp() : m_ptr(0) { }
205 wp(T* other);
206 wp(const wp<T>& other);
207 wp(const sp<T>& other);
208 template<typename U> wp(U* other);
209 template<typename U> wp(const sp<U>& other);
210 template<typename U> wp(const wp<U>& other);
212 ~wp();
216 wp& operator = (T* other);
217 wp& operator = (const wp<T>& other);
218 wp& operator = (const sp<T>& other);
220 template<typename U> wp& operator = (U* other);
221 template<typename U> wp& operator = (const wp<U>& other);
222 template<typename U> wp& operator = (const sp<U>& other);
249 inline bool operator == (const wp<T>& o) const {
253 inline bool operator == (const wp<U>& o) const {
257 inline bool operator > (const wp<T>& o) const {
261 inline bool operator > (const wp<U>& o) const {
265 inline bool operator < (const wp<T>& o) const {
269 inline bool operator < (const wp<U>& o) const {
272 inline bool operator != (const wp<T>& o) const { return m_refs != o.m_refs; }
273 template<typename U> inline bool operator != (const wp<U>& o) const { return !operator == (o); }
274 inline bool operator <= (const wp<T>& o) const { return !operator > (o); }
275 template<typename U> inline bool operator <= (const wp<U>& o) const { return !operator > (o); }
276 inline bool operator >= (const wp<T>& o) const { return !operator < (o); }
277 template<typename U> inline bool operator >= (const wp<U>& o) const { return !operator < (o); }
281 template<typename Y> friend class wp;
288 TextOutput& operator<<(TextOutput& to, const wp<T>& val);
296 wp<T>::wp(T* other)
303 wp<T>::wp(const wp<T>& other)
310 wp<T>::wp(const sp<T>& other)
319 wp<T>::wp(U* other)
326 wp<T>::wp(const wp<U>& other)
336 wp<T>::wp(const sp<U>& other)
345 wp<T>::~wp()
351 wp<T>& wp<T>::operator = (T* other)
362 wp<T>& wp<T>::operator = (const wp<T>& other)
374 wp<T>& wp<T>::operator = (const sp<T>& other)
386 wp<T>& wp<T>::operator = (U* other)
397 wp<T>& wp<T>::operator = (const wp<U>& other)
409 wp<T>& wp<T>::operator = (const sp<U>& other)
421 void wp<T>::set_object_and_refs(T* other, weakref_type* refs)
430 sp<T> wp<T>::promote() const
440 void wp<T>::clear()
449 inline TextOutput& operator<<(TextOutput& to, const wp<T>& val)
475 virtual size_t getReferenceTypeSize() const { return sizeof( wp<TYPE> ); }
477 wp<TYPE> const* sptr(reinterpret_cast<wp<TYPE> const*>(p));
490 void move_references(wp<TYPE>* d, wp<TYPE> const* s, size_t n) {
491 memmove(d, s, n*sizeof(wp<TYPE>));
497 // specialization for moving sp<> and wp<> types.
499 // sp<> and wp<> need to be handled specially, because they do not
515 void move_forward_type(wp<TYPE>* d, wp<TYPE> const* s, size_t n) {
520 void move_backward_type(wp<TYPE>* d, wp<TYPE> const* s, size_t n) {