OLD | NEW |
1 $$ This is a pump file for generating file templates. Pump is a python | 1 $$ This is a pump file for generating file templates. Pump is a python |
2 $$ script that is part of the Google Test suite of utilities. Description | 2 $$ script that is part of the Google Test suite of utilities. Description |
3 $$ can be found here: | 3 $$ can be found here: |
4 $$ | 4 $$ |
5 $$ http://code.google.com/p/googletest/wiki/PumpManual | 5 $$ http://code.google.com/p/googletest/wiki/PumpManual |
6 $$ | 6 $$ |
7 | 7 |
8 $$ See comment for MAX_ARITY in base/bind.h.pump. | 8 $$ See comment for MAX_ARITY in base/bind.h.pump. |
9 $var MAX_ARITY = 7 | 9 $var MAX_ARITY = 7 |
10 $range ARITY 0..MAX_ARITY | 10 $range ARITY 0..MAX_ARITY |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "base/template_util.h" | 24 #include "base/template_util.h" |
25 #include "build/build_config.h" | 25 #include "build/build_config.h" |
26 | 26 |
27 #if defined(OS_WIN) | 27 #if defined(OS_WIN) |
28 #include "base/bind_internal_win.h" | 28 #include "base/bind_internal_win.h" |
29 #endif | 29 #endif |
30 | 30 |
31 namespace base { | 31 namespace base { |
32 namespace internal { | 32 namespace internal { |
33 | 33 |
| 34 // See base/callback.h for user documentation. |
| 35 // |
| 36 // |
34 // CONCEPTS: | 37 // CONCEPTS: |
35 // Runnable -- A type (really a type class) that has a single Run() method | 38 // Runnable -- A type (really a type class) that has a single Run() method |
36 // and a RunType typedef that corresponds to the type of Run(). | 39 // and a RunType typedef that corresponds to the type of Run(). |
37 // A Runnable can declare that it should treated like a method | 40 // A Runnable can declare that it should treated like a method |
38 // call by including a typedef named IsMethod. The value of | 41 // call by including a typedef named IsMethod. The value of |
39 // this typedef is NOT inspected, only the existence. When a | 42 // this typedef is NOT inspected, only the existence. When a |
40 // Runnable declares itself a method, Bind() will enforce special | 43 // Runnable declares itself a method, Bind() will enforce special |
41 // refcounting + WeakPtr handling semantics for the first | 44 // refcounting + WeakPtr handling semantics for the first |
42 // parameter which is expected to be an object. | 45 // parameter which is expected to be an object. |
43 // Functor -- A copyable type representing something that should be called. | 46 // Functor -- A copyable type representing something that should be called. |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 | 488 |
486 ]] | 489 ]] |
487 }; | 490 }; |
488 | 491 |
489 ]] $$ for ARITY | 492 ]] $$ for ARITY |
490 | 493 |
491 } // namespace internal | 494 } // namespace internal |
492 } // namespace base | 495 } // namespace base |
493 | 496 |
494 #endif // BASE_BIND_INTERNAL_H_ | 497 #endif // BASE_BIND_INTERNAL_H_ |
OLD | NEW |