Home
last modified time | relevance | path

Searched refs:coro_t (Results 1 – 9 of 9) sorted by relevance

/third_party/boost/libs/coroutine/example/asymmetric/
Dchaining.cpp18 typedef boost::coroutines::asymmetric_coroutine<std::string> coro_t; typedef
21 void readlines(coro_t::push_type& sink, std::istream& in) in readlines()
28 void tokenize(coro_t::push_type& sink, coro_t::pull_type& source) in tokenize()
68 void only_words(coro_t::push_type& sink, coro_t::pull_type& source) in only_words()
77 void trace(coro_t::push_type& sink, coro_t::pull_type& source) in trace()
91 void layout(coro_t::pull_type& source, int num, int width) in layout()
131 coro_t::pull_type reader(boost::bind(readlines, _1, boost::ref(infile))); in main()
132 coro_t::pull_type tracer(boost::bind(trace, _1, boost::ref(reader))); in main()
142 coro_t::pull_type reader(boost::bind(readlines, _1, boost::ref(infile))); in main()
143 coro_t::pull_type tokenizer(boost::bind(tokenize, _1, boost::ref(reader))); in main()
[all …]
/third_party/boost/libs/coroutine/example/symmetric/
Dsimple.cpp14 typedef boost::coroutines::symmetric_coroutine< void > coro_t; typedef
16 coro_t::call_type * c1 = 0;
17 coro_t::call_type * c2 = 0;
19 void foo( coro_t::yield_type & yield) in foo()
28 void bar( coro_t::yield_type & yield) in bar()
39 coro_t::call_type coro1( foo); in main()
40 coro_t::call_type coro2( bar); in main()
Dunwind.cpp20 typedef boost::coroutines::symmetric_coroutine< void > coro_t; typedef
22 coro_t::call_type * c1 = 0;
23 coro_t::call_type * c2 = 0;
25 void foo( coro_t::yield_type & yield) in foo()
34 void bar( coro_t::yield_type & yield) in bar()
43 coro_t::call_type coro1( foo); in main()
44 coro_t::call_type coro2( bar); in main()
Ddice_game.cpp17 typedef boost::coroutines::symmetric_coroutine< void > coro_t; typedef
28 void run_( coro_t::yield_type & yield) in run_()
42 coro_t::call_type coro;
Dmerge_arrays.cpp17 typedef boost::coroutines::symmetric_coroutine< void > coro_t; typedef
25 void run_( coro_t::yield_type & yield) in run_()
44 coro_t::call_type coro;
/third_party/boost/libs/coroutine2/doc/
Dmotivation.qbk254 typedef boost::coroutines2::coroutine< char > coro_t;
259 coro_t::pull_type seq(
261 [&is](coro_t::push_type & yield) {
385 typedef boost::coroutines2::coroutine<std::string> coro_t;
389 coro_t::push_type& out){
398 coro_t::pull_type left_d_reader([&](coro_t::push_type & out){
403 coro_t::pull_type right_b_reader([&](coro_t::push_type & out){
416 coro_t::pull_type left_d_reader([&](coro_t::push_type & out){
421 coro_t::pull_type right_x_reader([&](coro_t::push_type & out){
444 typedef boost::coroutines2::coroutine<std::string> coro_t;
[all …]
Dasymmetric.qbk29 typedef boost::coroutines2::coroutine<int> coro_t;
31 coro_t::pull_type source(
32 [&](coro_t::push_type& sink){
82 typedef boost::coroutines2::coroutine<std::string> coro_t;
91 coro_t::push_type writer(
92 [&](coro_t::pull_type& in){
172 typedef boost::coroutines2::coroutine<int> coro_t;
174 coro_t::pull_type source( // constructor enters coroutine-function
175 [&](coro_t::push_type& sink){
198 typedef boost::coroutines2::coroutine<int> coro_t;
[all …]
/third_party/boost/libs/coroutine2/example/
Dparser.cpp97 typedef boost::coroutines2::coroutine< char > coro_t; typedef
103 coro_t::pull_type seq( in main()
104 [&is]( coro_t::push_type & yield) { in main()
/third_party/boost/libs/coroutine/doc/
Dmotivation.qbk234 typedef boost::coroutines::asymmetric_coroutine<const BaseEvent&> coro_t;
236 void parser(coro_t::push_type& sink,std::istream& in){
284 const CloseEvent& process(coro_t::pull_type& events,const OpenEvent& context,
321 coro_t::pull_type events(std::bind(parser,_1,std::ref(in)));
568 typedef boost::coroutines::asymmetric_coroutine<std::string> coro_t;
571 void readlines(coro_t::push_type& sink,std::istream& in){
577 void tokenize(coro_t::push_type& sink, coro_t::pull_type& source){
606 void only_words(coro_t::push_type& sink,coro_t::pull_type& source){
613 void trace(coro_t::push_type& sink, coro_t::pull_type& source){
626 void layout(coro_t::pull_type& source,int num,int width){
[all …]