Lines Matching refs:wp
197 class wp
202 inline wp() : m_ptr(0) { }
204 wp(T* other);
205 wp(const wp<T>& other);
206 wp(const sp<T>& other);
207 template<typename U> wp(U* other);
208 template<typename U> wp(const sp<U>& other);
209 template<typename U> wp(const wp<U>& other);
211 ~wp();
215 wp& operator = (T* other);
216 wp& operator = (const wp<T>& other);
217 wp& operator = (const sp<T>& other);
219 template<typename U> wp& operator = (U* other);
220 template<typename U> wp& operator = (const wp<U>& other);
221 template<typename U> wp& operator = (const sp<U>& other);
248 inline bool operator == (const wp<T>& o) const {
252 inline bool operator == (const wp<U>& o) const {
256 inline bool operator > (const wp<T>& o) const {
260 inline bool operator > (const wp<U>& o) const {
264 inline bool operator < (const wp<T>& o) const {
268 inline bool operator < (const wp<U>& o) const {
271 inline bool operator != (const wp<T>& o) const { return m_refs != o.m_refs; }
272 template<typename U> inline bool operator != (const wp<U>& o) const { return !operator == (o); }
273 inline bool operator <= (const wp<T>& o) const { return !operator > (o); }
274 template<typename U> inline bool operator <= (const wp<U>& o) const { return !operator > (o); }
275 inline bool operator >= (const wp<T>& o) const { return !operator < (o); }
276 template<typename U> inline bool operator >= (const wp<U>& o) const { return !operator < (o); }
280 template<typename Y> friend class wp;
287 TextOutput& operator<<(TextOutput& to, const wp<T>& val);
295 wp<T>::wp(T* other)
302 wp<T>::wp(const wp<T>& other)
309 wp<T>::wp(const sp<T>& other)
318 wp<T>::wp(U* other)
325 wp<T>::wp(const wp<U>& other)
335 wp<T>::wp(const sp<U>& other)
344 wp<T>::~wp()
350 wp<T>& wp<T>::operator = (T* other)
361 wp<T>& wp<T>::operator = (const wp<T>& other)
373 wp<T>& wp<T>::operator = (const sp<T>& other)
385 wp<T>& wp<T>::operator = (U* other)
396 wp<T>& wp<T>::operator = (const wp<U>& other)
408 wp<T>& wp<T>::operator = (const sp<U>& other)
420 void wp<T>::set_object_and_refs(T* other, weakref_type* refs)
429 sp<T> wp<T>::promote() const
439 void wp<T>::clear()
448 inline TextOutput& operator<<(TextOutput& to, const wp<T>& val)
474 virtual size_t getReferenceTypeSize() const { return sizeof( wp<TYPE> ); }
476 wp<TYPE> const* sptr(reinterpret_cast<wp<TYPE> const*>(p));
489 void move_references(wp<TYPE>* d, wp<TYPE> const* s, size_t n) {
490 memmove(d, s, n*sizeof(wp<TYPE>));
496 // specialization for moving sp<> and wp<> types.
498 // sp<> and wp<> need to be handled specially, because they do not
514 void move_forward_type(wp<TYPE>* d, wp<TYPE> const* s, size_t n) {
519 void move_backward_type(wp<TYPE>* d, wp<TYPE> const* s, size_t n) {