Home
last modified time | relevance | path

Searched refs:RefCountedPtr (Results 1 – 25 of 43) sorted by relevance

12

/external/grpc-grpc/test/core/gprpp/
Dref_counted_ptr_test.cc45 TEST(RefCountedPtr, DefaultConstructor) { RefCountedPtr<Foo> foo; } in TEST() argument
47 TEST(RefCountedPtr, ExplicitConstructorEmpty) { in TEST() argument
48 RefCountedPtr<Foo> foo(nullptr); in TEST()
51 TEST(RefCountedPtr, ExplicitConstructor) { RefCountedPtr<Foo> foo(New<Foo>()); } in TEST() argument
53 TEST(RefCountedPtr, MoveConstructor) { in TEST() argument
54 RefCountedPtr<Foo> foo(New<Foo>()); in TEST()
55 RefCountedPtr<Foo> foo2(std::move(foo)); in TEST()
60 TEST(RefCountedPtr, MoveAssignment) { in TEST() argument
61 RefCountedPtr<Foo> foo(New<Foo>()); in TEST()
62 RefCountedPtr<Foo> foo2 = std::move(foo); in TEST()
[all …]
Dref_counted_test.cc42 RefCountedPtr<Foo> foop = foo->Ref(); in TEST()
59 RefCountedPtr<FooWithTracing> foop = foo->Ref(DEBUG_LOCATION, "extra_ref"); in TEST()
Dorphanable_test.cc73 RefCountedPtr<Bar> self_ref_;
103 RefCountedPtr<Baz> self_ref_;
/external/grpc-grpc/src/core/lib/gprpp/
Dref_counted_ptr.h33 class RefCountedPtr {
35 RefCountedPtr() {} in RefCountedPtr() function
36 RefCountedPtr(std::nullptr_t) {} in RefCountedPtr() function
40 explicit RefCountedPtr(Y* value) { in RefCountedPtr() function
45 RefCountedPtr(RefCountedPtr&& other) { in RefCountedPtr() function
50 RefCountedPtr(RefCountedPtr<Y>&& other) { in RefCountedPtr() function
56 RefCountedPtr& operator=(RefCountedPtr&& other) {
63 RefCountedPtr& operator=(RefCountedPtr<Y>&& other) {
71 RefCountedPtr(const RefCountedPtr& other) { in RefCountedPtr() function
76 RefCountedPtr(const RefCountedPtr<Y>& other) { in RefCountedPtr() function
[all …]
Dref_counted.h46 RefCountedPtr<Child> Ref() GRPC_MUST_USE_RESULT { in Ref()
48 return RefCountedPtr<Child>(static_cast<Child*>(this)); in Ref()
77 friend class RefCountedPtr;
93 RefCountedPtr<Child> Ref() GRPC_MUST_USE_RESULT { in Ref()
95 return RefCountedPtr<Child>(static_cast<Child*>(this)); in Ref()
98 RefCountedPtr<Child> Ref(const DebugLocation& location, in Ref()
157 friend class RefCountedPtr;
Dorphanable.h90 friend class RefCountedPtr;
95 RefCountedPtr<Child> Ref() GRPC_MUST_USE_RESULT { in Ref()
97 return RefCountedPtr<Child>(static_cast<Child*>(this)); in Ref()
134 friend class RefCountedPtr;
151 RefCountedPtr<Child> Ref() GRPC_MUST_USE_RESULT { in Ref()
153 return RefCountedPtr<Child>(static_cast<Child*>(this)); in Ref()
156 RefCountedPtr<Child> Ref(const DebugLocation& location, in Ref()
/external/grpc-grpc/src/core/lib/transport/
Dservice_config.h82 using CreateValue = RefCountedPtr<T> (*)(const grpc_json* method_config_json);
84 RefCountedPtr<SliceHashTable<RefCountedPtr<T>>> CreateMethodConfigTable(
94 static RefCountedPtr<T> MethodConfigTableLookup(
95 const SliceHashTable<RefCountedPtr<T>>& table, grpc_slice path);
118 typename SliceHashTable<RefCountedPtr<T>>::Entry* entries, size_t* idx);
145 typename SliceHashTable<RefCountedPtr<T>>::Entry* entries, size_t* idx) { in ParseJsonMethodConfig()
147 RefCountedPtr<T> method_config = create_value(json); in ParseJsonMethodConfig()
174 RefCountedPtr<SliceHashTable<RefCountedPtr<T>>>
181 typename SliceHashTable<RefCountedPtr<T>>::Entry* entries = nullptr; in CreateMethodConfigTable()
196 entries = static_cast<typename SliceHashTable<RefCountedPtr<T>>::Entry*>( in CreateMethodConfigTable()
[all …]
/external/grpc-grpc/test/core/slice/
Dslice_hash_table_test.cc70 RefCountedPtr<TestHashTable> CreateTableFromEntries( in CreateTableFromEntries()
76 RefCountedPtr<TestHashTable> table = in CreateTableFromEntries()
119 RefCountedPtr<TestHashTable> table = in TEST()
137 RefCountedPtr<TestHashTable> table_a = in TEST()
141 RefCountedPtr<TestHashTable> table_b = in TEST()
153 RefCountedPtr<TestHashTable> table_a = in TEST()
157 RefCountedPtr<TestHashTable> table_b = in TEST()
167 RefCountedPtr<TestHashTable> table_a = in TEST()
171 RefCountedPtr<TestHashTable> table_b = in TEST()
181 RefCountedPtr<TestHashTable> table_a = in TEST()
[all …]
/external/grpc-grpc/src/core/lib/channel/
Dchannel_trace.h66 RefCountedPtr<BaseNode> referenced_entity);
79 RefCountedPtr<BaseNode> referenced_entity_);
101 RefCountedPtr<BaseNode> referenced_entity_;
Dchannelz.h117 static RefCountedPtr<ChannelNode> MakeChannelNode(
155 RefCountedPtr<BaseNode> referenced_channel) { in AddTraceEventWithReference()
186 RefCountedPtr<BaseNode> referenced_channel) { in AddTraceEventWithReference()
209 typedef RefCountedPtr<ChannelNode> (*ChannelNodeCreationFunc)(grpc_channel*,
Dchannel_trace.cc45 RefCountedPtr<BaseNode> referenced_entity) in TraceEvent()
113 RefCountedPtr<BaseNode> referenced_entity) { in AddTraceEventWithReference()
/external/grpc-grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/
Dgrpclb_channel_secure.cc44 RefCountedPtr<TargetAuthorityTable> CreateTargetAuthorityTable( in CreateTargetAuthorityTable()
58 RefCountedPtr<TargetAuthorityTable> target_authority_table = in CreateTargetAuthorityTable()
80 grpc_core::RefCountedPtr<grpc_core::TargetAuthorityTable> in grpc_lb_policy_grpclb_modify_lb_channel_args()
Dclient_load_reporting_filter.cc41 grpc_core::RefCountedPtr<grpc_core::GrpcLbClientStats> client_stats;
/external/grpc-grpc/test/core/channel/
Dchannel_trace_test.cc168 RefCountedPtr<ChannelNode> sc1 = in TEST_P()
187 RefCountedPtr<ChannelNode> sc2 = in TEST_P()
216 RefCountedPtr<ChannelNode> sc1 = in TEST_P()
225 RefCountedPtr<ChannelNode> conn1 = in TEST_P()
239 RefCountedPtr<ChannelNode> sc2 = in TEST_P()
/external/grpc-grpc/src/core/ext/filters/message_size/
Dmessage_size_filter.cc47 static RefCountedPtr<MessageSizeLimits> CreateFromJson(const grpc_json* json);
64 RefCountedPtr<MessageSizeLimits> MessageSizeLimits::CreateFromJson( in CreateFromJson()
116 grpc_core::RefCountedPtr<grpc_core::SliceHashTable<
117 grpc_core::RefCountedPtr<grpc_core::MessageSizeLimits>>>
223 grpc_core::RefCountedPtr<grpc_core::MessageSizeLimits> limits = in init_call_elem()
/external/grpc-grpc/src/core/ext/filters/client_channel/
Dclient_channel_channelz.h45 static RefCountedPtr<ChannelNode> MakeClientChannelNode(
85 RefCountedPtr<BaseNode> referenced_channel) { in AddTraceEventWithReference()
Dretry_throttle.cc166 RefCountedPtr<ServerRetryThrottleData> ServerRetryThrottleMap::GetDataForServer( in GetDataForServer()
169 RefCountedPtr<ServerRetryThrottleData> result; in GetDataForServer()
Dmethod_params.cc150 RefCountedPtr<ClientChannelMethodParams>
152 RefCountedPtr<ClientChannelMethodParams> method_params = in CreateFromJson()
Dretry_throttle.h73 static RefCountedPtr<ServerRetryThrottleData> GetDataForServer(
Dmethod_params.h51 static RefCountedPtr<ClientChannelMethodParams> CreateFromJson(
/external/grpc-grpc/src/core/ext/filters/client_channel/resolver/dns/native/
Ddns_resolver.cc226 RefCountedPtr<Resolver> self = in OnResolvedLocked()
267 RefCountedPtr<Resolver> self = in MaybeStartResolvingLocked()
283 RefCountedPtr<Resolver> self = Ref(DEBUG_LOCATION, "dns-resolving"); in StartResolvingLocked()
/external/grpc-grpc/src/core/lib/slice/
Dslice_hash_table.h63 static RefCountedPtr<SliceHashTable> Create(size_t num_entries,
107 RefCountedPtr<SliceHashTable<T>> SliceHashTable<T>::Create(size_t num_entries, in Create()
Dslice_weak_hash_table.h43 static RefCountedPtr<SliceWeakHashTable> Create() { in Create()
/external/grpc-grpc/src/core/ext/filters/client_channel/resolver/dns/c_ares/
Ddns_resolver_ares.cc354 RefCountedPtr<Resolver> self = r->Ref(DEBUG_LOCATION, "retry-timer"); in OnResolvedLocked()
393 RefCountedPtr<Resolver> self = in MaybeStartResolvingLocked()
409 RefCountedPtr<Resolver> self = Ref(DEBUG_LOCATION, "dns-resolving"); in StartResolvingLocked()
/external/grpc-grpc/src/core/tsi/ssl/session_cache/
Dssl_session_cache.h52 static grpc_core::RefCountedPtr<SslSessionLRUCache> Create(size_t capacity) { in Create()

12