Home
last modified time | relevance | path

Searched refs:RefCounted (Results 1 – 25 of 113) sorted by relevance

12345

/external/tensorflow/tensorflow/core/platform/
Drefcount.h27 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/
Dvk_internal_shaders_autogen.h208 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 …]
Dvk_internal_shaders_autogen.cpp292 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 …]
Dvk_utils.h438 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 &&copy) : 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/
Dsmart_pointer_test.cc21 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/
Drefcount.h121 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;
Djava_iterator.h41 public RefCounted< PODIterator<ReturnType, Container> > {
68 public RefCounted< RefIterator<ReturnType, Container> > {
/external/grpc-grpc/src/core/lib/gprpp/
Dref_counted.h44 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/
Dref_counted_unittest.cc15 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 …]
Dref_counted.h295 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/
Dcharacter_predicate.h33 public sfntly::RefCounted<AcceptRange> {
48 public sfntly::RefCounted<AcceptSet> {
60 public sfntly::RefCounted<AcceptAll> {
/external/grpc-grpc/test/core/gprpp/
Dref_counted_test.cc30 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/
Dglyph_table.h36 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/
Debsc_table.h25 public RefCounted<EbscTable> {
51 public RefCounted<BitmapScaleTable> {
67 public RefCounted<Builder> {
Dsimple_bitmap_glyph.h25 public RefCounted<SimpleBitmapGlyph> {
28 public RefCounted<Builder> {
Dsmall_glyph_metrics.h26 public RefCounted<SmallGlyphMetrics> {
40 public RefCounted<Builder> {
Dcomposite_bitmap_glyph.h25 public RefCounted<CompositeBitmapGlyph> {
51 public RefCounted<Builder> {
Debdt_table.h27 public RefCounted<EbdtTable> {
37 public RefCounted<Builder> {
Dbig_glyph_metrics.h25 public RefCounted<BigGlyphMetrics> {
43 public RefCounted<Builder> {
/external/sfntly/doc/
Dsmart_pointer_usage.md7 Ref-countable object type inherits from RefCounted&lt;&gt;, 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/
Dcmap_table.h49 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> {
Dhorizontal_device_metrics_table.h28 public RefCounted<HorizontalDeviceMetricsTable> {
30 class Builder : public TableBasedTableBuilder, public RefCounted<Builder> {
Dhorizontal_metrics_table.h27 public RefCounted<HorizontalMetricsTable> {
30 class Builder : public TableBasedTableBuilder, public RefCounted<Builder> {
/external/libchrome/mojo/public/cpp/bindings/
Dsync_handle_registry.h27 : public base::RefCounted<SyncHandleRegistry> {
61 friend class base::RefCounted<SyncHandleRegistry>;
/external/libbrillo/brillo/dbus/
Dasync_event_sequencer.h39 : public base::RefCounted<AsyncEventSequencer> {
105 friend class base::RefCounted<AsyncEventSequencer>;

12345