• Home
  • Raw
  • Download

Lines Matching refs:scoped_refptr

19 class scoped_refptr;  variable
29 scoped_refptr<T> AdoptRef(T* t);
62 scoped_refptr<T> AdoptRef(T* obj) { in AdoptRef()
70 return scoped_refptr<T>(obj, subtle::kAdoptRefTag); in AdoptRef()
76 scoped_refptr<T> AdoptRefIfNeeded(T* obj, StartRefCountFromZeroTag) { in AdoptRefIfNeeded()
77 return scoped_refptr<T>(obj); in AdoptRefIfNeeded()
81 scoped_refptr<T> AdoptRefIfNeeded(T* obj, StartRefCountFromOneTag) { in AdoptRefIfNeeded()
90 scoped_refptr<T> MakeRefCounted(Args&&... args) { in MakeRefCounted()
98 scoped_refptr<T> WrapRefCounted(T* t) { in WrapRefCounted()
99 return scoped_refptr<T>(t); in WrapRefCounted()
167 class scoped_refptr {
171 constexpr scoped_refptr() = default;
174 constexpr scoped_refptr(T* p) : ptr_(p) { in scoped_refptr() function
181 scoped_refptr(const scoped_refptr& r) : scoped_refptr(r.ptr_) {} in scoped_refptr() function
187 scoped_refptr(const scoped_refptr<U>& r) : scoped_refptr(r.ptr_) {} in scoped_refptr() function
191 scoped_refptr(scoped_refptr&& r) noexcept : ptr_(r.ptr_) { r.ptr_ = nullptr; } in scoped_refptr() function
197 scoped_refptr(scoped_refptr<U>&& r) noexcept : ptr_(r.ptr_) { in scoped_refptr() function
201 ~scoped_refptr() { in ~scoped_refptr()
223 scoped_refptr& operator=(T* p) { return *this = scoped_refptr(p); }
226 scoped_refptr& operator=(scoped_refptr r) noexcept {
233 void reset() { scoped_refptr().swap(*this); } in reset()
235 void swap(scoped_refptr& r) noexcept { std::swap(ptr_, r.ptr_); } in swap()
240 bool operator==(const scoped_refptr<U>& rhs) const {
245 bool operator!=(const scoped_refptr<U>& rhs) const {
250 bool operator<(const scoped_refptr<U>& rhs) const {
259 friend scoped_refptr<U> base::AdoptRef(U*);
261 scoped_refptr(T* p, base::subtle::AdoptRefTag) : ptr_(p) {} in scoped_refptr() function
265 friend class scoped_refptr; variable
277 void scoped_refptr<T>::AddRef(T* ptr) { in AddRef()
283 void scoped_refptr<T>::Release(T* ptr) { in Release()
288 bool operator==(const scoped_refptr<T>& lhs, const U* rhs) {
293 bool operator==(const T* lhs, const scoped_refptr<U>& rhs) {
298 bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t null) {
303 bool operator==(std::nullptr_t null, const scoped_refptr<T>& rhs) {
308 bool operator!=(const scoped_refptr<T>& lhs, const U* rhs) {
313 bool operator!=(const T* lhs, const scoped_refptr<U>& rhs) {
318 bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t null) {
323 bool operator!=(std::nullptr_t null, const scoped_refptr<T>& rhs) {
328 std::ostream& operator<<(std::ostream& out, const scoped_refptr<T>& p) {
333 void swap(scoped_refptr<T>& lhs, scoped_refptr<T>& rhs) noexcept { in swap()