Lines Matching defs:RefCounted
22 // type inherits from RefCounted<>, which have AddRef and Release just like
26 // class Foo : public RefCounted<Foo> {
44 // 2. All RefCounted objects must be instantiated on the heap. Allocating the
47 // class A : public RefCounted<A>;
48 // class B : public A, public RefCounted<B>;
52 // class A : public I, public RefCounted<A>; // A specific implementation
53 // class B : public I, public RefCounted<B>; // B specific implementation
123 class RefCounted : virtual public RefCount {
125 RefCounted() : ref_count_(0) {
132 RefCounted(const RefCounted<TDerived>&) : ref_count_(0) {}
133 virtual ~RefCounted() {
140 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;