call_20.hpp 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  1. /*==============================================================================
  2. Copyright (c) 2005-2010 Joel de Guzman
  3. Copyright (c) 2010 Thomas Heller
  4. Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. ==============================================================================*/
  7. template <typename Fun, typename Expr, typename State, typename Data>
  8. struct call_impl<Fun, Expr, State, Data, 1>
  9. : proto::transform_impl<Expr, State, Data>
  10. {
  11. typedef
  12. typename boost::phoenix::result_of::context<State, Data>::type
  13. context_type;
  14. typedef typename proto::result_of::child_c<Expr, 0>::type A0;
  15. typedef
  16. typename boost::result_of<
  17. Fun(A0, context_type)
  18. >::type
  19. result_type;
  20. result_type operator()(
  21. typename call_impl::expr_param e
  22. , typename call_impl::state_param s
  23. , typename call_impl::data_param d
  24. ) const
  25. {
  26. return
  27. Fun()(
  28. proto::child_c< 0>(e)
  29. , boost::phoenix::context(s, d)
  30. );
  31. }
  32. };
  33. template <typename Fun, typename Expr, typename State, typename Data>
  34. struct call_impl<Fun, Expr, State, Data, 2>
  35. : proto::transform_impl<Expr, State, Data>
  36. {
  37. typedef
  38. typename boost::phoenix::result_of::context<State, Data>::type
  39. context_type;
  40. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1;
  41. typedef
  42. typename boost::result_of<
  43. Fun(A0 , A1, context_type)
  44. >::type
  45. result_type;
  46. result_type operator()(
  47. typename call_impl::expr_param e
  48. , typename call_impl::state_param s
  49. , typename call_impl::data_param d
  50. ) const
  51. {
  52. return
  53. Fun()(
  54. proto::child_c< 0>(e) , proto::child_c< 1>(e)
  55. , boost::phoenix::context(s, d)
  56. );
  57. }
  58. };
  59. template <typename Fun, typename Expr, typename State, typename Data>
  60. struct call_impl<Fun, Expr, State, Data, 3>
  61. : proto::transform_impl<Expr, State, Data>
  62. {
  63. typedef
  64. typename boost::phoenix::result_of::context<State, Data>::type
  65. context_type;
  66. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2;
  67. typedef
  68. typename boost::result_of<
  69. Fun(A0 , A1 , A2, context_type)
  70. >::type
  71. result_type;
  72. result_type operator()(
  73. typename call_impl::expr_param e
  74. , typename call_impl::state_param s
  75. , typename call_impl::data_param d
  76. ) const
  77. {
  78. return
  79. Fun()(
  80. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e)
  81. , boost::phoenix::context(s, d)
  82. );
  83. }
  84. };
  85. template <typename Fun, typename Expr, typename State, typename Data>
  86. struct call_impl<Fun, Expr, State, Data, 4>
  87. : proto::transform_impl<Expr, State, Data>
  88. {
  89. typedef
  90. typename boost::phoenix::result_of::context<State, Data>::type
  91. context_type;
  92. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3;
  93. typedef
  94. typename boost::result_of<
  95. Fun(A0 , A1 , A2 , A3, context_type)
  96. >::type
  97. result_type;
  98. result_type operator()(
  99. typename call_impl::expr_param e
  100. , typename call_impl::state_param s
  101. , typename call_impl::data_param d
  102. ) const
  103. {
  104. return
  105. Fun()(
  106. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e)
  107. , boost::phoenix::context(s, d)
  108. );
  109. }
  110. };
  111. template <typename Fun, typename Expr, typename State, typename Data>
  112. struct call_impl<Fun, Expr, State, Data, 5>
  113. : proto::transform_impl<Expr, State, Data>
  114. {
  115. typedef
  116. typename boost::phoenix::result_of::context<State, Data>::type
  117. context_type;
  118. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4;
  119. typedef
  120. typename boost::result_of<
  121. Fun(A0 , A1 , A2 , A3 , A4, context_type)
  122. >::type
  123. result_type;
  124. result_type operator()(
  125. typename call_impl::expr_param e
  126. , typename call_impl::state_param s
  127. , typename call_impl::data_param d
  128. ) const
  129. {
  130. return
  131. Fun()(
  132. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e)
  133. , boost::phoenix::context(s, d)
  134. );
  135. }
  136. };
  137. template <typename Fun, typename Expr, typename State, typename Data>
  138. struct call_impl<Fun, Expr, State, Data, 6>
  139. : proto::transform_impl<Expr, State, Data>
  140. {
  141. typedef
  142. typename boost::phoenix::result_of::context<State, Data>::type
  143. context_type;
  144. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5;
  145. typedef
  146. typename boost::result_of<
  147. Fun(A0 , A1 , A2 , A3 , A4 , A5, context_type)
  148. >::type
  149. result_type;
  150. result_type operator()(
  151. typename call_impl::expr_param e
  152. , typename call_impl::state_param s
  153. , typename call_impl::data_param d
  154. ) const
  155. {
  156. return
  157. Fun()(
  158. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e)
  159. , boost::phoenix::context(s, d)
  160. );
  161. }
  162. };
  163. template <typename Fun, typename Expr, typename State, typename Data>
  164. struct call_impl<Fun, Expr, State, Data, 7>
  165. : proto::transform_impl<Expr, State, Data>
  166. {
  167. typedef
  168. typename boost::phoenix::result_of::context<State, Data>::type
  169. context_type;
  170. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5; typedef typename proto::result_of::child_c<Expr, 6>::type A6;
  171. typedef
  172. typename boost::result_of<
  173. Fun(A0 , A1 , A2 , A3 , A4 , A5 , A6, context_type)
  174. >::type
  175. result_type;
  176. result_type operator()(
  177. typename call_impl::expr_param e
  178. , typename call_impl::state_param s
  179. , typename call_impl::data_param d
  180. ) const
  181. {
  182. return
  183. Fun()(
  184. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e) , proto::child_c< 6>(e)
  185. , boost::phoenix::context(s, d)
  186. );
  187. }
  188. };
  189. template <typename Fun, typename Expr, typename State, typename Data>
  190. struct call_impl<Fun, Expr, State, Data, 8>
  191. : proto::transform_impl<Expr, State, Data>
  192. {
  193. typedef
  194. typename boost::phoenix::result_of::context<State, Data>::type
  195. context_type;
  196. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5; typedef typename proto::result_of::child_c<Expr, 6>::type A6; typedef typename proto::result_of::child_c<Expr, 7>::type A7;
  197. typedef
  198. typename boost::result_of<
  199. Fun(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7, context_type)
  200. >::type
  201. result_type;
  202. result_type operator()(
  203. typename call_impl::expr_param e
  204. , typename call_impl::state_param s
  205. , typename call_impl::data_param d
  206. ) const
  207. {
  208. return
  209. Fun()(
  210. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e) , proto::child_c< 6>(e) , proto::child_c< 7>(e)
  211. , boost::phoenix::context(s, d)
  212. );
  213. }
  214. };
  215. template <typename Fun, typename Expr, typename State, typename Data>
  216. struct call_impl<Fun, Expr, State, Data, 9>
  217. : proto::transform_impl<Expr, State, Data>
  218. {
  219. typedef
  220. typename boost::phoenix::result_of::context<State, Data>::type
  221. context_type;
  222. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5; typedef typename proto::result_of::child_c<Expr, 6>::type A6; typedef typename proto::result_of::child_c<Expr, 7>::type A7; typedef typename proto::result_of::child_c<Expr, 8>::type A8;
  223. typedef
  224. typename boost::result_of<
  225. Fun(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8, context_type)
  226. >::type
  227. result_type;
  228. result_type operator()(
  229. typename call_impl::expr_param e
  230. , typename call_impl::state_param s
  231. , typename call_impl::data_param d
  232. ) const
  233. {
  234. return
  235. Fun()(
  236. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e) , proto::child_c< 6>(e) , proto::child_c< 7>(e) , proto::child_c< 8>(e)
  237. , boost::phoenix::context(s, d)
  238. );
  239. }
  240. };
  241. template <typename Fun, typename Expr, typename State, typename Data>
  242. struct call_impl<Fun, Expr, State, Data, 10>
  243. : proto::transform_impl<Expr, State, Data>
  244. {
  245. typedef
  246. typename boost::phoenix::result_of::context<State, Data>::type
  247. context_type;
  248. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5; typedef typename proto::result_of::child_c<Expr, 6>::type A6; typedef typename proto::result_of::child_c<Expr, 7>::type A7; typedef typename proto::result_of::child_c<Expr, 8>::type A8; typedef typename proto::result_of::child_c<Expr, 9>::type A9;
  249. typedef
  250. typename boost::result_of<
  251. Fun(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9, context_type)
  252. >::type
  253. result_type;
  254. result_type operator()(
  255. typename call_impl::expr_param e
  256. , typename call_impl::state_param s
  257. , typename call_impl::data_param d
  258. ) const
  259. {
  260. return
  261. Fun()(
  262. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e) , proto::child_c< 6>(e) , proto::child_c< 7>(e) , proto::child_c< 8>(e) , proto::child_c< 9>(e)
  263. , boost::phoenix::context(s, d)
  264. );
  265. }
  266. };
  267. template <typename Fun, typename Expr, typename State, typename Data>
  268. struct call_impl<Fun, Expr, State, Data, 11>
  269. : proto::transform_impl<Expr, State, Data>
  270. {
  271. typedef
  272. typename boost::phoenix::result_of::context<State, Data>::type
  273. context_type;
  274. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5; typedef typename proto::result_of::child_c<Expr, 6>::type A6; typedef typename proto::result_of::child_c<Expr, 7>::type A7; typedef typename proto::result_of::child_c<Expr, 8>::type A8; typedef typename proto::result_of::child_c<Expr, 9>::type A9; typedef typename proto::result_of::child_c<Expr, 10>::type A10;
  275. typedef
  276. typename boost::result_of<
  277. Fun(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 , A10, context_type)
  278. >::type
  279. result_type;
  280. result_type operator()(
  281. typename call_impl::expr_param e
  282. , typename call_impl::state_param s
  283. , typename call_impl::data_param d
  284. ) const
  285. {
  286. return
  287. Fun()(
  288. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e) , proto::child_c< 6>(e) , proto::child_c< 7>(e) , proto::child_c< 8>(e) , proto::child_c< 9>(e) , proto::child_c< 10>(e)
  289. , boost::phoenix::context(s, d)
  290. );
  291. }
  292. };
  293. template <typename Fun, typename Expr, typename State, typename Data>
  294. struct call_impl<Fun, Expr, State, Data, 12>
  295. : proto::transform_impl<Expr, State, Data>
  296. {
  297. typedef
  298. typename boost::phoenix::result_of::context<State, Data>::type
  299. context_type;
  300. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5; typedef typename proto::result_of::child_c<Expr, 6>::type A6; typedef typename proto::result_of::child_c<Expr, 7>::type A7; typedef typename proto::result_of::child_c<Expr, 8>::type A8; typedef typename proto::result_of::child_c<Expr, 9>::type A9; typedef typename proto::result_of::child_c<Expr, 10>::type A10; typedef typename proto::result_of::child_c<Expr, 11>::type A11;
  301. typedef
  302. typename boost::result_of<
  303. Fun(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 , A10 , A11, context_type)
  304. >::type
  305. result_type;
  306. result_type operator()(
  307. typename call_impl::expr_param e
  308. , typename call_impl::state_param s
  309. , typename call_impl::data_param d
  310. ) const
  311. {
  312. return
  313. Fun()(
  314. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e) , proto::child_c< 6>(e) , proto::child_c< 7>(e) , proto::child_c< 8>(e) , proto::child_c< 9>(e) , proto::child_c< 10>(e) , proto::child_c< 11>(e)
  315. , boost::phoenix::context(s, d)
  316. );
  317. }
  318. };
  319. template <typename Fun, typename Expr, typename State, typename Data>
  320. struct call_impl<Fun, Expr, State, Data, 13>
  321. : proto::transform_impl<Expr, State, Data>
  322. {
  323. typedef
  324. typename boost::phoenix::result_of::context<State, Data>::type
  325. context_type;
  326. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5; typedef typename proto::result_of::child_c<Expr, 6>::type A6; typedef typename proto::result_of::child_c<Expr, 7>::type A7; typedef typename proto::result_of::child_c<Expr, 8>::type A8; typedef typename proto::result_of::child_c<Expr, 9>::type A9; typedef typename proto::result_of::child_c<Expr, 10>::type A10; typedef typename proto::result_of::child_c<Expr, 11>::type A11; typedef typename proto::result_of::child_c<Expr, 12>::type A12;
  327. typedef
  328. typename boost::result_of<
  329. Fun(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 , A10 , A11 , A12, context_type)
  330. >::type
  331. result_type;
  332. result_type operator()(
  333. typename call_impl::expr_param e
  334. , typename call_impl::state_param s
  335. , typename call_impl::data_param d
  336. ) const
  337. {
  338. return
  339. Fun()(
  340. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e) , proto::child_c< 6>(e) , proto::child_c< 7>(e) , proto::child_c< 8>(e) , proto::child_c< 9>(e) , proto::child_c< 10>(e) , proto::child_c< 11>(e) , proto::child_c< 12>(e)
  341. , boost::phoenix::context(s, d)
  342. );
  343. }
  344. };
  345. template <typename Fun, typename Expr, typename State, typename Data>
  346. struct call_impl<Fun, Expr, State, Data, 14>
  347. : proto::transform_impl<Expr, State, Data>
  348. {
  349. typedef
  350. typename boost::phoenix::result_of::context<State, Data>::type
  351. context_type;
  352. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5; typedef typename proto::result_of::child_c<Expr, 6>::type A6; typedef typename proto::result_of::child_c<Expr, 7>::type A7; typedef typename proto::result_of::child_c<Expr, 8>::type A8; typedef typename proto::result_of::child_c<Expr, 9>::type A9; typedef typename proto::result_of::child_c<Expr, 10>::type A10; typedef typename proto::result_of::child_c<Expr, 11>::type A11; typedef typename proto::result_of::child_c<Expr, 12>::type A12; typedef typename proto::result_of::child_c<Expr, 13>::type A13;
  353. typedef
  354. typename boost::result_of<
  355. Fun(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 , A10 , A11 , A12 , A13, context_type)
  356. >::type
  357. result_type;
  358. result_type operator()(
  359. typename call_impl::expr_param e
  360. , typename call_impl::state_param s
  361. , typename call_impl::data_param d
  362. ) const
  363. {
  364. return
  365. Fun()(
  366. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e) , proto::child_c< 6>(e) , proto::child_c< 7>(e) , proto::child_c< 8>(e) , proto::child_c< 9>(e) , proto::child_c< 10>(e) , proto::child_c< 11>(e) , proto::child_c< 12>(e) , proto::child_c< 13>(e)
  367. , boost::phoenix::context(s, d)
  368. );
  369. }
  370. };
  371. template <typename Fun, typename Expr, typename State, typename Data>
  372. struct call_impl<Fun, Expr, State, Data, 15>
  373. : proto::transform_impl<Expr, State, Data>
  374. {
  375. typedef
  376. typename boost::phoenix::result_of::context<State, Data>::type
  377. context_type;
  378. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5; typedef typename proto::result_of::child_c<Expr, 6>::type A6; typedef typename proto::result_of::child_c<Expr, 7>::type A7; typedef typename proto::result_of::child_c<Expr, 8>::type A8; typedef typename proto::result_of::child_c<Expr, 9>::type A9; typedef typename proto::result_of::child_c<Expr, 10>::type A10; typedef typename proto::result_of::child_c<Expr, 11>::type A11; typedef typename proto::result_of::child_c<Expr, 12>::type A12; typedef typename proto::result_of::child_c<Expr, 13>::type A13; typedef typename proto::result_of::child_c<Expr, 14>::type A14;
  379. typedef
  380. typename boost::result_of<
  381. Fun(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 , A10 , A11 , A12 , A13 , A14, context_type)
  382. >::type
  383. result_type;
  384. result_type operator()(
  385. typename call_impl::expr_param e
  386. , typename call_impl::state_param s
  387. , typename call_impl::data_param d
  388. ) const
  389. {
  390. return
  391. Fun()(
  392. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e) , proto::child_c< 6>(e) , proto::child_c< 7>(e) , proto::child_c< 8>(e) , proto::child_c< 9>(e) , proto::child_c< 10>(e) , proto::child_c< 11>(e) , proto::child_c< 12>(e) , proto::child_c< 13>(e) , proto::child_c< 14>(e)
  393. , boost::phoenix::context(s, d)
  394. );
  395. }
  396. };
  397. template <typename Fun, typename Expr, typename State, typename Data>
  398. struct call_impl<Fun, Expr, State, Data, 16>
  399. : proto::transform_impl<Expr, State, Data>
  400. {
  401. typedef
  402. typename boost::phoenix::result_of::context<State, Data>::type
  403. context_type;
  404. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5; typedef typename proto::result_of::child_c<Expr, 6>::type A6; typedef typename proto::result_of::child_c<Expr, 7>::type A7; typedef typename proto::result_of::child_c<Expr, 8>::type A8; typedef typename proto::result_of::child_c<Expr, 9>::type A9; typedef typename proto::result_of::child_c<Expr, 10>::type A10; typedef typename proto::result_of::child_c<Expr, 11>::type A11; typedef typename proto::result_of::child_c<Expr, 12>::type A12; typedef typename proto::result_of::child_c<Expr, 13>::type A13; typedef typename proto::result_of::child_c<Expr, 14>::type A14; typedef typename proto::result_of::child_c<Expr, 15>::type A15;
  405. typedef
  406. typename boost::result_of<
  407. Fun(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 , A10 , A11 , A12 , A13 , A14 , A15, context_type)
  408. >::type
  409. result_type;
  410. result_type operator()(
  411. typename call_impl::expr_param e
  412. , typename call_impl::state_param s
  413. , typename call_impl::data_param d
  414. ) const
  415. {
  416. return
  417. Fun()(
  418. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e) , proto::child_c< 6>(e) , proto::child_c< 7>(e) , proto::child_c< 8>(e) , proto::child_c< 9>(e) , proto::child_c< 10>(e) , proto::child_c< 11>(e) , proto::child_c< 12>(e) , proto::child_c< 13>(e) , proto::child_c< 14>(e) , proto::child_c< 15>(e)
  419. , boost::phoenix::context(s, d)
  420. );
  421. }
  422. };
  423. template <typename Fun, typename Expr, typename State, typename Data>
  424. struct call_impl<Fun, Expr, State, Data, 17>
  425. : proto::transform_impl<Expr, State, Data>
  426. {
  427. typedef
  428. typename boost::phoenix::result_of::context<State, Data>::type
  429. context_type;
  430. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5; typedef typename proto::result_of::child_c<Expr, 6>::type A6; typedef typename proto::result_of::child_c<Expr, 7>::type A7; typedef typename proto::result_of::child_c<Expr, 8>::type A8; typedef typename proto::result_of::child_c<Expr, 9>::type A9; typedef typename proto::result_of::child_c<Expr, 10>::type A10; typedef typename proto::result_of::child_c<Expr, 11>::type A11; typedef typename proto::result_of::child_c<Expr, 12>::type A12; typedef typename proto::result_of::child_c<Expr, 13>::type A13; typedef typename proto::result_of::child_c<Expr, 14>::type A14; typedef typename proto::result_of::child_c<Expr, 15>::type A15; typedef typename proto::result_of::child_c<Expr, 16>::type A16;
  431. typedef
  432. typename boost::result_of<
  433. Fun(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 , A10 , A11 , A12 , A13 , A14 , A15 , A16, context_type)
  434. >::type
  435. result_type;
  436. result_type operator()(
  437. typename call_impl::expr_param e
  438. , typename call_impl::state_param s
  439. , typename call_impl::data_param d
  440. ) const
  441. {
  442. return
  443. Fun()(
  444. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e) , proto::child_c< 6>(e) , proto::child_c< 7>(e) , proto::child_c< 8>(e) , proto::child_c< 9>(e) , proto::child_c< 10>(e) , proto::child_c< 11>(e) , proto::child_c< 12>(e) , proto::child_c< 13>(e) , proto::child_c< 14>(e) , proto::child_c< 15>(e) , proto::child_c< 16>(e)
  445. , boost::phoenix::context(s, d)
  446. );
  447. }
  448. };
  449. template <typename Fun, typename Expr, typename State, typename Data>
  450. struct call_impl<Fun, Expr, State, Data, 18>
  451. : proto::transform_impl<Expr, State, Data>
  452. {
  453. typedef
  454. typename boost::phoenix::result_of::context<State, Data>::type
  455. context_type;
  456. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5; typedef typename proto::result_of::child_c<Expr, 6>::type A6; typedef typename proto::result_of::child_c<Expr, 7>::type A7; typedef typename proto::result_of::child_c<Expr, 8>::type A8; typedef typename proto::result_of::child_c<Expr, 9>::type A9; typedef typename proto::result_of::child_c<Expr, 10>::type A10; typedef typename proto::result_of::child_c<Expr, 11>::type A11; typedef typename proto::result_of::child_c<Expr, 12>::type A12; typedef typename proto::result_of::child_c<Expr, 13>::type A13; typedef typename proto::result_of::child_c<Expr, 14>::type A14; typedef typename proto::result_of::child_c<Expr, 15>::type A15; typedef typename proto::result_of::child_c<Expr, 16>::type A16; typedef typename proto::result_of::child_c<Expr, 17>::type A17;
  457. typedef
  458. typename boost::result_of<
  459. Fun(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 , A10 , A11 , A12 , A13 , A14 , A15 , A16 , A17, context_type)
  460. >::type
  461. result_type;
  462. result_type operator()(
  463. typename call_impl::expr_param e
  464. , typename call_impl::state_param s
  465. , typename call_impl::data_param d
  466. ) const
  467. {
  468. return
  469. Fun()(
  470. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e) , proto::child_c< 6>(e) , proto::child_c< 7>(e) , proto::child_c< 8>(e) , proto::child_c< 9>(e) , proto::child_c< 10>(e) , proto::child_c< 11>(e) , proto::child_c< 12>(e) , proto::child_c< 13>(e) , proto::child_c< 14>(e) , proto::child_c< 15>(e) , proto::child_c< 16>(e) , proto::child_c< 17>(e)
  471. , boost::phoenix::context(s, d)
  472. );
  473. }
  474. };
  475. template <typename Fun, typename Expr, typename State, typename Data>
  476. struct call_impl<Fun, Expr, State, Data, 19>
  477. : proto::transform_impl<Expr, State, Data>
  478. {
  479. typedef
  480. typename boost::phoenix::result_of::context<State, Data>::type
  481. context_type;
  482. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5; typedef typename proto::result_of::child_c<Expr, 6>::type A6; typedef typename proto::result_of::child_c<Expr, 7>::type A7; typedef typename proto::result_of::child_c<Expr, 8>::type A8; typedef typename proto::result_of::child_c<Expr, 9>::type A9; typedef typename proto::result_of::child_c<Expr, 10>::type A10; typedef typename proto::result_of::child_c<Expr, 11>::type A11; typedef typename proto::result_of::child_c<Expr, 12>::type A12; typedef typename proto::result_of::child_c<Expr, 13>::type A13; typedef typename proto::result_of::child_c<Expr, 14>::type A14; typedef typename proto::result_of::child_c<Expr, 15>::type A15; typedef typename proto::result_of::child_c<Expr, 16>::type A16; typedef typename proto::result_of::child_c<Expr, 17>::type A17; typedef typename proto::result_of::child_c<Expr, 18>::type A18;
  483. typedef
  484. typename boost::result_of<
  485. Fun(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 , A10 , A11 , A12 , A13 , A14 , A15 , A16 , A17 , A18, context_type)
  486. >::type
  487. result_type;
  488. result_type operator()(
  489. typename call_impl::expr_param e
  490. , typename call_impl::state_param s
  491. , typename call_impl::data_param d
  492. ) const
  493. {
  494. return
  495. Fun()(
  496. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e) , proto::child_c< 6>(e) , proto::child_c< 7>(e) , proto::child_c< 8>(e) , proto::child_c< 9>(e) , proto::child_c< 10>(e) , proto::child_c< 11>(e) , proto::child_c< 12>(e) , proto::child_c< 13>(e) , proto::child_c< 14>(e) , proto::child_c< 15>(e) , proto::child_c< 16>(e) , proto::child_c< 17>(e) , proto::child_c< 18>(e)
  497. , boost::phoenix::context(s, d)
  498. );
  499. }
  500. };
  501. template <typename Fun, typename Expr, typename State, typename Data>
  502. struct call_impl<Fun, Expr, State, Data, 20>
  503. : proto::transform_impl<Expr, State, Data>
  504. {
  505. typedef
  506. typename boost::phoenix::result_of::context<State, Data>::type
  507. context_type;
  508. typedef typename proto::result_of::child_c<Expr, 0>::type A0; typedef typename proto::result_of::child_c<Expr, 1>::type A1; typedef typename proto::result_of::child_c<Expr, 2>::type A2; typedef typename proto::result_of::child_c<Expr, 3>::type A3; typedef typename proto::result_of::child_c<Expr, 4>::type A4; typedef typename proto::result_of::child_c<Expr, 5>::type A5; typedef typename proto::result_of::child_c<Expr, 6>::type A6; typedef typename proto::result_of::child_c<Expr, 7>::type A7; typedef typename proto::result_of::child_c<Expr, 8>::type A8; typedef typename proto::result_of::child_c<Expr, 9>::type A9; typedef typename proto::result_of::child_c<Expr, 10>::type A10; typedef typename proto::result_of::child_c<Expr, 11>::type A11; typedef typename proto::result_of::child_c<Expr, 12>::type A12; typedef typename proto::result_of::child_c<Expr, 13>::type A13; typedef typename proto::result_of::child_c<Expr, 14>::type A14; typedef typename proto::result_of::child_c<Expr, 15>::type A15; typedef typename proto::result_of::child_c<Expr, 16>::type A16; typedef typename proto::result_of::child_c<Expr, 17>::type A17; typedef typename proto::result_of::child_c<Expr, 18>::type A18; typedef typename proto::result_of::child_c<Expr, 19>::type A19;
  509. typedef
  510. typename boost::result_of<
  511. Fun(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 , A10 , A11 , A12 , A13 , A14 , A15 , A16 , A17 , A18 , A19, context_type)
  512. >::type
  513. result_type;
  514. result_type operator()(
  515. typename call_impl::expr_param e
  516. , typename call_impl::state_param s
  517. , typename call_impl::data_param d
  518. ) const
  519. {
  520. return
  521. Fun()(
  522. proto::child_c< 0>(e) , proto::child_c< 1>(e) , proto::child_c< 2>(e) , proto::child_c< 3>(e) , proto::child_c< 4>(e) , proto::child_c< 5>(e) , proto::child_c< 6>(e) , proto::child_c< 7>(e) , proto::child_c< 8>(e) , proto::child_c< 9>(e) , proto::child_c< 10>(e) , proto::child_c< 11>(e) , proto::child_c< 12>(e) , proto::child_c< 13>(e) , proto::child_c< 14>(e) , proto::child_c< 15>(e) , proto::child_c< 16>(e) , proto::child_c< 17>(e) , proto::child_c< 18>(e) , proto::child_c< 19>(e)
  523. , boost::phoenix::context(s, d)
  524. );
  525. }
  526. };