Lines Matching defs:RefCountable
5 RefCountable* provide();
6 void consume_refcntbl(RefCountable*);
23 void consume_refcntbl(int, RefCountable* foo, bool);
31 Ref<RefCountable> provide_ref_counted() { return Ref<RefCountable>{}; }
32 void consume_ref_counted(Ref<RefCountable>) {}
42 void consume_ptr(RefCountable* ptr);
43 void consume_ref(const RefCountable& ref);
57 void consume(RefCountable*) { some_function(); }
67 void consume(RefCountable*) { some_function(); }
77 RefCountable* downcast(RefCountable*);
83 consume_refcntbl(static_cast<RefCountable*>(provide()));
86 consume_refcntbl(dynamic_cast<RefCountable*>(provide()));
89 consume_refcntbl(const_cast<RefCountable*>(provide()));
92 consume_refcntbl(reinterpret_cast<RefCountable*>(provide()));
99 static_cast<RefCountable*>(
101 static_cast<RefCountable*>(
120 RefCountable* get();
140 void consume_ref(RefCountable&) {}
143 Ref<RefCountable> bar;
149 void consume_ref_countable_ref(RefCountable&);
150 void consume_ref_countable_ptr(RefCountable*);
153 void foo(RefCountable* param) {
159 void foo(RefCountable& param) {
165 void foo_ref(RefCountable& param) {
169 void foo_ptr(RefCountable* param) {
176 RefCountable* downcast(RefCountable*) { return nullptr; }
181 void foo(RefCountable* param) {
189 auto consume_ref_countable_ref = [](RefCountable&) { some_function(); };
190 auto consume_ref_countable_ptr = [](RefCountable*) { some_function(); };
193 void foo(RefCountable* param) {
199 void foo(RefCountable& param) {
205 void foo_ref(RefCountable& param) {
209 void foo_ptr(RefCountable* param) {
216 RefCountable* downcast(RefCountable*) { return nullptr; }
221 void foo(RefCountable* param) {
230 void consume_ref_countable_ref(RefCountable&) {};
231 static void consume_ref_countable_ptr(RefCountable*) {};
235 void foo(RefCountable* param) {
241 void foo(RefCountable& param) {
248 void foo_ref(RefCountable& param) {
252 void foo_ptr(RefCountable* param) {
260 RefCountable* downcast(RefCountable*) { return nullptr; }
265 void foo(RefCountable* param) {
273 void consume_ref_countable(RefCountable*) {}
274 RefCountable* downcast(RefCountable*) { return nullptr; }
277 RefPtr<RefCountable> bar;
284 RefCountable* impl() { return nullptr; }
288 RefCountable rc;
289 RefCountable& impl() { return rc; }
292 void consume_ptr(RefCountable*) {}
293 void consume_ref(RefCountable&) {}
306 RefCountable* global;
308 void function_with_default_arg(RefCountable* param = global);
317 Ref<RefCountable> provideProtected();
330 Foo& operator+(RefCountable* bad);
331 friend Foo& operator-(Foo& lhs, RefCountable* bad);
332 void operator()(RefCountable* bad);
335 RefCountable* global;
349 Ref<RefCountable> provideProtected();
350 void bar(RefCountable* bad);