Home | History | Annotate | Download | only in utils

Lines Matching refs:wp

216 class wp
221 inline wp() : m_ptr(0) { }
223 wp(T* other);
224 wp(const wp<T>& other);
225 wp(const sp<T>& other);
226 template<typename U> wp(U* other);
227 template<typename U> wp(const sp<U>& other);
228 template<typename U> wp(const wp<U>& other);
230 ~wp();
234 wp& operator = (T* other);
235 wp& operator = (const wp<T>& other);
236 wp& operator = (const sp<T>& other);
238 template<typename U> wp& operator = (U* other);
239 template<typename U> wp& operator = (const wp<U>& other);
240 template<typename U> wp& operator = (const sp<U>& other);
267 inline bool operator == (const wp<T>& o) const {
271 inline bool operator == (const wp<U>& o) const {
275 inline bool operator > (const wp<T>& o) const {
279 inline bool operator > (const wp<U>& o) const {
283 inline bool operator < (const wp<T>& o) const {
287 inline bool operator < (const wp<U>& o) const {
290 inline bool operator != (const wp<T>& o) const { return m_refs != o.m_refs; }
291 template<typename U> inline bool operator != (const wp<U>& o) const { return !operator == (o); }
292 inline bool operator <= (const wp<T>& o) const { return !operator > (o); }
293 template<typename U> inline bool operator <= (const wp<U>& o) const { return !operator > (o); }
294 inline bool operator >= (const wp<T>& o) const { return !operator < (o); }
295 template<typename U> inline bool operator >= (const wp<U>& o) const { return !operator < (o); }
299 template<typename Y> friend class wp;
306 TextOutput& operator<<(TextOutput& to, const wp<T>& val);
314 wp<T>::wp(T* other)
321 wp<T>::wp(const wp<T>& other)
328 wp<T>::wp(const sp<T>& other)
337 wp<T>::wp(U* other)
344 wp<T>::wp(const wp<U>& other)
354 wp<T>::wp(const sp<U>& other)
363 wp<T>::~wp()
369 wp<T>& wp<T>::operator = (T* other)
380 wp<T>& wp<T>::operator = (const wp<T>& other)
392 wp<T>& wp<T>::operator = (const sp<T>& other)
404 wp<T>& wp<T>::operator = (U* other)
415 wp<T>& wp<T>::operator = (const wp<U>& other)
427 wp<T>& wp<T>::operator = (const sp<U>& other)
439 void wp<T>::set_object_and_refs(T* other, weakref_type* refs)
448 sp<T> wp<T>::promote() const
458 void wp<T>::clear()
467 inline TextOutput& operator<<(TextOutput& to, const wp<T>& val)
479 // for sp<TYPE> or wp<TYPE> when TYPE is a descendant of RefBase:
503 void move_references(wp<TYPE>* d, wp<TYPE> const* s, size_t n) {
506 wp<TYPE>* d;
507 wp<TYPE> const* s;
509 // The id are known to be the wp<>'s this pointer
513 Renamer(wp<TYPE>* d, wp<TYPE> const* s) : s(s), d(d) { }
516 memmove(d, s, n*sizeof(wp<TYPE>));
521 // specialization for moving sp<> and wp<> types.
523 // sp<> and wp<> need to be handled specially, because they do not
539 void move_forward_type(wp<TYPE>* d, wp<TYPE> const* s, size_t n) {
544 void move_backward_type(wp<TYPE>* d, wp<TYPE> const* s, size_t n) {