Searched refs:reffed_ptr (Results 1 – 2 of 2) sorted by relevance
342 template <class T> class reffed_ptr {344 reffed_ptr() : ptr_(NULL) {} in reffed_ptr() function348 reffed_ptr(U* val, const void* ref_donor = NULL)359 reffed_ptr(const reffed_ptr<U>& other) in reffed_ptr() function364 ~reffed_ptr() { if (ptr_) ptr_->Unref(this); } in ~reffed_ptr()367 reffed_ptr& operator=(const reffed_ptr<U>& other) {372 reffed_ptr& operator=(const reffed_ptr& other) {380 void swap(reffed_ptr& other) { in swap()405 reffed_ptr(ptr, ref_donor).swap(*this);409 reffed_ptr<U> down_cast() { in down_cast()[all …]
1334 template <class T> class reffed_ptr;1550 template <class T> class upb::reffed_ptr {1552 reffed_ptr() : ptr_(NULL) {}1556 reffed_ptr(U* val, const void* ref_donor = NULL)1567 reffed_ptr(const reffed_ptr<U>& other)1572 reffed_ptr(const reffed_ptr& other)1577 ~reffed_ptr() { if (ptr_) ptr_->Unref(this); }1580 reffed_ptr& operator=(const reffed_ptr<U>& other) {1585 reffed_ptr& operator=(const reffed_ptr& other) {1593 void swap(reffed_ptr& other) {[all …]