Home
last modified time | relevance | path

Searched refs:weak_ptr (Results 1 – 25 of 62) sorted by relevance

123

/external/protobuf/src/google/protobuf/stubs/
Dshared_ptr.h63 using std::weak_ptr;
77 template <typename T> class weak_ptr;
95 template <typename T> friend class weak_ptr;
107 template <typename U> friend class weak_ptr;
293 class weak_ptr {
294 template <typename U> friend class weak_ptr;
299 weak_ptr() : ptr_(NULL), control_block_(NULL) { }
305 template <typename U> weak_ptr(const shared_ptr<U>& ptr) {
313 template <typename U> weak_ptr(const weak_ptr<U>& ptr) {
318 weak_ptr(const weak_ptr& ptr) {
[all …]
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/
Dweak_ptr_Y.pass.cpp56 std::weak_ptr<T> source (std::shared_ptr<T> p) { return std::weak_ptr<T>(p); } in source()
60 static_assert(( std::is_convertible<std::weak_ptr<A>, std::weak_ptr<B> >::value), ""); in main()
61 static_assert((!std::is_convertible<std::weak_ptr<B>, std::weak_ptr<A> >::value), ""); in main()
62 static_assert((!std::is_convertible<std::weak_ptr<A>, std::weak_ptr<C> >::value), ""); in main()
64 const std::weak_ptr<A> pA(std::shared_ptr<A>(new A)); in main()
69 std::weak_ptr<B> pB(pA); in main()
82 std::weak_ptr<A> pA; in main()
87 std::weak_ptr<B> pB(pA); in main()
102 std::weak_ptr<A> pA = source(ps); in main()
103 std::weak_ptr<B> pB(std::move(pA)); in main()
Dweak_ptr.pass.cpp58 std::weak_ptr<T> source (std::shared_ptr<T> p) { return std::weak_ptr<T>(p); } in source()
62 void sink (std::weak_ptr<T> &&) {} in sink()
69 const std::weak_ptr<A> pA(ps); in main()
74 std::weak_ptr<A> pB(pA); in main()
87 std::weak_ptr<A> pA; in main()
92 std::weak_ptr<A> pB(pA); in main()
108 std::weak_ptr<A> pA = source(ps); in main()
Dshared_ptr_Y.pass.cpp56 static_assert(( std::is_convertible<std::shared_ptr<A>, std::weak_ptr<B> >::value), ""); in main()
57 static_assert((!std::is_convertible<std::weak_ptr<B>, std::shared_ptr<A> >::value), ""); in main()
58 static_assert((!std::is_convertible<std::shared_ptr<A>, std::weak_ptr<C> >::value), ""); in main()
65 std::weak_ptr<B> pB(pA); in main()
83 std::weak_ptr<B> pB(pA); in main()
/external/perfetto/src/base/
Dunix_socket.cc470 WeakPtr<UnixSocket> weak_ptr = weak_ptr_factory_.GetWeakPtr(); in UnixSocket() local
471 task_runner_->AddFileDescriptorWatch(sock_raw_.fd(), [weak_ptr] { in UnixSocket()
472 if (weak_ptr) in UnixSocket()
473 weak_ptr->OnEvent(); in UnixSocket()
517 WeakPtr<UnixSocket> weak_ptr = weak_ptr_factory_.GetWeakPtr(); in DoConnect() local
518 task_runner_->PostTask([weak_ptr] { in DoConnect()
519 if (weak_ptr) in DoConnect()
520 weak_ptr->OnEvent(); in DoConnect()
635 WeakPtr<UnixSocket> weak_ptr = weak_ptr_factory_.GetWeakPtr(); in Shutdown() local
638 task_runner_->PostTask([weak_ptr] { in Shutdown()
[all …]
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/
Downer_less.pass.cpp61 const std::weak_ptr<int> w1(p1); in main()
62 const std::weak_ptr<int> w2(p2); in main()
63 const std::weak_ptr<int> w3(p3); in main()
87 typedef std::owner_less<std::weak_ptr<int> > CS; in main()
90 static_assert((std::is_same<std::weak_ptr<int>, CS::first_argument_type>::value), "" ); in main()
91 static_assert((std::is_same<std::weak_ptr<int>, CS::second_argument_type>::value), "" ); in main()
112 std::weak_ptr<int> wp1; in main()
/external/libchrome/base/memory/
Dweak_ptr.h270 bool operator!=(const WeakPtr<T>& weak_ptr, std::nullptr_t) {
271 return !(weak_ptr == nullptr);
274 bool operator!=(std::nullptr_t, const WeakPtr<T>& weak_ptr) {
275 return weak_ptr != nullptr;
278 bool operator==(const WeakPtr<T>& weak_ptr, std::nullptr_t) {
279 return weak_ptr.get() == nullptr;
282 bool operator==(std::nullptr_t, const WeakPtr<T>& weak_ptr) {
283 return weak_ptr == nullptr;
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.assign/
Dweak_ptr_Y.pass.cpp47 const std::weak_ptr<A> pA(ps); in main()
49 std::weak_ptr<B> pB; in main()
65 std::weak_ptr<A> pA(ps); in main()
67 std::weak_ptr<B> pB; in main()
Dweak_ptr.pass.cpp47 const std::weak_ptr<A> pA(ps); in main()
49 std::weak_ptr<A> pB; in main()
65 std::weak_ptr<A> pA(ps); in main()
67 std::weak_ptr<A> pB; in main()
/external/libchrome/base/timer/
Dmock_timer_unittest.cc68 base::WeakPtr<HasWeakPtr> weak_ptr(has_weak_ptr->AsWeakPtr()); in TEST() local
71 ASSERT_TRUE(weak_ptr.get()); in TEST()
75 ASSERT_TRUE(weak_ptr.get()); in TEST()
77 ASSERT_FALSE(weak_ptr.get()); in TEST()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/
Downer_before_weak_ptr.pass.cpp25 const std::weak_ptr<int> w1(p1); in main()
26 const std::weak_ptr<int> w2(p2); in main()
27 const std::weak_ptr<int> w3(p3); in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.obs/
Downer_before_weak_ptr.pass.cpp25 const std::weak_ptr<int> w1(p1); in main()
26 const std::weak_ptr<int> w2(p2); in main()
27 const std::weak_ptr<int> w3(p3); in main()
Downer_before_shared_ptr.pass.cpp25 const std::weak_ptr<int> w1(p1); in main()
26 const std::weak_ptr<int> w2(p2); in main()
27 const std::weak_ptr<int> w3(p3); in main()
Dlock.pass.cpp33 std::weak_ptr<A> wp; in main()
41 std::weak_ptr<A> wp(sp0); in main()
50 std::weak_ptr<A> wp(sp0); in main()
Dnot_less_than.fail.cpp23 const std::weak_ptr<int> w1(p1); in main()
24 const std::weak_ptr<int> w2(p2); in main()
Dexpired.pass.cpp33 std::weak_ptr<A> wp; in main()
39 std::weak_ptr<A> wp(sp0); in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
Dweak_ptr.pass.cpp48 std::weak_ptr<A> wp; in main()
62 std::weak_ptr<A> wp(sp0); in main()
72 std::weak_ptr<A> wp(sp0); in main()
/external/libcxx/include/
Dmemory399 typedef weak_ptr<T> weak_type; // C++17
413 template<class Y> explicit shared_ptr(const weak_ptr<Y>& r);
444 template<class U> bool owner_before(weak_ptr<U> const& b) const noexcept;
510 class weak_ptr
516 constexpr weak_ptr() noexcept;
517 template<class Y> weak_ptr(shared_ptr<Y> const& r) noexcept;
518 weak_ptr(weak_ptr const& r) noexcept;
519 template<class Y> weak_ptr(weak_ptr<Y> const& r) noexcept;
520 weak_ptr(weak_ptr&& r) noexcept; // C++14
521 template<class Y> weak_ptr(weak_ptr<Y>&& r) noexcept; // C++14
[all …]
/external/v4l2_codec2/cmds/
Dcodec2.cpp76 void onWorkDone(std::weak_ptr<C2Component> component,
78 void onTripped(std::weak_ptr<C2Component> component,
80 void onError(std::weak_ptr<C2Component> component, uint32_t errorCode);
118 virtual void onWorkDone_nb(std::weak_ptr<C2Component> component, in onWorkDone_nb()
124 std::weak_ptr<C2Component> component, in onTripped_nb()
129 virtual void onError_nb(std::weak_ptr<C2Component> component, uint32_t errorCode) override { in onError_nb()
165 void SimplePlayer::onWorkDone(std::weak_ptr<C2Component> component, in onWorkDone()
175 void SimplePlayer::onTripped(std::weak_ptr<C2Component> component, in onTripped()
182 void SimplePlayer::onError(std::weak_ptr<C2Component> component, uint32_t errorCode) { in onError()
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/schedulers/
Drx-runloop.hpp58 std::weak_ptr<detail::run_loop_state> state;
64 explicit run_loop_worker(std::weak_ptr<detail::run_loop_state> ws) in run_loop_worker()
91 std::weak_ptr<detail::run_loop_state> state;
94 explicit run_loop_scheduler(std::weak_ptr<detail::run_loop_state> ws) in run_loop_scheduler()
/external/libcxx/test/std/utilities/tuple/tuple.general/
Dtuple.smartptr.pass.cpp23 std::tuple<std::weak_ptr <char>> wp; in main()
28 std::tuple<std::weak_ptr <char[]>> wp; in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.mod/
Dswap.pass.cpp36 std::weak_ptr<A> w1(p1); in main()
39 std::weak_ptr<A> w2(p2); in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.spec/
Dswap.pass.cpp36 std::weak_ptr<A> w1(p1); in main()
39 std::weak_ptr<A> w2(p2); in main()
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/
Denable_shared_from_this.pass.cpp125 std::weak_ptr<T> weak; in main()
158 std::weak_ptr<T> my_weak = ptr->weak_from_this(); in main()
161 std::weak_ptr<T const> my_const_weak = cptr->weak_from_this(); in main()
/external/v8/src/inspector/
Dv8-stack-trace-impl.h104 std::weak_ptr<AsyncStackTrace> m_asyncParent;
134 std::weak_ptr<AsyncStackTrace> parent() const;
154 std::weak_ptr<AsyncStackTrace> m_asyncParent;

123