Home
last modified time | relevance | path

Searched refs:shared_ptr (Results 1 – 25 of 774) sorted by relevance

12345678910>>...31

/external/grpc-grpc/include/grpcpp/security/
Dcredentials.h53 friend std::shared_ptr<ChannelCredentials> CompositeChannelCredentials(
54 const std::shared_ptr<ChannelCredentials>& channel_creds,
55 const std::shared_ptr<CallCredentials>& call_creds);
60 friend std::shared_ptr<Channel> CreateCustomChannel(
62 const std::shared_ptr<ChannelCredentials>& creds,
65 virtual std::shared_ptr<Channel> CreateChannel(
82 friend std::shared_ptr<ChannelCredentials> CompositeChannelCredentials(
83 const std::shared_ptr<ChannelCredentials>& channel_creds,
84 const std::shared_ptr<CallCredentials>& call_creds);
86 friend std::shared_ptr<CallCredentials> CompositeCallCredentials(
[all …]
/external/swiftshader/third_party/stlport-cpp11-extension/
Dmemory21 // - std::shared_ptr (C++11)
24 // Cloned from master branch vendor/google/native/cmds/sysproxy/shared_ptr.h
33 class shared_ptr {
35 shared_ptr();
36 explicit shared_ptr(T *value);
37 shared_ptr(const shared_ptr &rhs);
38 shared_ptr &operator=(const shared_ptr &rhs);
40 shared_ptr(const shared_ptr<U> &rhs);
42 shared_ptr &operator=(const shared_ptr<U> &rhs);
43 ~shared_ptr();
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dshared_ptr.h61 using std::shared_ptr;
76 template <typename T> class shared_ptr;
94 template <typename T> friend class shared_ptr;
106 class shared_ptr {
111 shared_ptr() : ptr_(NULL), control_block_(NULL) {}
113 explicit shared_ptr(T* ptr)
124 shared_ptr(const shared_ptr<U>& ptr)
130 shared_ptr(const shared_ptr<T>& ptr)
139 shared_ptr<T>& operator=(const shared_ptr<U>& ptr) {
141 shared_ptr<T> me(ptr); // will hold our previous state to be destroyed.
[all …]
/external/tensorflow/tensorflow/core/framework/
Dmodel.h44 SharedState(int64 value, std::shared_ptr<mutex> mu, in SharedState()
45 std::shared_ptr<condition_variable> cond_var) in SharedState()
52 std::shared_ptr<mutex> mu;
53 std::shared_ptr<condition_variable> cond_var;
59 Parameter(const string& name, std::shared_ptr<SharedState> state, int64 min, in Parameter()
81 std::shared_ptr<SharedState> state;
84 std::shared_ptr<Parameter> MakeParameter(const string& name,
85 std::shared_ptr<SharedState> state,
113 std::shared_ptr<Node> output;
116 using Factory = std::function<std::shared_ptr<Node>(Args)>;
[all …]
Dmodel.cc24 std::shared_ptr<Parameter> MakeParameter(const string& name, in MakeParameter()
25 std::shared_ptr<SharedState> state, in MakeParameter()
70 std::shared_ptr<Node> Clone(std::shared_ptr<Node> output) const override in Clone()
108 std::vector<std::shared_ptr<Parameter>> parameters) in AsyncInterleaveMany()
118 std::shared_ptr<Node> Clone(std::shared_ptr<Node> output) const override in Clone()
120 std::vector<std::shared_ptr<Parameter>> parameters; in Clone()
171 std::shared_ptr<Node> Clone(std::shared_ptr<Node> output) const override in Clone()
202 std::vector<std::shared_ptr<Parameter>> parameters) in AsyncKnownRatio()
212 std::shared_ptr<Node> Clone(std::shared_ptr<Node> output) const override in Clone()
214 std::vector<std::shared_ptr<Parameter>> parameters; in Clone()
[all …]
Dmodel_test.cc33 std::shared_ptr<Node> async_interleave_many = in TEST_P()
40 std::shared_ptr<Node> meta_source = in TEST_P()
46 std::shared_ptr<Node> source1 = in TEST_P()
52 std::shared_ptr<Node> source2 = in TEST_P()
98 std::shared_ptr<Node> async_known_many = model::MakeAsyncKnownRatioNode( in TEST_P()
104 std::shared_ptr<Node> source1 = in TEST_P()
107 std::shared_ptr<Node> source2 = in TEST_P()
166 std::shared_ptr<Node> interleave_many = in TEST()
168 std::shared_ptr<Node> meta_source = in TEST()
171 std::shared_ptr<Node> source1 = in TEST()
[all …]
/external/clang/test/Analysis/
DNewDelete-checker-test.cpp272 class shared_ptr { class
277 shared_ptr() : p(0), control(0) {} in shared_ptr() function in reference_count::shared_ptr
278 explicit shared_ptr(T *p) : p(p), control(new control_block) { in shared_ptr() function in reference_count::shared_ptr
281 shared_ptr(shared_ptr &other) : p(other.p), control(other.control) { in shared_ptr() function in reference_count::shared_ptr
285 ~shared_ptr() { in ~shared_ptr()
296 void swap(shared_ptr &other) { in swap()
308 shared_ptr<int> a(new int); in testSingle()
313 shared_ptr<int> a(new int); in testDouble()
314 shared_ptr<int> b = a; in testDouble()
319 shared_ptr<int> a(new int); in testInvalidated()
[all …]
/external/v4l2_codec2/include/
DC2VDAComponent.h45 IntfImpl(C2String name, const std::shared_ptr<C2ReflectorHelper>& helper);
68 std::shared_ptr<C2StreamBufferTypeSetting::input> mInputFormat;
70 std::shared_ptr<C2StreamBufferTypeSetting::output> mOutputFormat;
72 std::shared_ptr<C2PortMediaTypeSetting::input> mInputMediaType;
74 std::shared_ptr<C2PortMediaTypeSetting::output> mOutputMediaType;
79 std::shared_ptr<C2StreamProfileLevelInfo::input> mProfileLevel;
81 std::shared_ptr<C2StreamPictureSizeInfo::output> mSize;
83 std::shared_ptr<C2StreamMaxBufferSizeInfo::input> mMaxInputSize;
85 std::shared_ptr<C2PortAllocatorsTuning::input> mInputAllocatorIds;
87 std::shared_ptr<C2PortAllocatorsTuning::output> mOutputAllocatorIds;
[all …]
/external/libbrillo/brillo/http/
Dhttp_utils.h63 std::shared_ptr<Transport> transport,
72 std::shared_ptr<Transport> transport,
86 std::shared_ptr<Transport> transport,
102 std::shared_ptr<Transport> transport,
113 std::shared_ptr<Transport> transport,
123 std::shared_ptr<Transport> transport,
132 std::shared_ptr<Transport> transport,
141 std::shared_ptr<Transport> transport,
149 std::shared_ptr<Transport> transport,
162 std::shared_ptr<Transport> transport,
[all …]
Dhttp_utils.cc26 std::shared_ptr<Transport> transport, in GetAndBlock()
34 std::shared_ptr<Transport> transport, in Get()
46 std::shared_ptr<Transport> transport, in HeadAndBlock()
53 std::shared_ptr<Transport> transport, in Head()
68 std::shared_ptr<Transport> transport, in PostTextAndBlock()
78 std::shared_ptr<Transport> transport, in PostText()
98 std::shared_ptr<Transport> transport, in SendRequestAndBlock()
116 std::shared_ptr<Transport> transport, in SendRequestWithNoDataAndBlock()
127 std::shared_ptr<Transport> transport, in SendRequest()
153 std::shared_ptr<Transport> transport, in SendRequest()
[all …]
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/
Denable_shared_from_this.pass.cpp59 std::shared_ptr<T const> t1(new T); in main()
60 std::shared_ptr<T const> t2(std::make_shared<T>()); in main()
64 std::shared_ptr<Bar> t1(new Bar(42)); in main()
66 std::shared_ptr<Bar> t2(std::make_shared<Bar>(x)); in main()
70 std::shared_ptr<Y> p(new Z); in main()
71 std::shared_ptr<T> q = p->shared_from_this(); in main()
76 std::shared_ptr<Y> p = std::make_shared<Z>(); in main()
77 std::shared_ptr<T> q = p->shared_from_this(); in main()
82 typedef std::shared_ptr<PrivateBase> APtr; in main()
94 std::shared_ptr<T> s(ptr); in main()
[all …]
/external/grpc-grpc/test/cpp/util/
Dcreate_test_channel.cc35 std::shared_ptr<ChannelCredentials> GetChannelCredentials( in GetChannelCredentials()
39 std::shared_ptr<ServerCredentials> GetServerCredentials() override { in GetServerCredentials()
69 std::shared_ptr<Channel> CreateTestChannel( in CreateTestChannel()
72 const std::shared_ptr<CallCredentials>& creds, in CreateTestChannel()
75 std::shared_ptr<ChannelCredentials> channel_creds; in CreateTestChannel()
108 std::shared_ptr<Channel> CreateTestChannel( in CreateTestChannel()
111 const std::shared_ptr<CallCredentials>& creds, in CreateTestChannel()
122 std::shared_ptr<Channel> CreateTestChannel( in CreateTestChannel()
125 const std::shared_ptr<CallCredentials>& creds) { in CreateTestChannel()
130 std::shared_ptr<Channel> CreateTestChannel( in CreateTestChannel()
[all …]
Dcreate_test_channel.h35 std::shared_ptr<Channel> CreateTestChannel(
38 std::shared_ptr<Channel> CreateTestChannel(
42 std::shared_ptr<Channel> CreateTestChannel(
45 const std::shared_ptr<CallCredentials>& creds);
47 std::shared_ptr<Channel> CreateTestChannel(
50 const std::shared_ptr<CallCredentials>& creds,
53 std::shared_ptr<Channel> CreateTestChannel(
56 const std::shared_ptr<CallCredentials>& creds,
59 std::shared_ptr<Channel> CreateTestChannel(
61 const std::shared_ptr<CallCredentials>& creds);
/external/grpc-grpc/src/cpp/client/
Dsecure_credentials.cc37 std::shared_ptr<grpc::Channel> SecureChannelCredentials::CreateChannel( in CreateChannel()
57 std::shared_ptr<ChannelCredentials> WrapChannelCredentials( in WrapChannelCredentials()
60 : std::shared_ptr<ChannelCredentials>( in WrapChannelCredentials()
64 std::shared_ptr<CallCredentials> WrapCallCredentials( in WrapCallCredentials()
67 : std::shared_ptr<CallCredentials>( in WrapCallCredentials()
72 std::shared_ptr<ChannelCredentials> GoogleDefaultCredentials() { in GoogleDefaultCredentials()
78 std::shared_ptr<ChannelCredentials> SslCredentials( in SslCredentials()
94 std::shared_ptr<ChannelCredentials> AltsCredentials( in AltsCredentials()
111 std::shared_ptr<ChannelCredentials> LocalCredentials( in LocalCredentials()
120 std::shared_ptr<CallCredentials> GoogleComputeEngineCredentials() { in GoogleComputeEngineCredentials()
[all …]
/external/libcxx/include/
Dmemory395 class shared_ptr
402 constexpr shared_ptr() noexcept;
403 template<class Y> explicit shared_ptr(Y* p);
404 template<class Y, class D> shared_ptr(Y* p, D d);
405 template<class Y, class D, class A> shared_ptr(Y* p, D d, A a);
406 template <class D> shared_ptr(nullptr_t p, D d);
407 template <class D, class A> shared_ptr(nullptr_t p, D d, A a);
408 template<class Y> shared_ptr(const shared_ptr<Y>& r, T *p) noexcept;
409 shared_ptr(const shared_ptr& r) noexcept;
410 template<class Y> shared_ptr(const shared_ptr<Y>& r) noexcept;
[all …]
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
Dshared_ptr_Y.pass.cpp56 static_assert(( std::is_convertible<std::shared_ptr<A>, std::shared_ptr<B> >::value), ""); in main()
57 static_assert((!std::is_convertible<std::shared_ptr<B>, std::shared_ptr<A> >::value), ""); in main()
58 static_assert((!std::is_convertible<std::shared_ptr<A>, std::shared_ptr<C> >::value), ""); in main()
60 const std::shared_ptr<A> pA(new A); in main()
65 std::shared_ptr<B> pB(pA); in main()
79 std::shared_ptr<A> pA; in main()
84 std::shared_ptr<B> pB(pA); in main()
Dshared_ptr_Y_rv.pass.cpp60 static_assert(( std::is_convertible<std::shared_ptr<A>, std::shared_ptr<B> >::value), ""); in main()
61 static_assert((!std::is_convertible<std::shared_ptr<B>, std::shared_ptr<A> >::value), ""); in main()
62 static_assert((!std::is_convertible<std::shared_ptr<A>, std::shared_ptr<C> >::value), ""); in main()
64 std::shared_ptr<A> pA(new A); in main()
70 std::shared_ptr<B> pB(std::move(pA)); in main()
95 std::shared_ptr<A> pA; in main()
100 std::shared_ptr<B> pB(pA); in main()
/external/clang/test/Analysis/Inputs/
Dsystem-header-simulator-cxx-std-suppression.h119 class shared_ptr
122 constexpr shared_ptr(nullptr_t);
123 explicit shared_ptr(_Tp* __p);
125 shared_ptr(shared_ptr&& __r) { } in shared_ptr() function
127 ~shared_ptr();
129 shared_ptr& operator=(shared_ptr&& __r) {
141 shared_ptr<_Tp>::shared_ptr(nullptr_t) { in shared_ptr() function
/external/v8/src/objects/
Dmanaged.h26 void (*destructor_)(void* shared_ptr) = nullptr;
54 V8_INLINE std::shared_ptr<CppType> get() { return *GetSharedPtrPtr(); } in get()
68 std::shared_ptr<CppType>(ptr)); in Allocate()
77 std::shared_ptr<CppType>(ptr)); in FromRawPtr()
92 std::shared_ptr<CppType> shared_ptr) { in FromSharedPtr() argument
96 estimated_size, new std::shared_ptr<CppType>(shared_ptr), Destructor); in FromSharedPtr()
111 std::shared_ptr<CppType>* GetSharedPtrPtr() { in GetSharedPtrPtr()
114 return reinterpret_cast<std::shared_ptr<CppType>*>( in GetSharedPtrPtr()
121 auto shared_ptr_ptr = reinterpret_cast<std::shared_ptr<CppType>*>(ptr); in Destructor()
/external/grpc-grpc/src/cpp/server/load_reporter/
Dload_reporter_async_service_impl.h66 std::function<void(std::shared_ptr<ReportLoadHandler>, bool)>;
71 std::shared_ptr<ReportLoadHandler> handler) in CallableTag()
82 std::shared_ptr<ReportLoadHandler> ReleaseHandler() { in ReleaseHandler()
88 std::shared_ptr<ReportLoadHandler> handler_;
113 void OnRequestDelivered(std::shared_ptr<ReportLoadHandler> self, bool ok);
120 void OnReadDone(std::shared_ptr<ReportLoadHandler> self, bool ok);
125 void SendReport(std::shared_ptr<ReportLoadHandler> self, bool ok);
126 void ScheduleNextReport(std::shared_ptr<ReportLoadHandler> self, bool ok);
129 void OnFinishDone(std::shared_ptr<ReportLoadHandler> self, bool ok);
132 void OnDoneNotified(std::shared_ptr<ReportLoadHandler> self, bool ok);
[all …]
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/
Downer_less.pass.cpp58 const std::shared_ptr<int> p1(new int); in main()
59 const std::shared_ptr<int> p2 = p1; in main()
60 const std::shared_ptr<int> p3(new int); in main()
66 typedef std::owner_less<std::shared_ptr<int> > CS; in main()
69 static_assert((std::is_same<std::shared_ptr<int>, CS::first_argument_type>::value), "" ); in main()
70 static_assert((std::is_same<std::shared_ptr<int>, CS::second_argument_type>::value), "" ); in main()
109 std::shared_ptr<int> sp1; in main()
110 std::shared_ptr<void> sp2; in main()
111 std::shared_ptr<long> sp3; in main()
127 std::set<std::shared_ptr<X>, std::owner_less<>> s; in main()
[all …]
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/
Dmake_shared.volatile.pass.cpp24 std::shared_ptr<T> p0 = std::make_shared<T>(t0); in test()
25 std::shared_ptr<T> p1 = std::make_shared<T>(t1); in test()
32 std::shared_ptr<const T> p0 = std::make_shared<const T>(t0); in test()
33 std::shared_ptr<const T> p1 = std::make_shared<const T>(t1); in test()
40 std::shared_ptr<volatile T> p0 = std::make_shared<volatile T>(t0); in test()
41 std::shared_ptr<volatile T> p1 = std::make_shared<volatile T>(t1); in test()
48 std::shared_ptr<const volatile T> p0 = std::make_shared<const volatile T>(t0); in test()
49 std::shared_ptr<const volatile T> p1 = std::make_shared<const volatile T>(t1); in test()
/external/v8/src/inspector/
Dv8-stack-trace-impl.h83 V8StackTraceImpl(std::vector<std::shared_ptr<StackFrame>> frames,
85 std::shared_ptr<AsyncStackTrace> asyncParent,
97 std::vector<std::shared_ptr<StackFrame>>::const_iterator m_currentIt;
98 std::vector<std::shared_ptr<StackFrame>>::const_iterator m_currentEnd;
102 std::vector<std::shared_ptr<StackFrame>> m_frames;
112 static std::shared_ptr<AsyncStackTrace> capture(V8Debugger*,
117 std::shared_ptr<AsyncStackTrace> stack);
138 const std::vector<std::shared_ptr<StackFrame>>& frames() const { in frames()
144 std::vector<std::shared_ptr<StackFrame>> frames,
145 std::shared_ptr<AsyncStackTrace> asyncParent,
[all …]
/external/puffin/src/
Dpuffin_stream.h47 std::shared_ptr<Puffer> puffer,
61 std::shared_ptr<Huffer> huffer,
91 std::shared_ptr<Puffer> puffer,
92 std::shared_ptr<Huffer> huffer,
107 std::shared_ptr<Buffer>* buffer);
111 std::shared_ptr<Puffer> puffer_;
112 std::shared_ptr<Huffer> huffer_;
155 std::shared_ptr<Buffer> puff_buffer_;
158 std::list<std::pair<int, std::shared_ptr<Buffer>>> caches_;
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.cast/
Dstatic_pointer_cast.pass.cpp46 const std::shared_ptr<A> pA(new A); in main()
47 std::shared_ptr<B> pB = std::static_pointer_cast<B>(pA); in main()
52 const std::shared_ptr<B> pA(new A); in main()
53 std::shared_ptr<A> pB = std::static_pointer_cast<A>(pA); in main()
58 const std::shared_ptr<A> pA; in main()
59 std::shared_ptr<B> pB = std::static_pointer_cast<B>(pA); in main()
64 const std::shared_ptr<B> pA; in main()
65 std::shared_ptr<A> pB = std::static_pointer_cast<A>(pA); in main()

12345678910>>...31