Lines Matching defs:RefCounted
243 class RefCounted {
304 RefCounted& trivial17() const { return const_cast<RefCounted&>(*this); }
305 RefCounted& trivial18() const { RELEASE_ASSERT(this, "this must be not null"); return const_cast<RefCounted&>(*this); }
369 RefPtr<RefCounted> trivial66() { return children[0]; }
370 Ref<RefCounted> trivial67() { return *children[0]; }
372 static RefCounted& singleton() {
373 static RefCounted s_RefCounted;
378 static RefCounted& otherSingleton() {
379 static RefCounted s_RefCounted;
467 RefCounted* children[4];
470 unsigned RefCounted::s_v = 0;
472 RefCounted* refCountedObj();
481 RefPtr<RefCounted> Field;
485 RefCounted &getFieldTrivial() { return *Field.get(); }
486 RefCounted *getFieldTernary() { return value ? Field.get() : nullptr; }
558 RefCounted::singleton().trivial18(); // no-warning
559 RefCounted::singleton().someFunction(); // no-warning
560 RefCounted::otherSingleton().trivial18(); // no-warning
561 RefCounted::otherSingleton().someFunction(); // no-warning
635 void setField(RefCounted*);
643 RefCounted &getFieldTrivialRecursively() { return getFieldTrivial().getFieldTrivial(); }
644 RefCounted *getFieldTrivialTernary() { return Field ? Field->getFieldTernary() : nullptr; }
667 RefPtr<RefCounted> object();
668 void someFunction(const RefCounted&);