/external/tensorflow/tensorflow/core/platform/ |
D | refcount.h | 27 class RefCounted { 30 RefCounted(); 54 virtual ~RefCounted(); 59 RefCounted(const RefCounted&) = delete; 60 void operator=(const RefCounted&) = delete; 65 void operator()(tensorflow::core::RefCounted* o) const { o->Unref(); } in operator() 75 explicit ScopedUnref(const RefCounted* o) : obj_(o) {} in ScopedUnref() 81 const RefCounted* obj_; 88 inline RefCounted::RefCounted() : ref_(1) {} in RefCounted() function 90 inline RefCounted::~RefCounted() { DCHECK_EQ(ref_.load(), 0); } in ~RefCounted() [all …]
|
/external/angle/src/libANGLE/renderer/vulkan/ |
D | vk_internal_shaders_autogen.h | 208 RefCounted<ShaderAndSerial> **shaderOut); 211 RefCounted<ShaderAndSerial> **shaderOut); 214 RefCounted<ShaderAndSerial> **shaderOut); 217 RefCounted<ShaderAndSerial> **shaderOut); 220 RefCounted<ShaderAndSerial> **shaderOut); 223 RefCounted<ShaderAndSerial> **shaderOut); 226 RefCounted<ShaderAndSerial> **shaderOut); 229 RefCounted<ShaderAndSerial> **shaderOut); 232 RefCounted<ShaderAndSerial> **shaderOut); 235 RefCounted<ShaderAndSerial> **shaderOut); [all …]
|
D | vk_internal_shaders_autogen.cpp | 292 RefCounted<ShaderAndSerial> *shaders, in GetShader() 296 RefCounted<ShaderAndSerial> **shaderOut) in GetShader() 299 RefCounted<ShaderAndSerial> &shader = shaders[shaderFlags]; in GetShader() 321 for (RefCounted<ShaderAndSerial> &shader : mBlitResolve_frag_shaders) in destroy() 325 for (RefCounted<ShaderAndSerial> &shader : mBlitResolveStencilNoExport_comp_shaders) in destroy() 329 for (RefCounted<ShaderAndSerial> &shader : mBufferUtils_comp_shaders) in destroy() 333 for (RefCounted<ShaderAndSerial> &shader : mConvertIndex_comp_shaders) in destroy() 337 for (RefCounted<ShaderAndSerial> &shader : mConvertIndexIndirectLineLoop_comp_shaders) in destroy() 341 for (RefCounted<ShaderAndSerial> &shader : mConvertIndirectLineLoop_comp_shaders) in destroy() 345 for (RefCounted<ShaderAndSerial> &shader : mConvertVertex_comp_shaders) in destroy() [all …]
|
D | vk_utils.h | 438 class RefCounted : angle::NonCopyable 441 RefCounted() : mRefCount(0) {} 442 explicit RefCounted(T &&newObject) : mRefCount(0), mObject(std::move(newObject)) {} 443 ~RefCounted() { ASSERT(mRefCount == 0 && !mObject.valid()); } 445 RefCounted(RefCounted &©) : mRefCount(copy.mRefCount), mObject(std::move(copy.mObject)) 451 RefCounted &operator=(RefCounted &&rhs) 488 void set(RefCounted<T> *refCounted) 511 RefCounted<T> *mRefCounted; 532 void set(VkDevice device, RefCounted<T> *refCounted) 554 set(device, new RefCounted<T>(std::move(newObject))); [all …]
|
/external/sfntly/cpp/src/test/ |
D | smart_pointer_test.cc | 21 using sfntly::RefCounted; 24 class Foo : public RefCounted<Foo> { 36 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer() 42 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer() 49 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer() 55 EXPECT_EQ(size_t(2), RefCounted<Foo>::object_counter_); in TestSmartPointer() 60 EXPECT_EQ(size_t(2), RefCounted<Foo>::object_counter_); in TestSmartPointer() 63 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer() 67 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer() 71 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer() [all …]
|
/external/sfntly/cpp/src/sfntly/port/ |
D | refcount.h | 121 class RefCounted : virtual public RefCount { 123 RefCounted() : ref_count_(0) { in RefCounted() function 130 RefCounted(const RefCounted<TDerived>&) : ref_count_(0) {} in RefCounted() function 131 virtual ~RefCounted() { in ~RefCounted() 138 RefCounted<TDerived>& operator=(const RefCounted<TDerived>&) { 171 template <typename TDerived> size_t RefCounted<TDerived>::object_counter_ = 0; 172 template <typename TDerived> size_t RefCounted<TDerived>::next_id_ = 0;
|
D | java_iterator.h | 41 public RefCounted< PODIterator<ReturnType, Container> > { 68 public RefCounted< RefIterator<ReturnType, Container> > {
|
/external/grpc-grpc/src/core/lib/gprpp/ |
D | ref_counted.h | 44 class RefCounted { 62 RefCounted(const RefCounted&) = delete; 63 RefCounted& operator=(const RefCounted&) = delete; 70 RefCounted() { gpr_ref_init(&refs_, 1); } in RefCounted() function 72 virtual ~RefCounted() {} in ~RefCounted()
|
/external/libchrome/base/memory/ |
D | ref_counted_unittest.cc | 15 class SelfAssign : public base::RefCounted<SelfAssign> { 20 friend class base::RefCounted<SelfAssign>; 28 friend class base::RefCounted<Derived>; 40 class ScopedRefPtrToSelf : public base::RefCounted<ScopedRefPtrToSelf> { 51 friend class base::RefCounted<ScopedRefPtrToSelf>; 59 class ScopedRefPtrCountBase : public base::RefCounted<ScopedRefPtrCountBase> { 76 friend class base::RefCounted<ScopedRefPtrCountBase>; 102 friend class base::RefCounted<ScopedRefPtrCountDerived>; 111 class Other : public base::RefCounted<Other> { 113 friend class base::RefCounted<Other>; [all …]
|
D | ref_counted.h | 295 class RefCounted; variable 300 RefCounted<T, DefaultRefCountedTraits>::DeleteInternal(x); in Destruct() 305 class RefCounted : public subtle::RefCountedBase { 310 RefCounted() : subtle::RefCountedBase(T::kRefCountPreference) {} in RefCounted() function 328 ~RefCounted() = default; 337 DISALLOW_COPY_AND_ASSIGN(RefCounted);
|
/external/sfntly/cpp/src/sample/subtly/ |
D | character_predicate.h | 33 public sfntly::RefCounted<AcceptRange> { 48 public sfntly::RefCounted<AcceptSet> { 60 public sfntly::RefCounted<AcceptAll> {
|
/external/grpc-grpc/test/core/gprpp/ |
D | ref_counted_test.cc | 30 class Foo : public RefCounted<Foo> { 35 TEST(RefCounted, Basic) { in TEST() argument 40 TEST(RefCounted, ExtraRef) { in TEST() argument
|
/external/sfntly/cpp/src/sfntly/table/truetype/ |
D | glyph_table.h | 36 public RefCounted<GlyphTable> { 112 public RefCounted<GlyphTable::Builder> { 161 class SimpleGlyph : public Glyph, public RefCounted<SimpleGlyph> { 177 public RefCounted<SimpleGlyphBuilder> { 228 class CompositeGlyph : public Glyph, public RefCounted<CompositeGlyph> { 245 public RefCounted<CompositeGlyphBuilder> {
|
/external/sfntly/cpp/src/sfntly/table/bitmap/ |
D | ebsc_table.h | 25 public RefCounted<EbscTable> { 51 public RefCounted<BitmapScaleTable> { 67 public RefCounted<Builder> {
|
D | simple_bitmap_glyph.h | 25 public RefCounted<SimpleBitmapGlyph> { 28 public RefCounted<Builder> {
|
D | small_glyph_metrics.h | 26 public RefCounted<SmallGlyphMetrics> { 40 public RefCounted<Builder> {
|
D | composite_bitmap_glyph.h | 25 public RefCounted<CompositeBitmapGlyph> { 51 public RefCounted<Builder> {
|
D | ebdt_table.h | 27 public RefCounted<EbdtTable> { 37 public RefCounted<Builder> {
|
D | big_glyph_metrics.h | 25 public RefCounted<BigGlyphMetrics> { 43 public RefCounted<Builder> {
|
/external/sfntly/doc/ |
D | smart_pointer_usage.md | 7 Ref-countable object type inherits from RefCounted<>, which have 16 class Foo : public RefCounted<Foo> { 46 - All RefCounted objects must be instantiated on the heap. Allocating 58 > class A : public I, public RefCounted<A>; // A specific implementation 59 > class B : public I, public RefCounted<B>; // B specific implementation 122 > ^([ACDR]) class RefCounted<class sfntly::([A-Za-z0-9:]+)>[ *const]+:oc=([-0-9]+),oid=([0-9]+),rc=…
|
/external/sfntly/cpp/src/sfntly/table/core/ |
D | cmap_table.h | 49 class CMapTable : public SubTableContainerTable, public RefCounted<CMapTable> { 216 class CMapFormat0 : public CMap, public RefCounted<CMapFormat0> { 220 public RefCounted<Builder> { 268 class CMapFormat2 : public CMap, public RefCounted<CMapFormat2> { 272 public RefCounted<Builder> { 321 public RefCounted<CMapFormat4> { 325 public RefCounted<Builder> { 328 class Segment : public RefCounted<Segment> { 497 public RefCounted<Builder> {
|
D | horizontal_device_metrics_table.h | 28 public RefCounted<HorizontalDeviceMetricsTable> { 30 class Builder : public TableBasedTableBuilder, public RefCounted<Builder> {
|
D | horizontal_metrics_table.h | 27 public RefCounted<HorizontalMetricsTable> { 30 class Builder : public TableBasedTableBuilder, public RefCounted<Builder> {
|
/external/libchrome/mojo/public/cpp/bindings/ |
D | sync_handle_registry.h | 27 : public base::RefCounted<SyncHandleRegistry> { 61 friend class base::RefCounted<SyncHandleRegistry>;
|
/external/libbrillo/brillo/dbus/ |
D | async_event_sequencer.h | 39 : public base::RefCounted<AsyncEventSequencer> { 105 friend class base::RefCounted<AsyncEventSequencer>;
|