PageRenderTime 82ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 1ms

/testlibs/gtest/include/gtest/internal/gtest-param-util-generated.h

https://github.com/deltaforge/nebu-app-hadoop
C Header | 4822 lines | 4238 code | 349 blank | 235 comment | 226 complexity | fcdfbe23672329116bf089d0e7d00949 MD5 | raw file
Possible License(s): LGPL-3.0, BSD-3-Clause
  1. // This file was GENERATED by command:
  2. // pump.py gtest-param-util-generated.h.pump
  3. // DO NOT EDIT BY HAND!!!
  4. // Copyright 2008 Google Inc.
  5. // All Rights Reserved.
  6. //
  7. // Redistribution and use in source and binary forms, with or without
  8. // modification, are permitted provided that the following conditions are
  9. // met:
  10. //
  11. // * Redistributions of source code must retain the above copyright
  12. // notice, this list of conditions and the following disclaimer.
  13. // * Redistributions in binary form must reproduce the above
  14. // copyright notice, this list of conditions and the following disclaimer
  15. // in the documentation and/or other materials provided with the
  16. // distribution.
  17. // * Neither the name of Google Inc. nor the names of its
  18. // contributors may be used to endorse or promote products derived from
  19. // this software without specific prior written permission.
  20. //
  21. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  24. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  25. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  26. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  27. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  28. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  29. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  30. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  31. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32. //
  33. // Author: vladl@google.com (Vlad Losev)
  34. // Type and function utilities for implementing parameterized tests.
  35. // This file is generated by a SCRIPT. DO NOT EDIT BY HAND!
  36. //
  37. // Currently Google Test supports at most 50 arguments in Values,
  38. // and at most 10 arguments in Combine. Please contact
  39. // googletestframework@googlegroups.com if you need more.
  40. // Please note that the number of arguments to Combine is limited
  41. // by the maximum arity of the implementation of tr1::tuple which is
  42. // currently set at 10.
  43. #ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_GENERATED_H_
  44. #define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_GENERATED_H_
  45. // scripts/fuse_gtest.py depends on gtest's own header being #included
  46. // *unconditionally*. Therefore these #includes cannot be moved
  47. // inside #if GTEST_HAS_PARAM_TEST.
  48. #include "gtest/internal/gtest-param-util.h"
  49. #include "gtest/internal/gtest-port.h"
  50. #if GTEST_HAS_PARAM_TEST
  51. namespace testing {
  52. // Forward declarations of ValuesIn(), which is implemented in
  53. // include/gtest/gtest-param-test.h.
  54. template <typename ForwardIterator>
  55. internal::ParamGenerator<
  56. typename ::testing::internal::IteratorTraits<ForwardIterator>::value_type>
  57. ValuesIn(ForwardIterator begin, ForwardIterator end);
  58. template <typename T, size_t N>
  59. internal::ParamGenerator<T> ValuesIn(const T (&array)[N]);
  60. template <class Container>
  61. internal::ParamGenerator<typename Container::value_type> ValuesIn(
  62. const Container& container);
  63. namespace internal {
  64. // Used in the Values() function to provide polymorphic capabilities.
  65. template <typename T1>
  66. class ValueArray1 {
  67. public:
  68. explicit ValueArray1(T1 v1) : v1_(v1) {}
  69. template <typename T>
  70. operator ParamGenerator<T>() const { return ValuesIn(&v1_, &v1_ + 1); }
  71. private:
  72. // No implementation - assignment is unsupported.
  73. void operator=(const ValueArray1& other);
  74. const T1 v1_;
  75. };
  76. template <typename T1, typename T2>
  77. class ValueArray2 {
  78. public:
  79. ValueArray2(T1 v1, T2 v2) : v1_(v1), v2_(v2) {}
  80. template <typename T>
  81. operator ParamGenerator<T>() const {
  82. const T array[] = {v1_, v2_};
  83. return ValuesIn(array);
  84. }
  85. private:
  86. // No implementation - assignment is unsupported.
  87. void operator=(const ValueArray2& other);
  88. const T1 v1_;
  89. const T2 v2_;
  90. };
  91. template <typename T1, typename T2, typename T3>
  92. class ValueArray3 {
  93. public:
  94. ValueArray3(T1 v1, T2 v2, T3 v3) : v1_(v1), v2_(v2), v3_(v3) {}
  95. template <typename T>
  96. operator ParamGenerator<T>() const {
  97. const T array[] = {v1_, v2_, v3_};
  98. return ValuesIn(array);
  99. }
  100. private:
  101. // No implementation - assignment is unsupported.
  102. void operator=(const ValueArray3& other);
  103. const T1 v1_;
  104. const T2 v2_;
  105. const T3 v3_;
  106. };
  107. template <typename T1, typename T2, typename T3, typename T4>
  108. class ValueArray4 {
  109. public:
  110. ValueArray4(T1 v1, T2 v2, T3 v3, T4 v4) : v1_(v1), v2_(v2), v3_(v3),
  111. v4_(v4) {}
  112. template <typename T>
  113. operator ParamGenerator<T>() const {
  114. const T array[] = {v1_, v2_, v3_, v4_};
  115. return ValuesIn(array);
  116. }
  117. private:
  118. // No implementation - assignment is unsupported.
  119. void operator=(const ValueArray4& other);
  120. const T1 v1_;
  121. const T2 v2_;
  122. const T3 v3_;
  123. const T4 v4_;
  124. };
  125. template <typename T1, typename T2, typename T3, typename T4, typename T5>
  126. class ValueArray5 {
  127. public:
  128. ValueArray5(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5) : v1_(v1), v2_(v2), v3_(v3),
  129. v4_(v4), v5_(v5) {}
  130. template <typename T>
  131. operator ParamGenerator<T>() const {
  132. const T array[] = {v1_, v2_, v3_, v4_, v5_};
  133. return ValuesIn(array);
  134. }
  135. private:
  136. // No implementation - assignment is unsupported.
  137. void operator=(const ValueArray5& other);
  138. const T1 v1_;
  139. const T2 v2_;
  140. const T3 v3_;
  141. const T4 v4_;
  142. const T5 v5_;
  143. };
  144. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  145. typename T6>
  146. class ValueArray6 {
  147. public:
  148. ValueArray6(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6) : v1_(v1), v2_(v2),
  149. v3_(v3), v4_(v4), v5_(v5), v6_(v6) {}
  150. template <typename T>
  151. operator ParamGenerator<T>() const {
  152. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_};
  153. return ValuesIn(array);
  154. }
  155. private:
  156. // No implementation - assignment is unsupported.
  157. void operator=(const ValueArray6& other);
  158. const T1 v1_;
  159. const T2 v2_;
  160. const T3 v3_;
  161. const T4 v4_;
  162. const T5 v5_;
  163. const T6 v6_;
  164. };
  165. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  166. typename T6, typename T7>
  167. class ValueArray7 {
  168. public:
  169. ValueArray7(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7) : v1_(v1),
  170. v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7) {}
  171. template <typename T>
  172. operator ParamGenerator<T>() const {
  173. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_};
  174. return ValuesIn(array);
  175. }
  176. private:
  177. // No implementation - assignment is unsupported.
  178. void operator=(const ValueArray7& other);
  179. const T1 v1_;
  180. const T2 v2_;
  181. const T3 v3_;
  182. const T4 v4_;
  183. const T5 v5_;
  184. const T6 v6_;
  185. const T7 v7_;
  186. };
  187. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  188. typename T6, typename T7, typename T8>
  189. class ValueArray8 {
  190. public:
  191. ValueArray8(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7,
  192. T8 v8) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7),
  193. v8_(v8) {}
  194. template <typename T>
  195. operator ParamGenerator<T>() const {
  196. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_};
  197. return ValuesIn(array);
  198. }
  199. private:
  200. // No implementation - assignment is unsupported.
  201. void operator=(const ValueArray8& other);
  202. const T1 v1_;
  203. const T2 v2_;
  204. const T3 v3_;
  205. const T4 v4_;
  206. const T5 v5_;
  207. const T6 v6_;
  208. const T7 v7_;
  209. const T8 v8_;
  210. };
  211. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  212. typename T6, typename T7, typename T8, typename T9>
  213. class ValueArray9 {
  214. public:
  215. ValueArray9(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8,
  216. T9 v9) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7),
  217. v8_(v8), v9_(v9) {}
  218. template <typename T>
  219. operator ParamGenerator<T>() const {
  220. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_};
  221. return ValuesIn(array);
  222. }
  223. private:
  224. // No implementation - assignment is unsupported.
  225. void operator=(const ValueArray9& other);
  226. const T1 v1_;
  227. const T2 v2_;
  228. const T3 v3_;
  229. const T4 v4_;
  230. const T5 v5_;
  231. const T6 v6_;
  232. const T7 v7_;
  233. const T8 v8_;
  234. const T9 v9_;
  235. };
  236. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  237. typename T6, typename T7, typename T8, typename T9, typename T10>
  238. class ValueArray10 {
  239. public:
  240. ValueArray10(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  241. T10 v10) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7),
  242. v8_(v8), v9_(v9), v10_(v10) {}
  243. template <typename T>
  244. operator ParamGenerator<T>() const {
  245. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_};
  246. return ValuesIn(array);
  247. }
  248. private:
  249. // No implementation - assignment is unsupported.
  250. void operator=(const ValueArray10& other);
  251. const T1 v1_;
  252. const T2 v2_;
  253. const T3 v3_;
  254. const T4 v4_;
  255. const T5 v5_;
  256. const T6 v6_;
  257. const T7 v7_;
  258. const T8 v8_;
  259. const T9 v9_;
  260. const T10 v10_;
  261. };
  262. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  263. typename T6, typename T7, typename T8, typename T9, typename T10,
  264. typename T11>
  265. class ValueArray11 {
  266. public:
  267. ValueArray11(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  268. T10 v10, T11 v11) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6),
  269. v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11) {}
  270. template <typename T>
  271. operator ParamGenerator<T>() const {
  272. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_};
  273. return ValuesIn(array);
  274. }
  275. private:
  276. // No implementation - assignment is unsupported.
  277. void operator=(const ValueArray11& other);
  278. const T1 v1_;
  279. const T2 v2_;
  280. const T3 v3_;
  281. const T4 v4_;
  282. const T5 v5_;
  283. const T6 v6_;
  284. const T7 v7_;
  285. const T8 v8_;
  286. const T9 v9_;
  287. const T10 v10_;
  288. const T11 v11_;
  289. };
  290. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  291. typename T6, typename T7, typename T8, typename T9, typename T10,
  292. typename T11, typename T12>
  293. class ValueArray12 {
  294. public:
  295. ValueArray12(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  296. T10 v10, T11 v11, T12 v12) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5),
  297. v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12) {}
  298. template <typename T>
  299. operator ParamGenerator<T>() const {
  300. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  301. v12_};
  302. return ValuesIn(array);
  303. }
  304. private:
  305. // No implementation - assignment is unsupported.
  306. void operator=(const ValueArray12& other);
  307. const T1 v1_;
  308. const T2 v2_;
  309. const T3 v3_;
  310. const T4 v4_;
  311. const T5 v5_;
  312. const T6 v6_;
  313. const T7 v7_;
  314. const T8 v8_;
  315. const T9 v9_;
  316. const T10 v10_;
  317. const T11 v11_;
  318. const T12 v12_;
  319. };
  320. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  321. typename T6, typename T7, typename T8, typename T9, typename T10,
  322. typename T11, typename T12, typename T13>
  323. class ValueArray13 {
  324. public:
  325. ValueArray13(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  326. T10 v10, T11 v11, T12 v12, T13 v13) : v1_(v1), v2_(v2), v3_(v3), v4_(v4),
  327. v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11),
  328. v12_(v12), v13_(v13) {}
  329. template <typename T>
  330. operator ParamGenerator<T>() const {
  331. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  332. v12_, v13_};
  333. return ValuesIn(array);
  334. }
  335. private:
  336. // No implementation - assignment is unsupported.
  337. void operator=(const ValueArray13& other);
  338. const T1 v1_;
  339. const T2 v2_;
  340. const T3 v3_;
  341. const T4 v4_;
  342. const T5 v5_;
  343. const T6 v6_;
  344. const T7 v7_;
  345. const T8 v8_;
  346. const T9 v9_;
  347. const T10 v10_;
  348. const T11 v11_;
  349. const T12 v12_;
  350. const T13 v13_;
  351. };
  352. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  353. typename T6, typename T7, typename T8, typename T9, typename T10,
  354. typename T11, typename T12, typename T13, typename T14>
  355. class ValueArray14 {
  356. public:
  357. ValueArray14(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  358. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14) : v1_(v1), v2_(v2), v3_(v3),
  359. v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10),
  360. v11_(v11), v12_(v12), v13_(v13), v14_(v14) {}
  361. template <typename T>
  362. operator ParamGenerator<T>() const {
  363. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  364. v12_, v13_, v14_};
  365. return ValuesIn(array);
  366. }
  367. private:
  368. // No implementation - assignment is unsupported.
  369. void operator=(const ValueArray14& other);
  370. const T1 v1_;
  371. const T2 v2_;
  372. const T3 v3_;
  373. const T4 v4_;
  374. const T5 v5_;
  375. const T6 v6_;
  376. const T7 v7_;
  377. const T8 v8_;
  378. const T9 v9_;
  379. const T10 v10_;
  380. const T11 v11_;
  381. const T12 v12_;
  382. const T13 v13_;
  383. const T14 v14_;
  384. };
  385. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  386. typename T6, typename T7, typename T8, typename T9, typename T10,
  387. typename T11, typename T12, typename T13, typename T14, typename T15>
  388. class ValueArray15 {
  389. public:
  390. ValueArray15(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  391. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15) : v1_(v1), v2_(v2),
  392. v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10),
  393. v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15) {}
  394. template <typename T>
  395. operator ParamGenerator<T>() const {
  396. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  397. v12_, v13_, v14_, v15_};
  398. return ValuesIn(array);
  399. }
  400. private:
  401. // No implementation - assignment is unsupported.
  402. void operator=(const ValueArray15& other);
  403. const T1 v1_;
  404. const T2 v2_;
  405. const T3 v3_;
  406. const T4 v4_;
  407. const T5 v5_;
  408. const T6 v6_;
  409. const T7 v7_;
  410. const T8 v8_;
  411. const T9 v9_;
  412. const T10 v10_;
  413. const T11 v11_;
  414. const T12 v12_;
  415. const T13 v13_;
  416. const T14 v14_;
  417. const T15 v15_;
  418. };
  419. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  420. typename T6, typename T7, typename T8, typename T9, typename T10,
  421. typename T11, typename T12, typename T13, typename T14, typename T15,
  422. typename T16>
  423. class ValueArray16 {
  424. public:
  425. ValueArray16(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  426. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16) : v1_(v1),
  427. v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9),
  428. v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15),
  429. v16_(v16) {}
  430. template <typename T>
  431. operator ParamGenerator<T>() const {
  432. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  433. v12_, v13_, v14_, v15_, v16_};
  434. return ValuesIn(array);
  435. }
  436. private:
  437. // No implementation - assignment is unsupported.
  438. void operator=(const ValueArray16& other);
  439. const T1 v1_;
  440. const T2 v2_;
  441. const T3 v3_;
  442. const T4 v4_;
  443. const T5 v5_;
  444. const T6 v6_;
  445. const T7 v7_;
  446. const T8 v8_;
  447. const T9 v9_;
  448. const T10 v10_;
  449. const T11 v11_;
  450. const T12 v12_;
  451. const T13 v13_;
  452. const T14 v14_;
  453. const T15 v15_;
  454. const T16 v16_;
  455. };
  456. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  457. typename T6, typename T7, typename T8, typename T9, typename T10,
  458. typename T11, typename T12, typename T13, typename T14, typename T15,
  459. typename T16, typename T17>
  460. class ValueArray17 {
  461. public:
  462. ValueArray17(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  463. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16,
  464. T17 v17) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7),
  465. v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14),
  466. v15_(v15), v16_(v16), v17_(v17) {}
  467. template <typename T>
  468. operator ParamGenerator<T>() const {
  469. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  470. v12_, v13_, v14_, v15_, v16_, v17_};
  471. return ValuesIn(array);
  472. }
  473. private:
  474. // No implementation - assignment is unsupported.
  475. void operator=(const ValueArray17& other);
  476. const T1 v1_;
  477. const T2 v2_;
  478. const T3 v3_;
  479. const T4 v4_;
  480. const T5 v5_;
  481. const T6 v6_;
  482. const T7 v7_;
  483. const T8 v8_;
  484. const T9 v9_;
  485. const T10 v10_;
  486. const T11 v11_;
  487. const T12 v12_;
  488. const T13 v13_;
  489. const T14 v14_;
  490. const T15 v15_;
  491. const T16 v16_;
  492. const T17 v17_;
  493. };
  494. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  495. typename T6, typename T7, typename T8, typename T9, typename T10,
  496. typename T11, typename T12, typename T13, typename T14, typename T15,
  497. typename T16, typename T17, typename T18>
  498. class ValueArray18 {
  499. public:
  500. ValueArray18(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  501. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  502. T18 v18) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7),
  503. v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14),
  504. v15_(v15), v16_(v16), v17_(v17), v18_(v18) {}
  505. template <typename T>
  506. operator ParamGenerator<T>() const {
  507. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  508. v12_, v13_, v14_, v15_, v16_, v17_, v18_};
  509. return ValuesIn(array);
  510. }
  511. private:
  512. // No implementation - assignment is unsupported.
  513. void operator=(const ValueArray18& other);
  514. const T1 v1_;
  515. const T2 v2_;
  516. const T3 v3_;
  517. const T4 v4_;
  518. const T5 v5_;
  519. const T6 v6_;
  520. const T7 v7_;
  521. const T8 v8_;
  522. const T9 v9_;
  523. const T10 v10_;
  524. const T11 v11_;
  525. const T12 v12_;
  526. const T13 v13_;
  527. const T14 v14_;
  528. const T15 v15_;
  529. const T16 v16_;
  530. const T17 v17_;
  531. const T18 v18_;
  532. };
  533. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  534. typename T6, typename T7, typename T8, typename T9, typename T10,
  535. typename T11, typename T12, typename T13, typename T14, typename T15,
  536. typename T16, typename T17, typename T18, typename T19>
  537. class ValueArray19 {
  538. public:
  539. ValueArray19(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  540. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  541. T18 v18, T19 v19) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6),
  542. v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13),
  543. v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19) {}
  544. template <typename T>
  545. operator ParamGenerator<T>() const {
  546. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  547. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_};
  548. return ValuesIn(array);
  549. }
  550. private:
  551. // No implementation - assignment is unsupported.
  552. void operator=(const ValueArray19& other);
  553. const T1 v1_;
  554. const T2 v2_;
  555. const T3 v3_;
  556. const T4 v4_;
  557. const T5 v5_;
  558. const T6 v6_;
  559. const T7 v7_;
  560. const T8 v8_;
  561. const T9 v9_;
  562. const T10 v10_;
  563. const T11 v11_;
  564. const T12 v12_;
  565. const T13 v13_;
  566. const T14 v14_;
  567. const T15 v15_;
  568. const T16 v16_;
  569. const T17 v17_;
  570. const T18 v18_;
  571. const T19 v19_;
  572. };
  573. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  574. typename T6, typename T7, typename T8, typename T9, typename T10,
  575. typename T11, typename T12, typename T13, typename T14, typename T15,
  576. typename T16, typename T17, typename T18, typename T19, typename T20>
  577. class ValueArray20 {
  578. public:
  579. ValueArray20(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  580. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  581. T18 v18, T19 v19, T20 v20) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5),
  582. v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12),
  583. v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18),
  584. v19_(v19), v20_(v20) {}
  585. template <typename T>
  586. operator ParamGenerator<T>() const {
  587. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  588. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_};
  589. return ValuesIn(array);
  590. }
  591. private:
  592. // No implementation - assignment is unsupported.
  593. void operator=(const ValueArray20& other);
  594. const T1 v1_;
  595. const T2 v2_;
  596. const T3 v3_;
  597. const T4 v4_;
  598. const T5 v5_;
  599. const T6 v6_;
  600. const T7 v7_;
  601. const T8 v8_;
  602. const T9 v9_;
  603. const T10 v10_;
  604. const T11 v11_;
  605. const T12 v12_;
  606. const T13 v13_;
  607. const T14 v14_;
  608. const T15 v15_;
  609. const T16 v16_;
  610. const T17 v17_;
  611. const T18 v18_;
  612. const T19 v19_;
  613. const T20 v20_;
  614. };
  615. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  616. typename T6, typename T7, typename T8, typename T9, typename T10,
  617. typename T11, typename T12, typename T13, typename T14, typename T15,
  618. typename T16, typename T17, typename T18, typename T19, typename T20,
  619. typename T21>
  620. class ValueArray21 {
  621. public:
  622. ValueArray21(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  623. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  624. T18 v18, T19 v19, T20 v20, T21 v21) : v1_(v1), v2_(v2), v3_(v3), v4_(v4),
  625. v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11),
  626. v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17),
  627. v18_(v18), v19_(v19), v20_(v20), v21_(v21) {}
  628. template <typename T>
  629. operator ParamGenerator<T>() const {
  630. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  631. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_};
  632. return ValuesIn(array);
  633. }
  634. private:
  635. // No implementation - assignment is unsupported.
  636. void operator=(const ValueArray21& other);
  637. const T1 v1_;
  638. const T2 v2_;
  639. const T3 v3_;
  640. const T4 v4_;
  641. const T5 v5_;
  642. const T6 v6_;
  643. const T7 v7_;
  644. const T8 v8_;
  645. const T9 v9_;
  646. const T10 v10_;
  647. const T11 v11_;
  648. const T12 v12_;
  649. const T13 v13_;
  650. const T14 v14_;
  651. const T15 v15_;
  652. const T16 v16_;
  653. const T17 v17_;
  654. const T18 v18_;
  655. const T19 v19_;
  656. const T20 v20_;
  657. const T21 v21_;
  658. };
  659. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  660. typename T6, typename T7, typename T8, typename T9, typename T10,
  661. typename T11, typename T12, typename T13, typename T14, typename T15,
  662. typename T16, typename T17, typename T18, typename T19, typename T20,
  663. typename T21, typename T22>
  664. class ValueArray22 {
  665. public:
  666. ValueArray22(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  667. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  668. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22) : v1_(v1), v2_(v2), v3_(v3),
  669. v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10),
  670. v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16),
  671. v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22) {}
  672. template <typename T>
  673. operator ParamGenerator<T>() const {
  674. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  675. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_};
  676. return ValuesIn(array);
  677. }
  678. private:
  679. // No implementation - assignment is unsupported.
  680. void operator=(const ValueArray22& other);
  681. const T1 v1_;
  682. const T2 v2_;
  683. const T3 v3_;
  684. const T4 v4_;
  685. const T5 v5_;
  686. const T6 v6_;
  687. const T7 v7_;
  688. const T8 v8_;
  689. const T9 v9_;
  690. const T10 v10_;
  691. const T11 v11_;
  692. const T12 v12_;
  693. const T13 v13_;
  694. const T14 v14_;
  695. const T15 v15_;
  696. const T16 v16_;
  697. const T17 v17_;
  698. const T18 v18_;
  699. const T19 v19_;
  700. const T20 v20_;
  701. const T21 v21_;
  702. const T22 v22_;
  703. };
  704. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  705. typename T6, typename T7, typename T8, typename T9, typename T10,
  706. typename T11, typename T12, typename T13, typename T14, typename T15,
  707. typename T16, typename T17, typename T18, typename T19, typename T20,
  708. typename T21, typename T22, typename T23>
  709. class ValueArray23 {
  710. public:
  711. ValueArray23(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  712. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  713. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23) : v1_(v1), v2_(v2),
  714. v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10),
  715. v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16),
  716. v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22),
  717. v23_(v23) {}
  718. template <typename T>
  719. operator ParamGenerator<T>() const {
  720. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  721. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_,
  722. v23_};
  723. return ValuesIn(array);
  724. }
  725. private:
  726. // No implementation - assignment is unsupported.
  727. void operator=(const ValueArray23& other);
  728. const T1 v1_;
  729. const T2 v2_;
  730. const T3 v3_;
  731. const T4 v4_;
  732. const T5 v5_;
  733. const T6 v6_;
  734. const T7 v7_;
  735. const T8 v8_;
  736. const T9 v9_;
  737. const T10 v10_;
  738. const T11 v11_;
  739. const T12 v12_;
  740. const T13 v13_;
  741. const T14 v14_;
  742. const T15 v15_;
  743. const T16 v16_;
  744. const T17 v17_;
  745. const T18 v18_;
  746. const T19 v19_;
  747. const T20 v20_;
  748. const T21 v21_;
  749. const T22 v22_;
  750. const T23 v23_;
  751. };
  752. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  753. typename T6, typename T7, typename T8, typename T9, typename T10,
  754. typename T11, typename T12, typename T13, typename T14, typename T15,
  755. typename T16, typename T17, typename T18, typename T19, typename T20,
  756. typename T21, typename T22, typename T23, typename T24>
  757. class ValueArray24 {
  758. public:
  759. ValueArray24(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  760. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  761. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24) : v1_(v1),
  762. v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9),
  763. v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15),
  764. v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21),
  765. v22_(v22), v23_(v23), v24_(v24) {}
  766. template <typename T>
  767. operator ParamGenerator<T>() const {
  768. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  769. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  770. v24_};
  771. return ValuesIn(array);
  772. }
  773. private:
  774. // No implementation - assignment is unsupported.
  775. void operator=(const ValueArray24& other);
  776. const T1 v1_;
  777. const T2 v2_;
  778. const T3 v3_;
  779. const T4 v4_;
  780. const T5 v5_;
  781. const T6 v6_;
  782. const T7 v7_;
  783. const T8 v8_;
  784. const T9 v9_;
  785. const T10 v10_;
  786. const T11 v11_;
  787. const T12 v12_;
  788. const T13 v13_;
  789. const T14 v14_;
  790. const T15 v15_;
  791. const T16 v16_;
  792. const T17 v17_;
  793. const T18 v18_;
  794. const T19 v19_;
  795. const T20 v20_;
  796. const T21 v21_;
  797. const T22 v22_;
  798. const T23 v23_;
  799. const T24 v24_;
  800. };
  801. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  802. typename T6, typename T7, typename T8, typename T9, typename T10,
  803. typename T11, typename T12, typename T13, typename T14, typename T15,
  804. typename T16, typename T17, typename T18, typename T19, typename T20,
  805. typename T21, typename T22, typename T23, typename T24, typename T25>
  806. class ValueArray25 {
  807. public:
  808. ValueArray25(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  809. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  810. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24,
  811. T25 v25) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7),
  812. v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14),
  813. v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20),
  814. v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25) {}
  815. template <typename T>
  816. operator ParamGenerator<T>() const {
  817. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  818. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  819. v24_, v25_};
  820. return ValuesIn(array);
  821. }
  822. private:
  823. // No implementation - assignment is unsupported.
  824. void operator=(const ValueArray25& other);
  825. const T1 v1_;
  826. const T2 v2_;
  827. const T3 v3_;
  828. const T4 v4_;
  829. const T5 v5_;
  830. const T6 v6_;
  831. const T7 v7_;
  832. const T8 v8_;
  833. const T9 v9_;
  834. const T10 v10_;
  835. const T11 v11_;
  836. const T12 v12_;
  837. const T13 v13_;
  838. const T14 v14_;
  839. const T15 v15_;
  840. const T16 v16_;
  841. const T17 v17_;
  842. const T18 v18_;
  843. const T19 v19_;
  844. const T20 v20_;
  845. const T21 v21_;
  846. const T22 v22_;
  847. const T23 v23_;
  848. const T24 v24_;
  849. const T25 v25_;
  850. };
  851. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  852. typename T6, typename T7, typename T8, typename T9, typename T10,
  853. typename T11, typename T12, typename T13, typename T14, typename T15,
  854. typename T16, typename T17, typename T18, typename T19, typename T20,
  855. typename T21, typename T22, typename T23, typename T24, typename T25,
  856. typename T26>
  857. class ValueArray26 {
  858. public:
  859. ValueArray26(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  860. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  861. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  862. T26 v26) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7),
  863. v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14),
  864. v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20),
  865. v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26) {}
  866. template <typename T>
  867. operator ParamGenerator<T>() const {
  868. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  869. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  870. v24_, v25_, v26_};
  871. return ValuesIn(array);
  872. }
  873. private:
  874. // No implementation - assignment is unsupported.
  875. void operator=(const ValueArray26& other);
  876. const T1 v1_;
  877. const T2 v2_;
  878. const T3 v3_;
  879. const T4 v4_;
  880. const T5 v5_;
  881. const T6 v6_;
  882. const T7 v7_;
  883. const T8 v8_;
  884. const T9 v9_;
  885. const T10 v10_;
  886. const T11 v11_;
  887. const T12 v12_;
  888. const T13 v13_;
  889. const T14 v14_;
  890. const T15 v15_;
  891. const T16 v16_;
  892. const T17 v17_;
  893. const T18 v18_;
  894. const T19 v19_;
  895. const T20 v20_;
  896. const T21 v21_;
  897. const T22 v22_;
  898. const T23 v23_;
  899. const T24 v24_;
  900. const T25 v25_;
  901. const T26 v26_;
  902. };
  903. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  904. typename T6, typename T7, typename T8, typename T9, typename T10,
  905. typename T11, typename T12, typename T13, typename T14, typename T15,
  906. typename T16, typename T17, typename T18, typename T19, typename T20,
  907. typename T21, typename T22, typename T23, typename T24, typename T25,
  908. typename T26, typename T27>
  909. class ValueArray27 {
  910. public:
  911. ValueArray27(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  912. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  913. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  914. T26 v26, T27 v27) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6),
  915. v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13),
  916. v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19),
  917. v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25),
  918. v26_(v26), v27_(v27) {}
  919. template <typename T>
  920. operator ParamGenerator<T>() const {
  921. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  922. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  923. v24_, v25_, v26_, v27_};
  924. return ValuesIn(array);
  925. }
  926. private:
  927. // No implementation - assignment is unsupported.
  928. void operator=(const ValueArray27& other);
  929. const T1 v1_;
  930. const T2 v2_;
  931. const T3 v3_;
  932. const T4 v4_;
  933. const T5 v5_;
  934. const T6 v6_;
  935. const T7 v7_;
  936. const T8 v8_;
  937. const T9 v9_;
  938. const T10 v10_;
  939. const T11 v11_;
  940. const T12 v12_;
  941. const T13 v13_;
  942. const T14 v14_;
  943. const T15 v15_;
  944. const T16 v16_;
  945. const T17 v17_;
  946. const T18 v18_;
  947. const T19 v19_;
  948. const T20 v20_;
  949. const T21 v21_;
  950. const T22 v22_;
  951. const T23 v23_;
  952. const T24 v24_;
  953. const T25 v25_;
  954. const T26 v26_;
  955. const T27 v27_;
  956. };
  957. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  958. typename T6, typename T7, typename T8, typename T9, typename T10,
  959. typename T11, typename T12, typename T13, typename T14, typename T15,
  960. typename T16, typename T17, typename T18, typename T19, typename T20,
  961. typename T21, typename T22, typename T23, typename T24, typename T25,
  962. typename T26, typename T27, typename T28>
  963. class ValueArray28 {
  964. public:
  965. ValueArray28(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  966. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  967. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  968. T26 v26, T27 v27, T28 v28) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5),
  969. v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12),
  970. v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18),
  971. v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24),
  972. v25_(v25), v26_(v26), v27_(v27), v28_(v28) {}
  973. template <typename T>
  974. operator ParamGenerator<T>() const {
  975. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  976. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  977. v24_, v25_, v26_, v27_, v28_};
  978. return ValuesIn(array);
  979. }
  980. private:
  981. // No implementation - assignment is unsupported.
  982. void operator=(const ValueArray28& other);
  983. const T1 v1_;
  984. const T2 v2_;
  985. const T3 v3_;
  986. const T4 v4_;
  987. const T5 v5_;
  988. const T6 v6_;
  989. const T7 v7_;
  990. const T8 v8_;
  991. const T9 v9_;
  992. const T10 v10_;
  993. const T11 v11_;
  994. const T12 v12_;
  995. const T13 v13_;
  996. const T14 v14_;
  997. const T15 v15_;
  998. const T16 v16_;
  999. const T17 v17_;
  1000. const T18 v18_;
  1001. const T19 v19_;
  1002. const T20 v20_;
  1003. const T21 v21_;
  1004. const T22 v22_;
  1005. const T23 v23_;
  1006. const T24 v24_;
  1007. const T25 v25_;
  1008. const T26 v26_;
  1009. const T27 v27_;
  1010. const T28 v28_;
  1011. };
  1012. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1013. typename T6, typename T7, typename T8, typename T9, typename T10,
  1014. typename T11, typename T12, typename T13, typename T14, typename T15,
  1015. typename T16, typename T17, typename T18, typename T19, typename T20,
  1016. typename T21, typename T22, typename T23, typename T24, typename T25,
  1017. typename T26, typename T27, typename T28, typename T29>
  1018. class ValueArray29 {
  1019. public:
  1020. ValueArray29(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1021. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1022. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1023. T26 v26, T27 v27, T28 v28, T29 v29) : v1_(v1), v2_(v2), v3_(v3), v4_(v4),
  1024. v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11),
  1025. v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17),
  1026. v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23),
  1027. v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29) {}
  1028. template <typename T>
  1029. operator ParamGenerator<T>() const {
  1030. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1031. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1032. v24_, v25_, v26_, v27_, v28_, v29_};
  1033. return ValuesIn(array);
  1034. }
  1035. private:
  1036. // No implementation - assignment is unsupported.
  1037. void operator=(const ValueArray29& other);
  1038. const T1 v1_;
  1039. const T2 v2_;
  1040. const T3 v3_;
  1041. const T4 v4_;
  1042. const T5 v5_;
  1043. const T6 v6_;
  1044. const T7 v7_;
  1045. const T8 v8_;
  1046. const T9 v9_;
  1047. const T10 v10_;
  1048. const T11 v11_;
  1049. const T12 v12_;
  1050. const T13 v13_;
  1051. const T14 v14_;
  1052. const T15 v15_;
  1053. const T16 v16_;
  1054. const T17 v17_;
  1055. const T18 v18_;
  1056. const T19 v19_;
  1057. const T20 v20_;
  1058. const T21 v21_;
  1059. const T22 v22_;
  1060. const T23 v23_;
  1061. const T24 v24_;
  1062. const T25 v25_;
  1063. const T26 v26_;
  1064. const T27 v27_;
  1065. const T28 v28_;
  1066. const T29 v29_;
  1067. };
  1068. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1069. typename T6, typename T7, typename T8, typename T9, typename T10,
  1070. typename T11, typename T12, typename T13, typename T14, typename T15,
  1071. typename T16, typename T17, typename T18, typename T19, typename T20,
  1072. typename T21, typename T22, typename T23, typename T24, typename T25,
  1073. typename T26, typename T27, typename T28, typename T29, typename T30>
  1074. class ValueArray30 {
  1075. public:
  1076. ValueArray30(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1077. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1078. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1079. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30) : v1_(v1), v2_(v2), v3_(v3),
  1080. v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10),
  1081. v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16),
  1082. v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22),
  1083. v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28),
  1084. v29_(v29), v30_(v30) {}
  1085. template <typename T>
  1086. operator ParamGenerator<T>() const {
  1087. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1088. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1089. v24_, v25_, v26_, v27_, v28_, v29_, v30_};
  1090. return ValuesIn(array);
  1091. }
  1092. private:
  1093. // No implementation - assignment is unsupported.
  1094. void operator=(const ValueArray30& other);
  1095. const T1 v1_;
  1096. const T2 v2_;
  1097. const T3 v3_;
  1098. const T4 v4_;
  1099. const T5 v5_;
  1100. const T6 v6_;
  1101. const T7 v7_;
  1102. const T8 v8_;
  1103. const T9 v9_;
  1104. const T10 v10_;
  1105. const T11 v11_;
  1106. const T12 v12_;
  1107. const T13 v13_;
  1108. const T14 v14_;
  1109. const T15 v15_;
  1110. const T16 v16_;
  1111. const T17 v17_;
  1112. const T18 v18_;
  1113. const T19 v19_;
  1114. const T20 v20_;
  1115. const T21 v21_;
  1116. const T22 v22_;
  1117. const T23 v23_;
  1118. const T24 v24_;
  1119. const T25 v25_;
  1120. const T26 v26_;
  1121. const T27 v27_;
  1122. const T28 v28_;
  1123. const T29 v29_;
  1124. const T30 v30_;
  1125. };
  1126. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1127. typename T6, typename T7, typename T8, typename T9, typename T10,
  1128. typename T11, typename T12, typename T13, typename T14, typename T15,
  1129. typename T16, typename T17, typename T18, typename T19, typename T20,
  1130. typename T21, typename T22, typename T23, typename T24, typename T25,
  1131. typename T26, typename T27, typename T28, typename T29, typename T30,
  1132. typename T31>
  1133. class ValueArray31 {
  1134. public:
  1135. ValueArray31(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1136. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1137. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1138. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31) : v1_(v1), v2_(v2),
  1139. v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10),
  1140. v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16),
  1141. v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22),
  1142. v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28),
  1143. v29_(v29), v30_(v30), v31_(v31) {}
  1144. template <typename T>
  1145. operator ParamGenerator<T>() const {
  1146. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1147. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1148. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_};
  1149. return ValuesIn(array);
  1150. }
  1151. private:
  1152. // No implementation - assignment is unsupported.
  1153. void operator=(const ValueArray31& other);
  1154. const T1 v1_;
  1155. const T2 v2_;
  1156. const T3 v3_;
  1157. const T4 v4_;
  1158. const T5 v5_;
  1159. const T6 v6_;
  1160. const T7 v7_;
  1161. const T8 v8_;
  1162. const T9 v9_;
  1163. const T10 v10_;
  1164. const T11 v11_;
  1165. const T12 v12_;
  1166. const T13 v13_;
  1167. const T14 v14_;
  1168. const T15 v15_;
  1169. const T16 v16_;
  1170. const T17 v17_;
  1171. const T18 v18_;
  1172. const T19 v19_;
  1173. const T20 v20_;
  1174. const T21 v21_;
  1175. const T22 v22_;
  1176. const T23 v23_;
  1177. const T24 v24_;
  1178. const T25 v25_;
  1179. const T26 v26_;
  1180. const T27 v27_;
  1181. const T28 v28_;
  1182. const T29 v29_;
  1183. const T30 v30_;
  1184. const T31 v31_;
  1185. };
  1186. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1187. typename T6, typename T7, typename T8, typename T9, typename T10,
  1188. typename T11, typename T12, typename T13, typename T14, typename T15,
  1189. typename T16, typename T17, typename T18, typename T19, typename T20,
  1190. typename T21, typename T22, typename T23, typename T24, typename T25,
  1191. typename T26, typename T27, typename T28, typename T29, typename T30,
  1192. typename T31, typename T32>
  1193. class ValueArray32 {
  1194. public:
  1195. ValueArray32(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1196. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1197. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1198. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32) : v1_(v1),
  1199. v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9),
  1200. v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15),
  1201. v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21),
  1202. v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27),
  1203. v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32) {}
  1204. template <typename T>
  1205. operator ParamGenerator<T>() const {
  1206. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1207. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1208. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_};
  1209. return ValuesIn(array);
  1210. }
  1211. private:
  1212. // No implementation - assignment is unsupported.
  1213. void operator=(const ValueArray32& other);
  1214. const T1 v1_;
  1215. const T2 v2_;
  1216. const T3 v3_;
  1217. const T4 v4_;
  1218. const T5 v5_;
  1219. const T6 v6_;
  1220. const T7 v7_;
  1221. const T8 v8_;
  1222. const T9 v9_;
  1223. const T10 v10_;
  1224. const T11 v11_;
  1225. const T12 v12_;
  1226. const T13 v13_;
  1227. const T14 v14_;
  1228. const T15 v15_;
  1229. const T16 v16_;
  1230. const T17 v17_;
  1231. const T18 v18_;
  1232. const T19 v19_;
  1233. const T20 v20_;
  1234. const T21 v21_;
  1235. const T22 v22_;
  1236. const T23 v23_;
  1237. const T24 v24_;
  1238. const T25 v25_;
  1239. const T26 v26_;
  1240. const T27 v27_;
  1241. const T28 v28_;
  1242. const T29 v29_;
  1243. const T30 v30_;
  1244. const T31 v31_;
  1245. const T32 v32_;
  1246. };
  1247. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1248. typename T6, typename T7, typename T8, typename T9, typename T10,
  1249. typename T11, typename T12, typename T13, typename T14, typename T15,
  1250. typename T16, typename T17, typename T18, typename T19, typename T20,
  1251. typename T21, typename T22, typename T23, typename T24, typename T25,
  1252. typename T26, typename T27, typename T28, typename T29, typename T30,
  1253. typename T31, typename T32, typename T33>
  1254. class ValueArray33 {
  1255. public:
  1256. ValueArray33(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1257. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1258. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1259. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32,
  1260. T33 v33) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7),
  1261. v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14),
  1262. v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20),
  1263. v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26),
  1264. v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32),
  1265. v33_(v33) {}
  1266. template <typename T>
  1267. operator ParamGenerator<T>() const {
  1268. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1269. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1270. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_};
  1271. return ValuesIn(array);
  1272. }
  1273. private:
  1274. // No implementation - assignment is unsupported.
  1275. void operator=(const ValueArray33& other);
  1276. const T1 v1_;
  1277. const T2 v2_;
  1278. const T3 v3_;
  1279. const T4 v4_;
  1280. const T5 v5_;
  1281. const T6 v6_;
  1282. const T7 v7_;
  1283. const T8 v8_;
  1284. const T9 v9_;
  1285. const T10 v10_;
  1286. const T11 v11_;
  1287. const T12 v12_;
  1288. const T13 v13_;
  1289. const T14 v14_;
  1290. const T15 v15_;
  1291. const T16 v16_;
  1292. const T17 v17_;
  1293. const T18 v18_;
  1294. const T19 v19_;
  1295. const T20 v20_;
  1296. const T21 v21_;
  1297. const T22 v22_;
  1298. const T23 v23_;
  1299. const T24 v24_;
  1300. const T25 v25_;
  1301. const T26 v26_;
  1302. const T27 v27_;
  1303. const T28 v28_;
  1304. const T29 v29_;
  1305. const T30 v30_;
  1306. const T31 v31_;
  1307. const T32 v32_;
  1308. const T33 v33_;
  1309. };
  1310. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1311. typename T6, typename T7, typename T8, typename T9, typename T10,
  1312. typename T11, typename T12, typename T13, typename T14, typename T15,
  1313. typename T16, typename T17, typename T18, typename T19, typename T20,
  1314. typename T21, typename T22, typename T23, typename T24, typename T25,
  1315. typename T26, typename T27, typename T28, typename T29, typename T30,
  1316. typename T31, typename T32, typename T33, typename T34>
  1317. class ValueArray34 {
  1318. public:
  1319. ValueArray34(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1320. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1321. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1322. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  1323. T34 v34) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7),
  1324. v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14),
  1325. v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20),
  1326. v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26),
  1327. v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32),
  1328. v33_(v33), v34_(v34) {}
  1329. template <typename T>
  1330. operator ParamGenerator<T>() const {
  1331. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1332. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1333. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_};
  1334. return ValuesIn(array);
  1335. }
  1336. private:
  1337. // No implementation - assignment is unsupported.
  1338. void operator=(const ValueArray34& other);
  1339. const T1 v1_;
  1340. const T2 v2_;
  1341. const T3 v3_;
  1342. const T4 v4_;
  1343. const T5 v5_;
  1344. const T6 v6_;
  1345. const T7 v7_;
  1346. const T8 v8_;
  1347. const T9 v9_;
  1348. const T10 v10_;
  1349. const T11 v11_;
  1350. const T12 v12_;
  1351. const T13 v13_;
  1352. const T14 v14_;
  1353. const T15 v15_;
  1354. const T16 v16_;
  1355. const T17 v17_;
  1356. const T18 v18_;
  1357. const T19 v19_;
  1358. const T20 v20_;
  1359. const T21 v21_;
  1360. const T22 v22_;
  1361. const T23 v23_;
  1362. const T24 v24_;
  1363. const T25 v25_;
  1364. const T26 v26_;
  1365. const T27 v27_;
  1366. const T28 v28_;
  1367. const T29 v29_;
  1368. const T30 v30_;
  1369. const T31 v31_;
  1370. const T32 v32_;
  1371. const T33 v33_;
  1372. const T34 v34_;
  1373. };
  1374. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1375. typename T6, typename T7, typename T8, typename T9, typename T10,
  1376. typename T11, typename T12, typename T13, typename T14, typename T15,
  1377. typename T16, typename T17, typename T18, typename T19, typename T20,
  1378. typename T21, typename T22, typename T23, typename T24, typename T25,
  1379. typename T26, typename T27, typename T28, typename T29, typename T30,
  1380. typename T31, typename T32, typename T33, typename T34, typename T35>
  1381. class ValueArray35 {
  1382. public:
  1383. ValueArray35(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1384. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1385. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1386. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  1387. T34 v34, T35 v35) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6),
  1388. v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13),
  1389. v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19),
  1390. v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25),
  1391. v26_(v26), v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31),
  1392. v32_(v32), v33_(v33), v34_(v34), v35_(v35) {}
  1393. template <typename T>
  1394. operator ParamGenerator<T>() const {
  1395. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1396. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1397. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_,
  1398. v35_};
  1399. return ValuesIn(array);
  1400. }
  1401. private:
  1402. // No implementation - assignment is unsupported.
  1403. void operator=(const ValueArray35& other);
  1404. const T1 v1_;
  1405. const T2 v2_;
  1406. const T3 v3_;
  1407. const T4 v4_;
  1408. const T5 v5_;
  1409. const T6 v6_;
  1410. const T7 v7_;
  1411. const T8 v8_;
  1412. const T9 v9_;
  1413. const T10 v10_;
  1414. const T11 v11_;
  1415. const T12 v12_;
  1416. const T13 v13_;
  1417. const T14 v14_;
  1418. const T15 v15_;
  1419. const T16 v16_;
  1420. const T17 v17_;
  1421. const T18 v18_;
  1422. const T19 v19_;
  1423. const T20 v20_;
  1424. const T21 v21_;
  1425. const T22 v22_;
  1426. const T23 v23_;
  1427. const T24 v24_;
  1428. const T25 v25_;
  1429. const T26 v26_;
  1430. const T27 v27_;
  1431. const T28 v28_;
  1432. const T29 v29_;
  1433. const T30 v30_;
  1434. const T31 v31_;
  1435. const T32 v32_;
  1436. const T33 v33_;
  1437. const T34 v34_;
  1438. const T35 v35_;
  1439. };
  1440. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1441. typename T6, typename T7, typename T8, typename T9, typename T10,
  1442. typename T11, typename T12, typename T13, typename T14, typename T15,
  1443. typename T16, typename T17, typename T18, typename T19, typename T20,
  1444. typename T21, typename T22, typename T23, typename T24, typename T25,
  1445. typename T26, typename T27, typename T28, typename T29, typename T30,
  1446. typename T31, typename T32, typename T33, typename T34, typename T35,
  1447. typename T36>
  1448. class ValueArray36 {
  1449. public:
  1450. ValueArray36(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1451. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1452. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1453. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  1454. T34 v34, T35 v35, T36 v36) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5),
  1455. v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12),
  1456. v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18),
  1457. v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24),
  1458. v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29), v30_(v30),
  1459. v31_(v31), v32_(v32), v33_(v33), v34_(v34), v35_(v35), v36_(v36) {}
  1460. template <typename T>
  1461. operator ParamGenerator<T>() const {
  1462. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1463. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1464. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  1465. v36_};
  1466. return ValuesIn(array);
  1467. }
  1468. private:
  1469. // No implementation - assignment is unsupported.
  1470. void operator=(const ValueArray36& other);
  1471. const T1 v1_;
  1472. const T2 v2_;
  1473. const T3 v3_;
  1474. const T4 v4_;
  1475. const T5 v5_;
  1476. const T6 v6_;
  1477. const T7 v7_;
  1478. const T8 v8_;
  1479. const T9 v9_;
  1480. const T10 v10_;
  1481. const T11 v11_;
  1482. const T12 v12_;
  1483. const T13 v13_;
  1484. const T14 v14_;
  1485. const T15 v15_;
  1486. const T16 v16_;
  1487. const T17 v17_;
  1488. const T18 v18_;
  1489. const T19 v19_;
  1490. const T20 v20_;
  1491. const T21 v21_;
  1492. const T22 v22_;
  1493. const T23 v23_;
  1494. const T24 v24_;
  1495. const T25 v25_;
  1496. const T26 v26_;
  1497. const T27 v27_;
  1498. const T28 v28_;
  1499. const T29 v29_;
  1500. const T30 v30_;
  1501. const T31 v31_;
  1502. const T32 v32_;
  1503. const T33 v33_;
  1504. const T34 v34_;
  1505. const T35 v35_;
  1506. const T36 v36_;
  1507. };
  1508. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1509. typename T6, typename T7, typename T8, typename T9, typename T10,
  1510. typename T11, typename T12, typename T13, typename T14, typename T15,
  1511. typename T16, typename T17, typename T18, typename T19, typename T20,
  1512. typename T21, typename T22, typename T23, typename T24, typename T25,
  1513. typename T26, typename T27, typename T28, typename T29, typename T30,
  1514. typename T31, typename T32, typename T33, typename T34, typename T35,
  1515. typename T36, typename T37>
  1516. class ValueArray37 {
  1517. public:
  1518. ValueArray37(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1519. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1520. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1521. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  1522. T34 v34, T35 v35, T36 v36, T37 v37) : v1_(v1), v2_(v2), v3_(v3), v4_(v4),
  1523. v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11),
  1524. v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17),
  1525. v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23),
  1526. v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29),
  1527. v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34), v35_(v35),
  1528. v36_(v36), v37_(v37) {}
  1529. template <typename T>
  1530. operator ParamGenerator<T>() const {
  1531. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1532. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1533. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  1534. v36_, v37_};
  1535. return ValuesIn(array);
  1536. }
  1537. private:
  1538. // No implementation - assignment is unsupported.
  1539. void operator=(const ValueArray37& other);
  1540. const T1 v1_;
  1541. const T2 v2_;
  1542. const T3 v3_;
  1543. const T4 v4_;
  1544. const T5 v5_;
  1545. const T6 v6_;
  1546. const T7 v7_;
  1547. const T8 v8_;
  1548. const T9 v9_;
  1549. const T10 v10_;
  1550. const T11 v11_;
  1551. const T12 v12_;
  1552. const T13 v13_;
  1553. const T14 v14_;
  1554. const T15 v15_;
  1555. const T16 v16_;
  1556. const T17 v17_;
  1557. const T18 v18_;
  1558. const T19 v19_;
  1559. const T20 v20_;
  1560. const T21 v21_;
  1561. const T22 v22_;
  1562. const T23 v23_;
  1563. const T24 v24_;
  1564. const T25 v25_;
  1565. const T26 v26_;
  1566. const T27 v27_;
  1567. const T28 v28_;
  1568. const T29 v29_;
  1569. const T30 v30_;
  1570. const T31 v31_;
  1571. const T32 v32_;
  1572. const T33 v33_;
  1573. const T34 v34_;
  1574. const T35 v35_;
  1575. const T36 v36_;
  1576. const T37 v37_;
  1577. };
  1578. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1579. typename T6, typename T7, typename T8, typename T9, typename T10,
  1580. typename T11, typename T12, typename T13, typename T14, typename T15,
  1581. typename T16, typename T17, typename T18, typename T19, typename T20,
  1582. typename T21, typename T22, typename T23, typename T24, typename T25,
  1583. typename T26, typename T27, typename T28, typename T29, typename T30,
  1584. typename T31, typename T32, typename T33, typename T34, typename T35,
  1585. typename T36, typename T37, typename T38>
  1586. class ValueArray38 {
  1587. public:
  1588. ValueArray38(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1589. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1590. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1591. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  1592. T34 v34, T35 v35, T36 v36, T37 v37, T38 v38) : v1_(v1), v2_(v2), v3_(v3),
  1593. v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10),
  1594. v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16),
  1595. v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22),
  1596. v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28),
  1597. v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34),
  1598. v35_(v35), v36_(v36), v37_(v37), v38_(v38) {}
  1599. template <typename T>
  1600. operator ParamGenerator<T>() const {
  1601. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1602. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1603. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  1604. v36_, v37_, v38_};
  1605. return ValuesIn(array);
  1606. }
  1607. private:
  1608. // No implementation - assignment is unsupported.
  1609. void operator=(const ValueArray38& other);
  1610. const T1 v1_;
  1611. const T2 v2_;
  1612. const T3 v3_;
  1613. const T4 v4_;
  1614. const T5 v5_;
  1615. const T6 v6_;
  1616. const T7 v7_;
  1617. const T8 v8_;
  1618. const T9 v9_;
  1619. const T10 v10_;
  1620. const T11 v11_;
  1621. const T12 v12_;
  1622. const T13 v13_;
  1623. const T14 v14_;
  1624. const T15 v15_;
  1625. const T16 v16_;
  1626. const T17 v17_;
  1627. const T18 v18_;
  1628. const T19 v19_;
  1629. const T20 v20_;
  1630. const T21 v21_;
  1631. const T22 v22_;
  1632. const T23 v23_;
  1633. const T24 v24_;
  1634. const T25 v25_;
  1635. const T26 v26_;
  1636. const T27 v27_;
  1637. const T28 v28_;
  1638. const T29 v29_;
  1639. const T30 v30_;
  1640. const T31 v31_;
  1641. const T32 v32_;
  1642. const T33 v33_;
  1643. const T34 v34_;
  1644. const T35 v35_;
  1645. const T36 v36_;
  1646. const T37 v37_;
  1647. const T38 v38_;
  1648. };
  1649. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1650. typename T6, typename T7, typename T8, typename T9, typename T10,
  1651. typename T11, typename T12, typename T13, typename T14, typename T15,
  1652. typename T16, typename T17, typename T18, typename T19, typename T20,
  1653. typename T21, typename T22, typename T23, typename T24, typename T25,
  1654. typename T26, typename T27, typename T28, typename T29, typename T30,
  1655. typename T31, typename T32, typename T33, typename T34, typename T35,
  1656. typename T36, typename T37, typename T38, typename T39>
  1657. class ValueArray39 {
  1658. public:
  1659. ValueArray39(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1660. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1661. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1662. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  1663. T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39) : v1_(v1), v2_(v2),
  1664. v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10),
  1665. v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16),
  1666. v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22),
  1667. v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28),
  1668. v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34),
  1669. v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39) {}
  1670. template <typename T>
  1671. operator ParamGenerator<T>() const {
  1672. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1673. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1674. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  1675. v36_, v37_, v38_, v39_};
  1676. return ValuesIn(array);
  1677. }
  1678. private:
  1679. // No implementation - assignment is unsupported.
  1680. void operator=(const ValueArray39& other);
  1681. const T1 v1_;
  1682. const T2 v2_;
  1683. const T3 v3_;
  1684. const T4 v4_;
  1685. const T5 v5_;
  1686. const T6 v6_;
  1687. const T7 v7_;
  1688. const T8 v8_;
  1689. const T9 v9_;
  1690. const T10 v10_;
  1691. const T11 v11_;
  1692. const T12 v12_;
  1693. const T13 v13_;
  1694. const T14 v14_;
  1695. const T15 v15_;
  1696. const T16 v16_;
  1697. const T17 v17_;
  1698. const T18 v18_;
  1699. const T19 v19_;
  1700. const T20 v20_;
  1701. const T21 v21_;
  1702. const T22 v22_;
  1703. const T23 v23_;
  1704. const T24 v24_;
  1705. const T25 v25_;
  1706. const T26 v26_;
  1707. const T27 v27_;
  1708. const T28 v28_;
  1709. const T29 v29_;
  1710. const T30 v30_;
  1711. const T31 v31_;
  1712. const T32 v32_;
  1713. const T33 v33_;
  1714. const T34 v34_;
  1715. const T35 v35_;
  1716. const T36 v36_;
  1717. const T37 v37_;
  1718. const T38 v38_;
  1719. const T39 v39_;
  1720. };
  1721. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1722. typename T6, typename T7, typename T8, typename T9, typename T10,
  1723. typename T11, typename T12, typename T13, typename T14, typename T15,
  1724. typename T16, typename T17, typename T18, typename T19, typename T20,
  1725. typename T21, typename T22, typename T23, typename T24, typename T25,
  1726. typename T26, typename T27, typename T28, typename T29, typename T30,
  1727. typename T31, typename T32, typename T33, typename T34, typename T35,
  1728. typename T36, typename T37, typename T38, typename T39, typename T40>
  1729. class ValueArray40 {
  1730. public:
  1731. ValueArray40(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1732. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1733. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1734. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  1735. T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40) : v1_(v1),
  1736. v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9),
  1737. v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15),
  1738. v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21),
  1739. v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27),
  1740. v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33),
  1741. v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39),
  1742. v40_(v40) {}
  1743. template <typename T>
  1744. operator ParamGenerator<T>() const {
  1745. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1746. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1747. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  1748. v36_, v37_, v38_, v39_, v40_};
  1749. return ValuesIn(array);
  1750. }
  1751. private:
  1752. // No implementation - assignment is unsupported.
  1753. void operator=(const ValueArray40& other);
  1754. const T1 v1_;
  1755. const T2 v2_;
  1756. const T3 v3_;
  1757. const T4 v4_;
  1758. const T5 v5_;
  1759. const T6 v6_;
  1760. const T7 v7_;
  1761. const T8 v8_;
  1762. const T9 v9_;
  1763. const T10 v10_;
  1764. const T11 v11_;
  1765. const T12 v12_;
  1766. const T13 v13_;
  1767. const T14 v14_;
  1768. const T15 v15_;
  1769. const T16 v16_;
  1770. const T17 v17_;
  1771. const T18 v18_;
  1772. const T19 v19_;
  1773. const T20 v20_;
  1774. const T21 v21_;
  1775. const T22 v22_;
  1776. const T23 v23_;
  1777. const T24 v24_;
  1778. const T25 v25_;
  1779. const T26 v26_;
  1780. const T27 v27_;
  1781. const T28 v28_;
  1782. const T29 v29_;
  1783. const T30 v30_;
  1784. const T31 v31_;
  1785. const T32 v32_;
  1786. const T33 v33_;
  1787. const T34 v34_;
  1788. const T35 v35_;
  1789. const T36 v36_;
  1790. const T37 v37_;
  1791. const T38 v38_;
  1792. const T39 v39_;
  1793. const T40 v40_;
  1794. };
  1795. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1796. typename T6, typename T7, typename T8, typename T9, typename T10,
  1797. typename T11, typename T12, typename T13, typename T14, typename T15,
  1798. typename T16, typename T17, typename T18, typename T19, typename T20,
  1799. typename T21, typename T22, typename T23, typename T24, typename T25,
  1800. typename T26, typename T27, typename T28, typename T29, typename T30,
  1801. typename T31, typename T32, typename T33, typename T34, typename T35,
  1802. typename T36, typename T37, typename T38, typename T39, typename T40,
  1803. typename T41>
  1804. class ValueArray41 {
  1805. public:
  1806. ValueArray41(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1807. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1808. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1809. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  1810. T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40,
  1811. T41 v41) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7),
  1812. v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14),
  1813. v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20),
  1814. v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26),
  1815. v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32),
  1816. v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38),
  1817. v39_(v39), v40_(v40), v41_(v41) {}
  1818. template <typename T>
  1819. operator ParamGenerator<T>() const {
  1820. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1821. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1822. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  1823. v36_, v37_, v38_, v39_, v40_, v41_};
  1824. return ValuesIn(array);
  1825. }
  1826. private:
  1827. // No implementation - assignment is unsupported.
  1828. void operator=(const ValueArray41& other);
  1829. const T1 v1_;
  1830. const T2 v2_;
  1831. const T3 v3_;
  1832. const T4 v4_;
  1833. const T5 v5_;
  1834. const T6 v6_;
  1835. const T7 v7_;
  1836. const T8 v8_;
  1837. const T9 v9_;
  1838. const T10 v10_;
  1839. const T11 v11_;
  1840. const T12 v12_;
  1841. const T13 v13_;
  1842. const T14 v14_;
  1843. const T15 v15_;
  1844. const T16 v16_;
  1845. const T17 v17_;
  1846. const T18 v18_;
  1847. const T19 v19_;
  1848. const T20 v20_;
  1849. const T21 v21_;
  1850. const T22 v22_;
  1851. const T23 v23_;
  1852. const T24 v24_;
  1853. const T25 v25_;
  1854. const T26 v26_;
  1855. const T27 v27_;
  1856. const T28 v28_;
  1857. const T29 v29_;
  1858. const T30 v30_;
  1859. const T31 v31_;
  1860. const T32 v32_;
  1861. const T33 v33_;
  1862. const T34 v34_;
  1863. const T35 v35_;
  1864. const T36 v36_;
  1865. const T37 v37_;
  1866. const T38 v38_;
  1867. const T39 v39_;
  1868. const T40 v40_;
  1869. const T41 v41_;
  1870. };
  1871. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1872. typename T6, typename T7, typename T8, typename T9, typename T10,
  1873. typename T11, typename T12, typename T13, typename T14, typename T15,
  1874. typename T16, typename T17, typename T18, typename T19, typename T20,
  1875. typename T21, typename T22, typename T23, typename T24, typename T25,
  1876. typename T26, typename T27, typename T28, typename T29, typename T30,
  1877. typename T31, typename T32, typename T33, typename T34, typename T35,
  1878. typename T36, typename T37, typename T38, typename T39, typename T40,
  1879. typename T41, typename T42>
  1880. class ValueArray42 {
  1881. public:
  1882. ValueArray42(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1883. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1884. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1885. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  1886. T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41,
  1887. T42 v42) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7),
  1888. v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14),
  1889. v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20),
  1890. v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26),
  1891. v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32),
  1892. v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38),
  1893. v39_(v39), v40_(v40), v41_(v41), v42_(v42) {}
  1894. template <typename T>
  1895. operator ParamGenerator<T>() const {
  1896. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1897. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1898. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  1899. v36_, v37_, v38_, v39_, v40_, v41_, v42_};
  1900. return ValuesIn(array);
  1901. }
  1902. private:
  1903. // No implementation - assignment is unsupported.
  1904. void operator=(const ValueArray42& other);
  1905. const T1 v1_;
  1906. const T2 v2_;
  1907. const T3 v3_;
  1908. const T4 v4_;
  1909. const T5 v5_;
  1910. const T6 v6_;
  1911. const T7 v7_;
  1912. const T8 v8_;
  1913. const T9 v9_;
  1914. const T10 v10_;
  1915. const T11 v11_;
  1916. const T12 v12_;
  1917. const T13 v13_;
  1918. const T14 v14_;
  1919. const T15 v15_;
  1920. const T16 v16_;
  1921. const T17 v17_;
  1922. const T18 v18_;
  1923. const T19 v19_;
  1924. const T20 v20_;
  1925. const T21 v21_;
  1926. const T22 v22_;
  1927. const T23 v23_;
  1928. const T24 v24_;
  1929. const T25 v25_;
  1930. const T26 v26_;
  1931. const T27 v27_;
  1932. const T28 v28_;
  1933. const T29 v29_;
  1934. const T30 v30_;
  1935. const T31 v31_;
  1936. const T32 v32_;
  1937. const T33 v33_;
  1938. const T34 v34_;
  1939. const T35 v35_;
  1940. const T36 v36_;
  1941. const T37 v37_;
  1942. const T38 v38_;
  1943. const T39 v39_;
  1944. const T40 v40_;
  1945. const T41 v41_;
  1946. const T42 v42_;
  1947. };
  1948. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  1949. typename T6, typename T7, typename T8, typename T9, typename T10,
  1950. typename T11, typename T12, typename T13, typename T14, typename T15,
  1951. typename T16, typename T17, typename T18, typename T19, typename T20,
  1952. typename T21, typename T22, typename T23, typename T24, typename T25,
  1953. typename T26, typename T27, typename T28, typename T29, typename T30,
  1954. typename T31, typename T32, typename T33, typename T34, typename T35,
  1955. typename T36, typename T37, typename T38, typename T39, typename T40,
  1956. typename T41, typename T42, typename T43>
  1957. class ValueArray43 {
  1958. public:
  1959. ValueArray43(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  1960. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  1961. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  1962. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  1963. T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41,
  1964. T42 v42, T43 v43) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6),
  1965. v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13),
  1966. v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19),
  1967. v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25),
  1968. v26_(v26), v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31),
  1969. v32_(v32), v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37),
  1970. v38_(v38), v39_(v39), v40_(v40), v41_(v41), v42_(v42), v43_(v43) {}
  1971. template <typename T>
  1972. operator ParamGenerator<T>() const {
  1973. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  1974. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  1975. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  1976. v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_};
  1977. return ValuesIn(array);
  1978. }
  1979. private:
  1980. // No implementation - assignment is unsupported.
  1981. void operator=(const ValueArray43& other);
  1982. const T1 v1_;
  1983. const T2 v2_;
  1984. const T3 v3_;
  1985. const T4 v4_;
  1986. const T5 v5_;
  1987. const T6 v6_;
  1988. const T7 v7_;
  1989. const T8 v8_;
  1990. const T9 v9_;
  1991. const T10 v10_;
  1992. const T11 v11_;
  1993. const T12 v12_;
  1994. const T13 v13_;
  1995. const T14 v14_;
  1996. const T15 v15_;
  1997. const T16 v16_;
  1998. const T17 v17_;
  1999. const T18 v18_;
  2000. const T19 v19_;
  2001. const T20 v20_;
  2002. const T21 v21_;
  2003. const T22 v22_;
  2004. const T23 v23_;
  2005. const T24 v24_;
  2006. const T25 v25_;
  2007. const T26 v26_;
  2008. const T27 v27_;
  2009. const T28 v28_;
  2010. const T29 v29_;
  2011. const T30 v30_;
  2012. const T31 v31_;
  2013. const T32 v32_;
  2014. const T33 v33_;
  2015. const T34 v34_;
  2016. const T35 v35_;
  2017. const T36 v36_;
  2018. const T37 v37_;
  2019. const T38 v38_;
  2020. const T39 v39_;
  2021. const T40 v40_;
  2022. const T41 v41_;
  2023. const T42 v42_;
  2024. const T43 v43_;
  2025. };
  2026. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  2027. typename T6, typename T7, typename T8, typename T9, typename T10,
  2028. typename T11, typename T12, typename T13, typename T14, typename T15,
  2029. typename T16, typename T17, typename T18, typename T19, typename T20,
  2030. typename T21, typename T22, typename T23, typename T24, typename T25,
  2031. typename T26, typename T27, typename T28, typename T29, typename T30,
  2032. typename T31, typename T32, typename T33, typename T34, typename T35,
  2033. typename T36, typename T37, typename T38, typename T39, typename T40,
  2034. typename T41, typename T42, typename T43, typename T44>
  2035. class ValueArray44 {
  2036. public:
  2037. ValueArray44(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  2038. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  2039. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  2040. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  2041. T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41,
  2042. T42 v42, T43 v43, T44 v44) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5),
  2043. v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12),
  2044. v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18),
  2045. v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24),
  2046. v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29), v30_(v30),
  2047. v31_(v31), v32_(v32), v33_(v33), v34_(v34), v35_(v35), v36_(v36),
  2048. v37_(v37), v38_(v38), v39_(v39), v40_(v40), v41_(v41), v42_(v42),
  2049. v43_(v43), v44_(v44) {}
  2050. template <typename T>
  2051. operator ParamGenerator<T>() const {
  2052. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  2053. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  2054. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  2055. v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_};
  2056. return ValuesIn(array);
  2057. }
  2058. private:
  2059. // No implementation - assignment is unsupported.
  2060. void operator=(const ValueArray44& other);
  2061. const T1 v1_;
  2062. const T2 v2_;
  2063. const T3 v3_;
  2064. const T4 v4_;
  2065. const T5 v5_;
  2066. const T6 v6_;
  2067. const T7 v7_;
  2068. const T8 v8_;
  2069. const T9 v9_;
  2070. const T10 v10_;
  2071. const T11 v11_;
  2072. const T12 v12_;
  2073. const T13 v13_;
  2074. const T14 v14_;
  2075. const T15 v15_;
  2076. const T16 v16_;
  2077. const T17 v17_;
  2078. const T18 v18_;
  2079. const T19 v19_;
  2080. const T20 v20_;
  2081. const T21 v21_;
  2082. const T22 v22_;
  2083. const T23 v23_;
  2084. const T24 v24_;
  2085. const T25 v25_;
  2086. const T26 v26_;
  2087. const T27 v27_;
  2088. const T28 v28_;
  2089. const T29 v29_;
  2090. const T30 v30_;
  2091. const T31 v31_;
  2092. const T32 v32_;
  2093. const T33 v33_;
  2094. const T34 v34_;
  2095. const T35 v35_;
  2096. const T36 v36_;
  2097. const T37 v37_;
  2098. const T38 v38_;
  2099. const T39 v39_;
  2100. const T40 v40_;
  2101. const T41 v41_;
  2102. const T42 v42_;
  2103. const T43 v43_;
  2104. const T44 v44_;
  2105. };
  2106. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  2107. typename T6, typename T7, typename T8, typename T9, typename T10,
  2108. typename T11, typename T12, typename T13, typename T14, typename T15,
  2109. typename T16, typename T17, typename T18, typename T19, typename T20,
  2110. typename T21, typename T22, typename T23, typename T24, typename T25,
  2111. typename T26, typename T27, typename T28, typename T29, typename T30,
  2112. typename T31, typename T32, typename T33, typename T34, typename T35,
  2113. typename T36, typename T37, typename T38, typename T39, typename T40,
  2114. typename T41, typename T42, typename T43, typename T44, typename T45>
  2115. class ValueArray45 {
  2116. public:
  2117. ValueArray45(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  2118. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  2119. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  2120. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  2121. T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41,
  2122. T42 v42, T43 v43, T44 v44, T45 v45) : v1_(v1), v2_(v2), v3_(v3), v4_(v4),
  2123. v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11),
  2124. v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17),
  2125. v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23),
  2126. v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29),
  2127. v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34), v35_(v35),
  2128. v36_(v36), v37_(v37), v38_(v38), v39_(v39), v40_(v40), v41_(v41),
  2129. v42_(v42), v43_(v43), v44_(v44), v45_(v45) {}
  2130. template <typename T>
  2131. operator ParamGenerator<T>() const {
  2132. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  2133. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  2134. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  2135. v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_};
  2136. return ValuesIn(array);
  2137. }
  2138. private:
  2139. // No implementation - assignment is unsupported.
  2140. void operator=(const ValueArray45& other);
  2141. const T1 v1_;
  2142. const T2 v2_;
  2143. const T3 v3_;
  2144. const T4 v4_;
  2145. const T5 v5_;
  2146. const T6 v6_;
  2147. const T7 v7_;
  2148. const T8 v8_;
  2149. const T9 v9_;
  2150. const T10 v10_;
  2151. const T11 v11_;
  2152. const T12 v12_;
  2153. const T13 v13_;
  2154. const T14 v14_;
  2155. const T15 v15_;
  2156. const T16 v16_;
  2157. const T17 v17_;
  2158. const T18 v18_;
  2159. const T19 v19_;
  2160. const T20 v20_;
  2161. const T21 v21_;
  2162. const T22 v22_;
  2163. const T23 v23_;
  2164. const T24 v24_;
  2165. const T25 v25_;
  2166. const T26 v26_;
  2167. const T27 v27_;
  2168. const T28 v28_;
  2169. const T29 v29_;
  2170. const T30 v30_;
  2171. const T31 v31_;
  2172. const T32 v32_;
  2173. const T33 v33_;
  2174. const T34 v34_;
  2175. const T35 v35_;
  2176. const T36 v36_;
  2177. const T37 v37_;
  2178. const T38 v38_;
  2179. const T39 v39_;
  2180. const T40 v40_;
  2181. const T41 v41_;
  2182. const T42 v42_;
  2183. const T43 v43_;
  2184. const T44 v44_;
  2185. const T45 v45_;
  2186. };
  2187. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  2188. typename T6, typename T7, typename T8, typename T9, typename T10,
  2189. typename T11, typename T12, typename T13, typename T14, typename T15,
  2190. typename T16, typename T17, typename T18, typename T19, typename T20,
  2191. typename T21, typename T22, typename T23, typename T24, typename T25,
  2192. typename T26, typename T27, typename T28, typename T29, typename T30,
  2193. typename T31, typename T32, typename T33, typename T34, typename T35,
  2194. typename T36, typename T37, typename T38, typename T39, typename T40,
  2195. typename T41, typename T42, typename T43, typename T44, typename T45,
  2196. typename T46>
  2197. class ValueArray46 {
  2198. public:
  2199. ValueArray46(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  2200. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  2201. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  2202. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  2203. T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41,
  2204. T42 v42, T43 v43, T44 v44, T45 v45, T46 v46) : v1_(v1), v2_(v2), v3_(v3),
  2205. v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10),
  2206. v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16),
  2207. v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22),
  2208. v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28),
  2209. v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34),
  2210. v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39), v40_(v40),
  2211. v41_(v41), v42_(v42), v43_(v43), v44_(v44), v45_(v45), v46_(v46) {}
  2212. template <typename T>
  2213. operator ParamGenerator<T>() const {
  2214. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  2215. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  2216. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  2217. v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_};
  2218. return ValuesIn(array);
  2219. }
  2220. private:
  2221. // No implementation - assignment is unsupported.
  2222. void operator=(const ValueArray46& other);
  2223. const T1 v1_;
  2224. const T2 v2_;
  2225. const T3 v3_;
  2226. const T4 v4_;
  2227. const T5 v5_;
  2228. const T6 v6_;
  2229. const T7 v7_;
  2230. const T8 v8_;
  2231. const T9 v9_;
  2232. const T10 v10_;
  2233. const T11 v11_;
  2234. const T12 v12_;
  2235. const T13 v13_;
  2236. const T14 v14_;
  2237. const T15 v15_;
  2238. const T16 v16_;
  2239. const T17 v17_;
  2240. const T18 v18_;
  2241. const T19 v19_;
  2242. const T20 v20_;
  2243. const T21 v21_;
  2244. const T22 v22_;
  2245. const T23 v23_;
  2246. const T24 v24_;
  2247. const T25 v25_;
  2248. const T26 v26_;
  2249. const T27 v27_;
  2250. const T28 v28_;
  2251. const T29 v29_;
  2252. const T30 v30_;
  2253. const T31 v31_;
  2254. const T32 v32_;
  2255. const T33 v33_;
  2256. const T34 v34_;
  2257. const T35 v35_;
  2258. const T36 v36_;
  2259. const T37 v37_;
  2260. const T38 v38_;
  2261. const T39 v39_;
  2262. const T40 v40_;
  2263. const T41 v41_;
  2264. const T42 v42_;
  2265. const T43 v43_;
  2266. const T44 v44_;
  2267. const T45 v45_;
  2268. const T46 v46_;
  2269. };
  2270. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  2271. typename T6, typename T7, typename T8, typename T9, typename T10,
  2272. typename T11, typename T12, typename T13, typename T14, typename T15,
  2273. typename T16, typename T17, typename T18, typename T19, typename T20,
  2274. typename T21, typename T22, typename T23, typename T24, typename T25,
  2275. typename T26, typename T27, typename T28, typename T29, typename T30,
  2276. typename T31, typename T32, typename T33, typename T34, typename T35,
  2277. typename T36, typename T37, typename T38, typename T39, typename T40,
  2278. typename T41, typename T42, typename T43, typename T44, typename T45,
  2279. typename T46, typename T47>
  2280. class ValueArray47 {
  2281. public:
  2282. ValueArray47(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  2283. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  2284. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  2285. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  2286. T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41,
  2287. T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47) : v1_(v1), v2_(v2),
  2288. v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10),
  2289. v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16),
  2290. v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22),
  2291. v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28),
  2292. v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34),
  2293. v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39), v40_(v40),
  2294. v41_(v41), v42_(v42), v43_(v43), v44_(v44), v45_(v45), v46_(v46),
  2295. v47_(v47) {}
  2296. template <typename T>
  2297. operator ParamGenerator<T>() const {
  2298. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  2299. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  2300. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  2301. v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_,
  2302. v47_};
  2303. return ValuesIn(array);
  2304. }
  2305. private:
  2306. // No implementation - assignment is unsupported.
  2307. void operator=(const ValueArray47& other);
  2308. const T1 v1_;
  2309. const T2 v2_;
  2310. const T3 v3_;
  2311. const T4 v4_;
  2312. const T5 v5_;
  2313. const T6 v6_;
  2314. const T7 v7_;
  2315. const T8 v8_;
  2316. const T9 v9_;
  2317. const T10 v10_;
  2318. const T11 v11_;
  2319. const T12 v12_;
  2320. const T13 v13_;
  2321. const T14 v14_;
  2322. const T15 v15_;
  2323. const T16 v16_;
  2324. const T17 v17_;
  2325. const T18 v18_;
  2326. const T19 v19_;
  2327. const T20 v20_;
  2328. const T21 v21_;
  2329. const T22 v22_;
  2330. const T23 v23_;
  2331. const T24 v24_;
  2332. const T25 v25_;
  2333. const T26 v26_;
  2334. const T27 v27_;
  2335. const T28 v28_;
  2336. const T29 v29_;
  2337. const T30 v30_;
  2338. const T31 v31_;
  2339. const T32 v32_;
  2340. const T33 v33_;
  2341. const T34 v34_;
  2342. const T35 v35_;
  2343. const T36 v36_;
  2344. const T37 v37_;
  2345. const T38 v38_;
  2346. const T39 v39_;
  2347. const T40 v40_;
  2348. const T41 v41_;
  2349. const T42 v42_;
  2350. const T43 v43_;
  2351. const T44 v44_;
  2352. const T45 v45_;
  2353. const T46 v46_;
  2354. const T47 v47_;
  2355. };
  2356. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  2357. typename T6, typename T7, typename T8, typename T9, typename T10,
  2358. typename T11, typename T12, typename T13, typename T14, typename T15,
  2359. typename T16, typename T17, typename T18, typename T19, typename T20,
  2360. typename T21, typename T22, typename T23, typename T24, typename T25,
  2361. typename T26, typename T27, typename T28, typename T29, typename T30,
  2362. typename T31, typename T32, typename T33, typename T34, typename T35,
  2363. typename T36, typename T37, typename T38, typename T39, typename T40,
  2364. typename T41, typename T42, typename T43, typename T44, typename T45,
  2365. typename T46, typename T47, typename T48>
  2366. class ValueArray48 {
  2367. public:
  2368. ValueArray48(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  2369. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  2370. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  2371. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  2372. T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41,
  2373. T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47, T48 v48) : v1_(v1),
  2374. v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9),
  2375. v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15),
  2376. v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21),
  2377. v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27),
  2378. v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33),
  2379. v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39),
  2380. v40_(v40), v41_(v41), v42_(v42), v43_(v43), v44_(v44), v45_(v45),
  2381. v46_(v46), v47_(v47), v48_(v48) {}
  2382. template <typename T>
  2383. operator ParamGenerator<T>() const {
  2384. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  2385. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  2386. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  2387. v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_, v47_,
  2388. v48_};
  2389. return ValuesIn(array);
  2390. }
  2391. private:
  2392. // No implementation - assignment is unsupported.
  2393. void operator=(const ValueArray48& other);
  2394. const T1 v1_;
  2395. const T2 v2_;
  2396. const T3 v3_;
  2397. const T4 v4_;
  2398. const T5 v5_;
  2399. const T6 v6_;
  2400. const T7 v7_;
  2401. const T8 v8_;
  2402. const T9 v9_;
  2403. const T10 v10_;
  2404. const T11 v11_;
  2405. const T12 v12_;
  2406. const T13 v13_;
  2407. const T14 v14_;
  2408. const T15 v15_;
  2409. const T16 v16_;
  2410. const T17 v17_;
  2411. const T18 v18_;
  2412. const T19 v19_;
  2413. const T20 v20_;
  2414. const T21 v21_;
  2415. const T22 v22_;
  2416. const T23 v23_;
  2417. const T24 v24_;
  2418. const T25 v25_;
  2419. const T26 v26_;
  2420. const T27 v27_;
  2421. const T28 v28_;
  2422. const T29 v29_;
  2423. const T30 v30_;
  2424. const T31 v31_;
  2425. const T32 v32_;
  2426. const T33 v33_;
  2427. const T34 v34_;
  2428. const T35 v35_;
  2429. const T36 v36_;
  2430. const T37 v37_;
  2431. const T38 v38_;
  2432. const T39 v39_;
  2433. const T40 v40_;
  2434. const T41 v41_;
  2435. const T42 v42_;
  2436. const T43 v43_;
  2437. const T44 v44_;
  2438. const T45 v45_;
  2439. const T46 v46_;
  2440. const T47 v47_;
  2441. const T48 v48_;
  2442. };
  2443. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  2444. typename T6, typename T7, typename T8, typename T9, typename T10,
  2445. typename T11, typename T12, typename T13, typename T14, typename T15,
  2446. typename T16, typename T17, typename T18, typename T19, typename T20,
  2447. typename T21, typename T22, typename T23, typename T24, typename T25,
  2448. typename T26, typename T27, typename T28, typename T29, typename T30,
  2449. typename T31, typename T32, typename T33, typename T34, typename T35,
  2450. typename T36, typename T37, typename T38, typename T39, typename T40,
  2451. typename T41, typename T42, typename T43, typename T44, typename T45,
  2452. typename T46, typename T47, typename T48, typename T49>
  2453. class ValueArray49 {
  2454. public:
  2455. ValueArray49(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  2456. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  2457. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  2458. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  2459. T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41,
  2460. T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47, T48 v48,
  2461. T49 v49) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7),
  2462. v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14),
  2463. v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20),
  2464. v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26),
  2465. v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32),
  2466. v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38),
  2467. v39_(v39), v40_(v40), v41_(v41), v42_(v42), v43_(v43), v44_(v44),
  2468. v45_(v45), v46_(v46), v47_(v47), v48_(v48), v49_(v49) {}
  2469. template <typename T>
  2470. operator ParamGenerator<T>() const {
  2471. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  2472. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  2473. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  2474. v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_, v47_,
  2475. v48_, v49_};
  2476. return ValuesIn(array);
  2477. }
  2478. private:
  2479. // No implementation - assignment is unsupported.
  2480. void operator=(const ValueArray49& other);
  2481. const T1 v1_;
  2482. const T2 v2_;
  2483. const T3 v3_;
  2484. const T4 v4_;
  2485. const T5 v5_;
  2486. const T6 v6_;
  2487. const T7 v7_;
  2488. const T8 v8_;
  2489. const T9 v9_;
  2490. const T10 v10_;
  2491. const T11 v11_;
  2492. const T12 v12_;
  2493. const T13 v13_;
  2494. const T14 v14_;
  2495. const T15 v15_;
  2496. const T16 v16_;
  2497. const T17 v17_;
  2498. const T18 v18_;
  2499. const T19 v19_;
  2500. const T20 v20_;
  2501. const T21 v21_;
  2502. const T22 v22_;
  2503. const T23 v23_;
  2504. const T24 v24_;
  2505. const T25 v25_;
  2506. const T26 v26_;
  2507. const T27 v27_;
  2508. const T28 v28_;
  2509. const T29 v29_;
  2510. const T30 v30_;
  2511. const T31 v31_;
  2512. const T32 v32_;
  2513. const T33 v33_;
  2514. const T34 v34_;
  2515. const T35 v35_;
  2516. const T36 v36_;
  2517. const T37 v37_;
  2518. const T38 v38_;
  2519. const T39 v39_;
  2520. const T40 v40_;
  2521. const T41 v41_;
  2522. const T42 v42_;
  2523. const T43 v43_;
  2524. const T44 v44_;
  2525. const T45 v45_;
  2526. const T46 v46_;
  2527. const T47 v47_;
  2528. const T48 v48_;
  2529. const T49 v49_;
  2530. };
  2531. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  2532. typename T6, typename T7, typename T8, typename T9, typename T10,
  2533. typename T11, typename T12, typename T13, typename T14, typename T15,
  2534. typename T16, typename T17, typename T18, typename T19, typename T20,
  2535. typename T21, typename T22, typename T23, typename T24, typename T25,
  2536. typename T26, typename T27, typename T28, typename T29, typename T30,
  2537. typename T31, typename T32, typename T33, typename T34, typename T35,
  2538. typename T36, typename T37, typename T38, typename T39, typename T40,
  2539. typename T41, typename T42, typename T43, typename T44, typename T45,
  2540. typename T46, typename T47, typename T48, typename T49, typename T50>
  2541. class ValueArray50 {
  2542. public:
  2543. ValueArray50(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9,
  2544. T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17,
  2545. T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25,
  2546. T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33,
  2547. T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41,
  2548. T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47, T48 v48, T49 v49,
  2549. T50 v50) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7),
  2550. v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14),
  2551. v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20),
  2552. v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26),
  2553. v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32),
  2554. v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38),
  2555. v39_(v39), v40_(v40), v41_(v41), v42_(v42), v43_(v43), v44_(v44),
  2556. v45_(v45), v46_(v46), v47_(v47), v48_(v48), v49_(v49), v50_(v50) {}
  2557. template <typename T>
  2558. operator ParamGenerator<T>() const {
  2559. const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_,
  2560. v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_,
  2561. v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_,
  2562. v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_, v47_,
  2563. v48_, v49_, v50_};
  2564. return ValuesIn(array);
  2565. }
  2566. private:
  2567. // No implementation - assignment is unsupported.
  2568. void operator=(const ValueArray50& other);
  2569. const T1 v1_;
  2570. const T2 v2_;
  2571. const T3 v3_;
  2572. const T4 v4_;
  2573. const T5 v5_;
  2574. const T6 v6_;
  2575. const T7 v7_;
  2576. const T8 v8_;
  2577. const T9 v9_;
  2578. const T10 v10_;
  2579. const T11 v11_;
  2580. const T12 v12_;
  2581. const T13 v13_;
  2582. const T14 v14_;
  2583. const T15 v15_;
  2584. const T16 v16_;
  2585. const T17 v17_;
  2586. const T18 v18_;
  2587. const T19 v19_;
  2588. const T20 v20_;
  2589. const T21 v21_;
  2590. const T22 v22_;
  2591. const T23 v23_;
  2592. const T24 v24_;
  2593. const T25 v25_;
  2594. const T26 v26_;
  2595. const T27 v27_;
  2596. const T28 v28_;
  2597. const T29 v29_;
  2598. const T30 v30_;
  2599. const T31 v31_;
  2600. const T32 v32_;
  2601. const T33 v33_;
  2602. const T34 v34_;
  2603. const T35 v35_;
  2604. const T36 v36_;
  2605. const T37 v37_;
  2606. const T38 v38_;
  2607. const T39 v39_;
  2608. const T40 v40_;
  2609. const T41 v41_;
  2610. const T42 v42_;
  2611. const T43 v43_;
  2612. const T44 v44_;
  2613. const T45 v45_;
  2614. const T46 v46_;
  2615. const T47 v47_;
  2616. const T48 v48_;
  2617. const T49 v49_;
  2618. const T50 v50_;
  2619. };
  2620. # if GTEST_HAS_COMBINE
  2621. // INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE.
  2622. //
  2623. // Generates values from the Cartesian product of values produced
  2624. // by the argument generators.
  2625. //
  2626. template <typename T1, typename T2>
  2627. class CartesianProductGenerator2
  2628. : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2> > {
  2629. public:
  2630. typedef ::std::tr1::tuple<T1, T2> ParamType;
  2631. CartesianProductGenerator2(const ParamGenerator<T1>& g1,
  2632. const ParamGenerator<T2>& g2)
  2633. : g1_(g1), g2_(g2) {}
  2634. virtual ~CartesianProductGenerator2() {}
  2635. virtual ParamIteratorInterface<ParamType>* Begin() const {
  2636. return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin());
  2637. }
  2638. virtual ParamIteratorInterface<ParamType>* End() const {
  2639. return new Iterator(this, g1_, g1_.end(), g2_, g2_.end());
  2640. }
  2641. private:
  2642. class Iterator : public ParamIteratorInterface<ParamType> {
  2643. public:
  2644. Iterator(const ParamGeneratorInterface<ParamType>* base,
  2645. const ParamGenerator<T1>& g1,
  2646. const typename ParamGenerator<T1>::iterator& current1,
  2647. const ParamGenerator<T2>& g2,
  2648. const typename ParamGenerator<T2>::iterator& current2)
  2649. : base_(base),
  2650. begin1_(g1.begin()), end1_(g1.end()), current1_(current1),
  2651. begin2_(g2.begin()), end2_(g2.end()), current2_(current2) {
  2652. ComputeCurrentValue();
  2653. }
  2654. virtual ~Iterator() {}
  2655. virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const {
  2656. return base_;
  2657. }
  2658. // Advance should not be called on beyond-of-range iterators
  2659. // so no component iterators must be beyond end of range, either.
  2660. virtual void Advance() {
  2661. assert(!AtEnd());
  2662. ++current2_;
  2663. if (current2_ == end2_) {
  2664. current2_ = begin2_;
  2665. ++current1_;
  2666. }
  2667. ComputeCurrentValue();
  2668. }
  2669. virtual ParamIteratorInterface<ParamType>* Clone() const {
  2670. return new Iterator(*this);
  2671. }
  2672. virtual const ParamType* Current() const { return &current_value_; }
  2673. virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const {
  2674. // Having the same base generator guarantees that the other
  2675. // iterator is of the same type and we can downcast.
  2676. GTEST_CHECK_(BaseGenerator() == other.BaseGenerator())
  2677. << "The program attempted to compare iterators "
  2678. << "from different generators." << std::endl;
  2679. const Iterator* typed_other =
  2680. CheckedDowncastToActualType<const Iterator>(&other);
  2681. // We must report iterators equal if they both point beyond their
  2682. // respective ranges. That can happen in a variety of fashions,
  2683. // so we have to consult AtEnd().
  2684. return (AtEnd() && typed_other->AtEnd()) ||
  2685. (
  2686. current1_ == typed_other->current1_ &&
  2687. current2_ == typed_other->current2_);
  2688. }
  2689. private:
  2690. Iterator(const Iterator& other)
  2691. : base_(other.base_),
  2692. begin1_(other.begin1_),
  2693. end1_(other.end1_),
  2694. current1_(other.current1_),
  2695. begin2_(other.begin2_),
  2696. end2_(other.end2_),
  2697. current2_(other.current2_) {
  2698. ComputeCurrentValue();
  2699. }
  2700. void ComputeCurrentValue() {
  2701. if (!AtEnd())
  2702. current_value_ = ParamType(*current1_, *current2_);
  2703. }
  2704. bool AtEnd() const {
  2705. // We must report iterator past the end of the range when either of the
  2706. // component iterators has reached the end of its range.
  2707. return
  2708. current1_ == end1_ ||
  2709. current2_ == end2_;
  2710. }
  2711. // No implementation - assignment is unsupported.
  2712. void operator=(const Iterator& other);
  2713. const ParamGeneratorInterface<ParamType>* const base_;
  2714. // begin[i]_ and end[i]_ define the i-th range that Iterator traverses.
  2715. // current[i]_ is the actual traversing iterator.
  2716. const typename ParamGenerator<T1>::iterator begin1_;
  2717. const typename ParamGenerator<T1>::iterator end1_;
  2718. typename ParamGenerator<T1>::iterator current1_;
  2719. const typename ParamGenerator<T2>::iterator begin2_;
  2720. const typename ParamGenerator<T2>::iterator end2_;
  2721. typename ParamGenerator<T2>::iterator current2_;
  2722. ParamType current_value_;
  2723. }; // class CartesianProductGenerator2::Iterator
  2724. // No implementation - assignment is unsupported.
  2725. void operator=(const CartesianProductGenerator2& other);
  2726. const ParamGenerator<T1> g1_;
  2727. const ParamGenerator<T2> g2_;
  2728. }; // class CartesianProductGenerator2
  2729. template <typename T1, typename T2, typename T3>
  2730. class CartesianProductGenerator3
  2731. : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3> > {
  2732. public:
  2733. typedef ::std::tr1::tuple<T1, T2, T3> ParamType;
  2734. CartesianProductGenerator3(const ParamGenerator<T1>& g1,
  2735. const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3)
  2736. : g1_(g1), g2_(g2), g3_(g3) {}
  2737. virtual ~CartesianProductGenerator3() {}
  2738. virtual ParamIteratorInterface<ParamType>* Begin() const {
  2739. return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_,
  2740. g3_.begin());
  2741. }
  2742. virtual ParamIteratorInterface<ParamType>* End() const {
  2743. return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end());
  2744. }
  2745. private:
  2746. class Iterator : public ParamIteratorInterface<ParamType> {
  2747. public:
  2748. Iterator(const ParamGeneratorInterface<ParamType>* base,
  2749. const ParamGenerator<T1>& g1,
  2750. const typename ParamGenerator<T1>::iterator& current1,
  2751. const ParamGenerator<T2>& g2,
  2752. const typename ParamGenerator<T2>::iterator& current2,
  2753. const ParamGenerator<T3>& g3,
  2754. const typename ParamGenerator<T3>::iterator& current3)
  2755. : base_(base),
  2756. begin1_(g1.begin()), end1_(g1.end()), current1_(current1),
  2757. begin2_(g2.begin()), end2_(g2.end()), current2_(current2),
  2758. begin3_(g3.begin()), end3_(g3.end()), current3_(current3) {
  2759. ComputeCurrentValue();
  2760. }
  2761. virtual ~Iterator() {}
  2762. virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const {
  2763. return base_;
  2764. }
  2765. // Advance should not be called on beyond-of-range iterators
  2766. // so no component iterators must be beyond end of range, either.
  2767. virtual void Advance() {
  2768. assert(!AtEnd());
  2769. ++current3_;
  2770. if (current3_ == end3_) {
  2771. current3_ = begin3_;
  2772. ++current2_;
  2773. }
  2774. if (current2_ == end2_) {
  2775. current2_ = begin2_;
  2776. ++current1_;
  2777. }
  2778. ComputeCurrentValue();
  2779. }
  2780. virtual ParamIteratorInterface<ParamType>* Clone() const {
  2781. return new Iterator(*this);
  2782. }
  2783. virtual const ParamType* Current() const { return &current_value_; }
  2784. virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const {
  2785. // Having the same base generator guarantees that the other
  2786. // iterator is of the same type and we can downcast.
  2787. GTEST_CHECK_(BaseGenerator() == other.BaseGenerator())
  2788. << "The program attempted to compare iterators "
  2789. << "from different generators." << std::endl;
  2790. const Iterator* typed_other =
  2791. CheckedDowncastToActualType<const Iterator>(&other);
  2792. // We must report iterators equal if they both point beyond their
  2793. // respective ranges. That can happen in a variety of fashions,
  2794. // so we have to consult AtEnd().
  2795. return (AtEnd() && typed_other->AtEnd()) ||
  2796. (
  2797. current1_ == typed_other->current1_ &&
  2798. current2_ == typed_other->current2_ &&
  2799. current3_ == typed_other->current3_);
  2800. }
  2801. private:
  2802. Iterator(const Iterator& other)
  2803. : base_(other.base_),
  2804. begin1_(other.begin1_),
  2805. end1_(other.end1_),
  2806. current1_(other.current1_),
  2807. begin2_(other.begin2_),
  2808. end2_(other.end2_),
  2809. current2_(other.current2_),
  2810. begin3_(other.begin3_),
  2811. end3_(other.end3_),
  2812. current3_(other.current3_) {
  2813. ComputeCurrentValue();
  2814. }
  2815. void ComputeCurrentValue() {
  2816. if (!AtEnd())
  2817. current_value_ = ParamType(*current1_, *current2_, *current3_);
  2818. }
  2819. bool AtEnd() const {
  2820. // We must report iterator past the end of the range when either of the
  2821. // component iterators has reached the end of its range.
  2822. return
  2823. current1_ == end1_ ||
  2824. current2_ == end2_ ||
  2825. current3_ == end3_;
  2826. }
  2827. // No implementation - assignment is unsupported.
  2828. void operator=(const Iterator& other);
  2829. const ParamGeneratorInterface<ParamType>* const base_;
  2830. // begin[i]_ and end[i]_ define the i-th range that Iterator traverses.
  2831. // current[i]_ is the actual traversing iterator.
  2832. const typename ParamGenerator<T1>::iterator begin1_;
  2833. const typename ParamGenerator<T1>::iterator end1_;
  2834. typename ParamGenerator<T1>::iterator current1_;
  2835. const typename ParamGenerator<T2>::iterator begin2_;
  2836. const typename ParamGenerator<T2>::iterator end2_;
  2837. typename ParamGenerator<T2>::iterator current2_;
  2838. const typename ParamGenerator<T3>::iterator begin3_;
  2839. const typename ParamGenerator<T3>::iterator end3_;
  2840. typename ParamGenerator<T3>::iterator current3_;
  2841. ParamType current_value_;
  2842. }; // class CartesianProductGenerator3::Iterator
  2843. // No implementation - assignment is unsupported.
  2844. void operator=(const CartesianProductGenerator3& other);
  2845. const ParamGenerator<T1> g1_;
  2846. const ParamGenerator<T2> g2_;
  2847. const ParamGenerator<T3> g3_;
  2848. }; // class CartesianProductGenerator3
  2849. template <typename T1, typename T2, typename T3, typename T4>
  2850. class CartesianProductGenerator4
  2851. : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3, T4> > {
  2852. public:
  2853. typedef ::std::tr1::tuple<T1, T2, T3, T4> ParamType;
  2854. CartesianProductGenerator4(const ParamGenerator<T1>& g1,
  2855. const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3,
  2856. const ParamGenerator<T4>& g4)
  2857. : g1_(g1), g2_(g2), g3_(g3), g4_(g4) {}
  2858. virtual ~CartesianProductGenerator4() {}
  2859. virtual ParamIteratorInterface<ParamType>* Begin() const {
  2860. return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_,
  2861. g3_.begin(), g4_, g4_.begin());
  2862. }
  2863. virtual ParamIteratorInterface<ParamType>* End() const {
  2864. return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(),
  2865. g4_, g4_.end());
  2866. }
  2867. private:
  2868. class Iterator : public ParamIteratorInterface<ParamType> {
  2869. public:
  2870. Iterator(const ParamGeneratorInterface<ParamType>* base,
  2871. const ParamGenerator<T1>& g1,
  2872. const typename ParamGenerator<T1>::iterator& current1,
  2873. const ParamGenerator<T2>& g2,
  2874. const typename ParamGenerator<T2>::iterator& current2,
  2875. const ParamGenerator<T3>& g3,
  2876. const typename ParamGenerator<T3>::iterator& current3,
  2877. const ParamGenerator<T4>& g4,
  2878. const typename ParamGenerator<T4>::iterator& current4)
  2879. : base_(base),
  2880. begin1_(g1.begin()), end1_(g1.end()), current1_(current1),
  2881. begin2_(g2.begin()), end2_(g2.end()), current2_(current2),
  2882. begin3_(g3.begin()), end3_(g3.end()), current3_(current3),
  2883. begin4_(g4.begin()), end4_(g4.end()), current4_(current4) {
  2884. ComputeCurrentValue();
  2885. }
  2886. virtual ~Iterator() {}
  2887. virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const {
  2888. return base_;
  2889. }
  2890. // Advance should not be called on beyond-of-range iterators
  2891. // so no component iterators must be beyond end of range, either.
  2892. virtual void Advance() {
  2893. assert(!AtEnd());
  2894. ++current4_;
  2895. if (current4_ == end4_) {
  2896. current4_ = begin4_;
  2897. ++current3_;
  2898. }
  2899. if (current3_ == end3_) {
  2900. current3_ = begin3_;
  2901. ++current2_;
  2902. }
  2903. if (current2_ == end2_) {
  2904. current2_ = begin2_;
  2905. ++current1_;
  2906. }
  2907. ComputeCurrentValue();
  2908. }
  2909. virtual ParamIteratorInterface<ParamType>* Clone() const {
  2910. return new Iterator(*this);
  2911. }
  2912. virtual const ParamType* Current() const { return &current_value_; }
  2913. virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const {
  2914. // Having the same base generator guarantees that the other
  2915. // iterator is of the same type and we can downcast.
  2916. GTEST_CHECK_(BaseGenerator() == other.BaseGenerator())
  2917. << "The program attempted to compare iterators "
  2918. << "from different generators." << std::endl;
  2919. const Iterator* typed_other =
  2920. CheckedDowncastToActualType<const Iterator>(&other);
  2921. // We must report iterators equal if they both point beyond their
  2922. // respective ranges. That can happen in a variety of fashions,
  2923. // so we have to consult AtEnd().
  2924. return (AtEnd() && typed_other->AtEnd()) ||
  2925. (
  2926. current1_ == typed_other->current1_ &&
  2927. current2_ == typed_other->current2_ &&
  2928. current3_ == typed_other->current3_ &&
  2929. current4_ == typed_other->current4_);
  2930. }
  2931. private:
  2932. Iterator(const Iterator& other)
  2933. : base_(other.base_),
  2934. begin1_(other.begin1_),
  2935. end1_(other.end1_),
  2936. current1_(other.current1_),
  2937. begin2_(other.begin2_),
  2938. end2_(other.end2_),
  2939. current2_(other.current2_),
  2940. begin3_(other.begin3_),
  2941. end3_(other.end3_),
  2942. current3_(other.current3_),
  2943. begin4_(other.begin4_),
  2944. end4_(other.end4_),
  2945. current4_(other.current4_) {
  2946. ComputeCurrentValue();
  2947. }
  2948. void ComputeCurrentValue() {
  2949. if (!AtEnd())
  2950. current_value_ = ParamType(*current1_, *current2_, *current3_,
  2951. *current4_);
  2952. }
  2953. bool AtEnd() const {
  2954. // We must report iterator past the end of the range when either of the
  2955. // component iterators has reached the end of its range.
  2956. return
  2957. current1_ == end1_ ||
  2958. current2_ == end2_ ||
  2959. current3_ == end3_ ||
  2960. current4_ == end4_;
  2961. }
  2962. // No implementation - assignment is unsupported.
  2963. void operator=(const Iterator& other);
  2964. const ParamGeneratorInterface<ParamType>* const base_;
  2965. // begin[i]_ and end[i]_ define the i-th range that Iterator traverses.
  2966. // current[i]_ is the actual traversing iterator.
  2967. const typename ParamGenerator<T1>::iterator begin1_;
  2968. const typename ParamGenerator<T1>::iterator end1_;
  2969. typename ParamGenerator<T1>::iterator current1_;
  2970. const typename ParamGenerator<T2>::iterator begin2_;
  2971. const typename ParamGenerator<T2>::iterator end2_;
  2972. typename ParamGenerator<T2>::iterator current2_;
  2973. const typename ParamGenerator<T3>::iterator begin3_;
  2974. const typename ParamGenerator<T3>::iterator end3_;
  2975. typename ParamGenerator<T3>::iterator current3_;
  2976. const typename ParamGenerator<T4>::iterator begin4_;
  2977. const typename ParamGenerator<T4>::iterator end4_;
  2978. typename ParamGenerator<T4>::iterator current4_;
  2979. ParamType current_value_;
  2980. }; // class CartesianProductGenerator4::Iterator
  2981. // No implementation - assignment is unsupported.
  2982. void operator=(const CartesianProductGenerator4& other);
  2983. const ParamGenerator<T1> g1_;
  2984. const ParamGenerator<T2> g2_;
  2985. const ParamGenerator<T3> g3_;
  2986. const ParamGenerator<T4> g4_;
  2987. }; // class CartesianProductGenerator4
  2988. template <typename T1, typename T2, typename T3, typename T4, typename T5>
  2989. class CartesianProductGenerator5
  2990. : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3, T4, T5> > {
  2991. public:
  2992. typedef ::std::tr1::tuple<T1, T2, T3, T4, T5> ParamType;
  2993. CartesianProductGenerator5(const ParamGenerator<T1>& g1,
  2994. const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3,
  2995. const ParamGenerator<T4>& g4, const ParamGenerator<T5>& g5)
  2996. : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5) {}
  2997. virtual ~CartesianProductGenerator5() {}
  2998. virtual ParamIteratorInterface<ParamType>* Begin() const {
  2999. return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_,
  3000. g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin());
  3001. }
  3002. virtual ParamIteratorInterface<ParamType>* End() const {
  3003. return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(),
  3004. g4_, g4_.end(), g5_, g5_.end());
  3005. }
  3006. private:
  3007. class Iterator : public ParamIteratorInterface<ParamType> {
  3008. public:
  3009. Iterator(const ParamGeneratorInterface<ParamType>* base,
  3010. const ParamGenerator<T1>& g1,
  3011. const typename ParamGenerator<T1>::iterator& current1,
  3012. const ParamGenerator<T2>& g2,
  3013. const typename ParamGenerator<T2>::iterator& current2,
  3014. const ParamGenerator<T3>& g3,
  3015. const typename ParamGenerator<T3>::iterator& current3,
  3016. const ParamGenerator<T4>& g4,
  3017. const typename ParamGenerator<T4>::iterator& current4,
  3018. const ParamGenerator<T5>& g5,
  3019. const typename ParamGenerator<T5>::iterator& current5)
  3020. : base_(base),
  3021. begin1_(g1.begin()), end1_(g1.end()), current1_(current1),
  3022. begin2_(g2.begin()), end2_(g2.end()), current2_(current2),
  3023. begin3_(g3.begin()), end3_(g3.end()), current3_(current3),
  3024. begin4_(g4.begin()), end4_(g4.end()), current4_(current4),
  3025. begin5_(g5.begin()), end5_(g5.end()), current5_(current5) {
  3026. ComputeCurrentValue();
  3027. }
  3028. virtual ~Iterator() {}
  3029. virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const {
  3030. return base_;
  3031. }
  3032. // Advance should not be called on beyond-of-range iterators
  3033. // so no component iterators must be beyond end of range, either.
  3034. virtual void Advance() {
  3035. assert(!AtEnd());
  3036. ++current5_;
  3037. if (current5_ == end5_) {
  3038. current5_ = begin5_;
  3039. ++current4_;
  3040. }
  3041. if (current4_ == end4_) {
  3042. current4_ = begin4_;
  3043. ++current3_;
  3044. }
  3045. if (current3_ == end3_) {
  3046. current3_ = begin3_;
  3047. ++current2_;
  3048. }
  3049. if (current2_ == end2_) {
  3050. current2_ = begin2_;
  3051. ++current1_;
  3052. }
  3053. ComputeCurrentValue();
  3054. }
  3055. virtual ParamIteratorInterface<ParamType>* Clone() const {
  3056. return new Iterator(*this);
  3057. }
  3058. virtual const ParamType* Current() const { return &current_value_; }
  3059. virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const {
  3060. // Having the same base generator guarantees that the other
  3061. // iterator is of the same type and we can downcast.
  3062. GTEST_CHECK_(BaseGenerator() == other.BaseGenerator())
  3063. << "The program attempted to compare iterators "
  3064. << "from different generators." << std::endl;
  3065. const Iterator* typed_other =
  3066. CheckedDowncastToActualType<const Iterator>(&other);
  3067. // We must report iterators equal if they both point beyond their
  3068. // respective ranges. That can happen in a variety of fashions,
  3069. // so we have to consult AtEnd().
  3070. return (AtEnd() && typed_other->AtEnd()) ||
  3071. (
  3072. current1_ == typed_other->current1_ &&
  3073. current2_ == typed_other->current2_ &&
  3074. current3_ == typed_other->current3_ &&
  3075. current4_ == typed_other->current4_ &&
  3076. current5_ == typed_other->current5_);
  3077. }
  3078. private:
  3079. Iterator(const Iterator& other)
  3080. : base_(other.base_),
  3081. begin1_(other.begin1_),
  3082. end1_(other.end1_),
  3083. current1_(other.current1_),
  3084. begin2_(other.begin2_),
  3085. end2_(other.end2_),
  3086. current2_(other.current2_),
  3087. begin3_(other.begin3_),
  3088. end3_(other.end3_),
  3089. current3_(other.current3_),
  3090. begin4_(other.begin4_),
  3091. end4_(other.end4_),
  3092. current4_(other.current4_),
  3093. begin5_(other.begin5_),
  3094. end5_(other.end5_),
  3095. current5_(other.current5_) {
  3096. ComputeCurrentValue();
  3097. }
  3098. void ComputeCurrentValue() {
  3099. if (!AtEnd())
  3100. current_value_ = ParamType(*current1_, *current2_, *current3_,
  3101. *current4_, *current5_);
  3102. }
  3103. bool AtEnd() const {
  3104. // We must report iterator past the end of the range when either of the
  3105. // component iterators has reached the end of its range.
  3106. return
  3107. current1_ == end1_ ||
  3108. current2_ == end2_ ||
  3109. current3_ == end3_ ||
  3110. current4_ == end4_ ||
  3111. current5_ == end5_;
  3112. }
  3113. // No implementation - assignment is unsupported.
  3114. void operator=(const Iterator& other);
  3115. const ParamGeneratorInterface<ParamType>* const base_;
  3116. // begin[i]_ and end[i]_ define the i-th range that Iterator traverses.
  3117. // current[i]_ is the actual traversing iterator.
  3118. const typename ParamGenerator<T1>::iterator begin1_;
  3119. const typename ParamGenerator<T1>::iterator end1_;
  3120. typename ParamGenerator<T1>::iterator current1_;
  3121. const typename ParamGenerator<T2>::iterator begin2_;
  3122. const typename ParamGenerator<T2>::iterator end2_;
  3123. typename ParamGenerator<T2>::iterator current2_;
  3124. const typename ParamGenerator<T3>::iterator begin3_;
  3125. const typename ParamGenerator<T3>::iterator end3_;
  3126. typename ParamGenerator<T3>::iterator current3_;
  3127. const typename ParamGenerator<T4>::iterator begin4_;
  3128. const typename ParamGenerator<T4>::iterator end4_;
  3129. typename ParamGenerator<T4>::iterator current4_;
  3130. const typename ParamGenerator<T5>::iterator begin5_;
  3131. const typename ParamGenerator<T5>::iterator end5_;
  3132. typename ParamGenerator<T5>::iterator current5_;
  3133. ParamType current_value_;
  3134. }; // class CartesianProductGenerator5::Iterator
  3135. // No implementation - assignment is unsupported.
  3136. void operator=(const CartesianProductGenerator5& other);
  3137. const ParamGenerator<T1> g1_;
  3138. const ParamGenerator<T2> g2_;
  3139. const ParamGenerator<T3> g3_;
  3140. const ParamGenerator<T4> g4_;
  3141. const ParamGenerator<T5> g5_;
  3142. }; // class CartesianProductGenerator5
  3143. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  3144. typename T6>
  3145. class CartesianProductGenerator6
  3146. : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3, T4, T5,
  3147. T6> > {
  3148. public:
  3149. typedef ::std::tr1::tuple<T1, T2, T3, T4, T5, T6> ParamType;
  3150. CartesianProductGenerator6(const ParamGenerator<T1>& g1,
  3151. const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3,
  3152. const ParamGenerator<T4>& g4, const ParamGenerator<T5>& g5,
  3153. const ParamGenerator<T6>& g6)
  3154. : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6) {}
  3155. virtual ~CartesianProductGenerator6() {}
  3156. virtual ParamIteratorInterface<ParamType>* Begin() const {
  3157. return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_,
  3158. g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin());
  3159. }
  3160. virtual ParamIteratorInterface<ParamType>* End() const {
  3161. return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(),
  3162. g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end());
  3163. }
  3164. private:
  3165. class Iterator : public ParamIteratorInterface<ParamType> {
  3166. public:
  3167. Iterator(const ParamGeneratorInterface<ParamType>* base,
  3168. const ParamGenerator<T1>& g1,
  3169. const typename ParamGenerator<T1>::iterator& current1,
  3170. const ParamGenerator<T2>& g2,
  3171. const typename ParamGenerator<T2>::iterator& current2,
  3172. const ParamGenerator<T3>& g3,
  3173. const typename ParamGenerator<T3>::iterator& current3,
  3174. const ParamGenerator<T4>& g4,
  3175. const typename ParamGenerator<T4>::iterator& current4,
  3176. const ParamGenerator<T5>& g5,
  3177. const typename ParamGenerator<T5>::iterator& current5,
  3178. const ParamGenerator<T6>& g6,
  3179. const typename ParamGenerator<T6>::iterator& current6)
  3180. : base_(base),
  3181. begin1_(g1.begin()), end1_(g1.end()), current1_(current1),
  3182. begin2_(g2.begin()), end2_(g2.end()), current2_(current2),
  3183. begin3_(g3.begin()), end3_(g3.end()), current3_(current3),
  3184. begin4_(g4.begin()), end4_(g4.end()), current4_(current4),
  3185. begin5_(g5.begin()), end5_(g5.end()), current5_(current5),
  3186. begin6_(g6.begin()), end6_(g6.end()), current6_(current6) {
  3187. ComputeCurrentValue();
  3188. }
  3189. virtual ~Iterator() {}
  3190. virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const {
  3191. return base_;
  3192. }
  3193. // Advance should not be called on beyond-of-range iterators
  3194. // so no component iterators must be beyond end of range, either.
  3195. virtual void Advance() {
  3196. assert(!AtEnd());
  3197. ++current6_;
  3198. if (current6_ == end6_) {
  3199. current6_ = begin6_;
  3200. ++current5_;
  3201. }
  3202. if (current5_ == end5_) {
  3203. current5_ = begin5_;
  3204. ++current4_;
  3205. }
  3206. if (current4_ == end4_) {
  3207. current4_ = begin4_;
  3208. ++current3_;
  3209. }
  3210. if (current3_ == end3_) {
  3211. current3_ = begin3_;
  3212. ++current2_;
  3213. }
  3214. if (current2_ == end2_) {
  3215. current2_ = begin2_;
  3216. ++current1_;
  3217. }
  3218. ComputeCurrentValue();
  3219. }
  3220. virtual ParamIteratorInterface<ParamType>* Clone() const {
  3221. return new Iterator(*this);
  3222. }
  3223. virtual const ParamType* Current() const { return &current_value_; }
  3224. virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const {
  3225. // Having the same base generator guarantees that the other
  3226. // iterator is of the same type and we can downcast.
  3227. GTEST_CHECK_(BaseGenerator() == other.BaseGenerator())
  3228. << "The program attempted to compare iterators "
  3229. << "from different generators." << std::endl;
  3230. const Iterator* typed_other =
  3231. CheckedDowncastToActualType<const Iterator>(&other);
  3232. // We must report iterators equal if they both point beyond their
  3233. // respective ranges. That can happen in a variety of fashions,
  3234. // so we have to consult AtEnd().
  3235. return (AtEnd() && typed_other->AtEnd()) ||
  3236. (
  3237. current1_ == typed_other->current1_ &&
  3238. current2_ == typed_other->current2_ &&
  3239. current3_ == typed_other->current3_ &&
  3240. current4_ == typed_other->current4_ &&
  3241. current5_ == typed_other->current5_ &&
  3242. current6_ == typed_other->current6_);
  3243. }
  3244. private:
  3245. Iterator(const Iterator& other)
  3246. : base_(other.base_),
  3247. begin1_(other.begin1_),
  3248. end1_(other.end1_),
  3249. current1_(other.current1_),
  3250. begin2_(other.begin2_),
  3251. end2_(other.end2_),
  3252. current2_(other.current2_),
  3253. begin3_(other.begin3_),
  3254. end3_(other.end3_),
  3255. current3_(other.current3_),
  3256. begin4_(other.begin4_),
  3257. end4_(other.end4_),
  3258. current4_(other.current4_),
  3259. begin5_(other.begin5_),
  3260. end5_(other.end5_),
  3261. current5_(other.current5_),
  3262. begin6_(other.begin6_),
  3263. end6_(other.end6_),
  3264. current6_(other.current6_) {
  3265. ComputeCurrentValue();
  3266. }
  3267. void ComputeCurrentValue() {
  3268. if (!AtEnd())
  3269. current_value_ = ParamType(*current1_, *current2_, *current3_,
  3270. *current4_, *current5_, *current6_);
  3271. }
  3272. bool AtEnd() const {
  3273. // We must report iterator past the end of the range when either of the
  3274. // component iterators has reached the end of its range.
  3275. return
  3276. current1_ == end1_ ||
  3277. current2_ == end2_ ||
  3278. current3_ == end3_ ||
  3279. current4_ == end4_ ||
  3280. current5_ == end5_ ||
  3281. current6_ == end6_;
  3282. }
  3283. // No implementation - assignment is unsupported.
  3284. void operator=(const Iterator& other);
  3285. const ParamGeneratorInterface<ParamType>* const base_;
  3286. // begin[i]_ and end[i]_ define the i-th range that Iterator traverses.
  3287. // current[i]_ is the actual traversing iterator.
  3288. const typename ParamGenerator<T1>::iterator begin1_;
  3289. const typename ParamGenerator<T1>::iterator end1_;
  3290. typename ParamGenerator<T1>::iterator current1_;
  3291. const typename ParamGenerator<T2>::iterator begin2_;
  3292. const typename ParamGenerator<T2>::iterator end2_;
  3293. typename ParamGenerator<T2>::iterator current2_;
  3294. const typename ParamGenerator<T3>::iterator begin3_;
  3295. const typename ParamGenerator<T3>::iterator end3_;
  3296. typename ParamGenerator<T3>::iterator current3_;
  3297. const typename ParamGenerator<T4>::iterator begin4_;
  3298. const typename ParamGenerator<T4>::iterator end4_;
  3299. typename ParamGenerator<T4>::iterator current4_;
  3300. const typename ParamGenerator<T5>::iterator begin5_;
  3301. const typename ParamGenerator<T5>::iterator end5_;
  3302. typename ParamGenerator<T5>::iterator current5_;
  3303. const typename ParamGenerator<T6>::iterator begin6_;
  3304. const typename ParamGenerator<T6>::iterator end6_;
  3305. typename ParamGenerator<T6>::iterator current6_;
  3306. ParamType current_value_;
  3307. }; // class CartesianProductGenerator6::Iterator
  3308. // No implementation - assignment is unsupported.
  3309. void operator=(const CartesianProductGenerator6& other);
  3310. const ParamGenerator<T1> g1_;
  3311. const ParamGenerator<T2> g2_;
  3312. const ParamGenerator<T3> g3_;
  3313. const ParamGenerator<T4> g4_;
  3314. const ParamGenerator<T5> g5_;
  3315. const ParamGenerator<T6> g6_;
  3316. }; // class CartesianProductGenerator6
  3317. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  3318. typename T6, typename T7>
  3319. class CartesianProductGenerator7
  3320. : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6,
  3321. T7> > {
  3322. public:
  3323. typedef ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7> ParamType;
  3324. CartesianProductGenerator7(const ParamGenerator<T1>& g1,
  3325. const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3,
  3326. const ParamGenerator<T4>& g4, const ParamGenerator<T5>& g5,
  3327. const ParamGenerator<T6>& g6, const ParamGenerator<T7>& g7)
  3328. : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7) {}
  3329. virtual ~CartesianProductGenerator7() {}
  3330. virtual ParamIteratorInterface<ParamType>* Begin() const {
  3331. return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_,
  3332. g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin(), g7_,
  3333. g7_.begin());
  3334. }
  3335. virtual ParamIteratorInterface<ParamType>* End() const {
  3336. return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(),
  3337. g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end(), g7_, g7_.end());
  3338. }
  3339. private:
  3340. class Iterator : public ParamIteratorInterface<ParamType> {
  3341. public:
  3342. Iterator(const ParamGeneratorInterface<ParamType>* base,
  3343. const ParamGenerator<T1>& g1,
  3344. const typename ParamGenerator<T1>::iterator& current1,
  3345. const ParamGenerator<T2>& g2,
  3346. const typename ParamGenerator<T2>::iterator& current2,
  3347. const ParamGenerator<T3>& g3,
  3348. const typename ParamGenerator<T3>::iterator& current3,
  3349. const ParamGenerator<T4>& g4,
  3350. const typename ParamGenerator<T4>::iterator& current4,
  3351. const ParamGenerator<T5>& g5,
  3352. const typename ParamGenerator<T5>::iterator& current5,
  3353. const ParamGenerator<T6>& g6,
  3354. const typename ParamGenerator<T6>::iterator& current6,
  3355. const ParamGenerator<T7>& g7,
  3356. const typename ParamGenerator<T7>::iterator& current7)
  3357. : base_(base),
  3358. begin1_(g1.begin()), end1_(g1.end()), current1_(current1),
  3359. begin2_(g2.begin()), end2_(g2.end()), current2_(current2),
  3360. begin3_(g3.begin()), end3_(g3.end()), current3_(current3),
  3361. begin4_(g4.begin()), end4_(g4.end()), current4_(current4),
  3362. begin5_(g5.begin()), end5_(g5.end()), current5_(current5),
  3363. begin6_(g6.begin()), end6_(g6.end()), current6_(current6),
  3364. begin7_(g7.begin()), end7_(g7.end()), current7_(current7) {
  3365. ComputeCurrentValue();
  3366. }
  3367. virtual ~Iterator() {}
  3368. virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const {
  3369. return base_;
  3370. }
  3371. // Advance should not be called on beyond-of-range iterators
  3372. // so no component iterators must be beyond end of range, either.
  3373. virtual void Advance() {
  3374. assert(!AtEnd());
  3375. ++current7_;
  3376. if (current7_ == end7_) {
  3377. current7_ = begin7_;
  3378. ++current6_;
  3379. }
  3380. if (current6_ == end6_) {
  3381. current6_ = begin6_;
  3382. ++current5_;
  3383. }
  3384. if (current5_ == end5_) {
  3385. current5_ = begin5_;
  3386. ++current4_;
  3387. }
  3388. if (current4_ == end4_) {
  3389. current4_ = begin4_;
  3390. ++current3_;
  3391. }
  3392. if (current3_ == end3_) {
  3393. current3_ = begin3_;
  3394. ++current2_;
  3395. }
  3396. if (current2_ == end2_) {
  3397. current2_ = begin2_;
  3398. ++current1_;
  3399. }
  3400. ComputeCurrentValue();
  3401. }
  3402. virtual ParamIteratorInterface<ParamType>* Clone() const {
  3403. return new Iterator(*this);
  3404. }
  3405. virtual const ParamType* Current() const { return &current_value_; }
  3406. virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const {
  3407. // Having the same base generator guarantees that the other
  3408. // iterator is of the same type and we can downcast.
  3409. GTEST_CHECK_(BaseGenerator() == other.BaseGenerator())
  3410. << "The program attempted to compare iterators "
  3411. << "from different generators." << std::endl;
  3412. const Iterator* typed_other =
  3413. CheckedDowncastToActualType<const Iterator>(&other);
  3414. // We must report iterators equal if they both point beyond their
  3415. // respective ranges. That can happen in a variety of fashions,
  3416. // so we have to consult AtEnd().
  3417. return (AtEnd() && typed_other->AtEnd()) ||
  3418. (
  3419. current1_ == typed_other->current1_ &&
  3420. current2_ == typed_other->current2_ &&
  3421. current3_ == typed_other->current3_ &&
  3422. current4_ == typed_other->current4_ &&
  3423. current5_ == typed_other->current5_ &&
  3424. current6_ == typed_other->current6_ &&
  3425. current7_ == typed_other->current7_);
  3426. }
  3427. private:
  3428. Iterator(const Iterator& other)
  3429. : base_(other.base_),
  3430. begin1_(other.begin1_),
  3431. end1_(other.end1_),
  3432. current1_(other.current1_),
  3433. begin2_(other.begin2_),
  3434. end2_(other.end2_),
  3435. current2_(other.current2_),
  3436. begin3_(other.begin3_),
  3437. end3_(other.end3_),
  3438. current3_(other.current3_),
  3439. begin4_(other.begin4_),
  3440. end4_(other.end4_),
  3441. current4_(other.current4_),
  3442. begin5_(other.begin5_),
  3443. end5_(other.end5_),
  3444. current5_(other.current5_),
  3445. begin6_(other.begin6_),
  3446. end6_(other.end6_),
  3447. current6_(other.current6_),
  3448. begin7_(other.begin7_),
  3449. end7_(other.end7_),
  3450. current7_(other.current7_) {
  3451. ComputeCurrentValue();
  3452. }
  3453. void ComputeCurrentValue() {
  3454. if (!AtEnd())
  3455. current_value_ = ParamType(*current1_, *current2_, *current3_,
  3456. *current4_, *current5_, *current6_, *current7_);
  3457. }
  3458. bool AtEnd() const {
  3459. // We must report iterator past the end of the range when either of the
  3460. // component iterators has reached the end of its range.
  3461. return
  3462. current1_ == end1_ ||
  3463. current2_ == end2_ ||
  3464. current3_ == end3_ ||
  3465. current4_ == end4_ ||
  3466. current5_ == end5_ ||
  3467. current6_ == end6_ ||
  3468. current7_ == end7_;
  3469. }
  3470. // No implementation - assignment is unsupported.
  3471. void operator=(const Iterator& other);
  3472. const ParamGeneratorInterface<ParamType>* const base_;
  3473. // begin[i]_ and end[i]_ define the i-th range that Iterator traverses.
  3474. // current[i]_ is the actual traversing iterator.
  3475. const typename ParamGenerator<T1>::iterator begin1_;
  3476. const typename ParamGenerator<T1>::iterator end1_;
  3477. typename ParamGenerator<T1>::iterator current1_;
  3478. const typename ParamGenerator<T2>::iterator begin2_;
  3479. const typename ParamGenerator<T2>::iterator end2_;
  3480. typename ParamGenerator<T2>::iterator current2_;
  3481. const typename ParamGenerator<T3>::iterator begin3_;
  3482. const typename ParamGenerator<T3>::iterator end3_;
  3483. typename ParamGenerator<T3>::iterator current3_;
  3484. const typename ParamGenerator<T4>::iterator begin4_;
  3485. const typename ParamGenerator<T4>::iterator end4_;
  3486. typename ParamGenerator<T4>::iterator current4_;
  3487. const typename ParamGenerator<T5>::iterator begin5_;
  3488. const typename ParamGenerator<T5>::iterator end5_;
  3489. typename ParamGenerator<T5>::iterator current5_;
  3490. const typename ParamGenerator<T6>::iterator begin6_;
  3491. const typename ParamGenerator<T6>::iterator end6_;
  3492. typename ParamGenerator<T6>::iterator current6_;
  3493. const typename ParamGenerator<T7>::iterator begin7_;
  3494. const typename ParamGenerator<T7>::iterator end7_;
  3495. typename ParamGenerator<T7>::iterator current7_;
  3496. ParamType current_value_;
  3497. }; // class CartesianProductGenerator7::Iterator
  3498. // No implementation - assignment is unsupported.
  3499. void operator=(const CartesianProductGenerator7& other);
  3500. const ParamGenerator<T1> g1_;
  3501. const ParamGenerator<T2> g2_;
  3502. const ParamGenerator<T3> g3_;
  3503. const ParamGenerator<T4> g4_;
  3504. const ParamGenerator<T5> g5_;
  3505. const ParamGenerator<T6> g6_;
  3506. const ParamGenerator<T7> g7_;
  3507. }; // class CartesianProductGenerator7
  3508. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  3509. typename T6, typename T7, typename T8>
  3510. class CartesianProductGenerator8
  3511. : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6,
  3512. T7, T8> > {
  3513. public:
  3514. typedef ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8> ParamType;
  3515. CartesianProductGenerator8(const ParamGenerator<T1>& g1,
  3516. const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3,
  3517. const ParamGenerator<T4>& g4, const ParamGenerator<T5>& g5,
  3518. const ParamGenerator<T6>& g6, const ParamGenerator<T7>& g7,
  3519. const ParamGenerator<T8>& g8)
  3520. : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7),
  3521. g8_(g8) {}
  3522. virtual ~CartesianProductGenerator8() {}
  3523. virtual ParamIteratorInterface<ParamType>* Begin() const {
  3524. return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_,
  3525. g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin(), g7_,
  3526. g7_.begin(), g8_, g8_.begin());
  3527. }
  3528. virtual ParamIteratorInterface<ParamType>* End() const {
  3529. return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(),
  3530. g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end(), g7_, g7_.end(), g8_,
  3531. g8_.end());
  3532. }
  3533. private:
  3534. class Iterator : public ParamIteratorInterface<ParamType> {
  3535. public:
  3536. Iterator(const ParamGeneratorInterface<ParamType>* base,
  3537. const ParamGenerator<T1>& g1,
  3538. const typename ParamGenerator<T1>::iterator& current1,
  3539. const ParamGenerator<T2>& g2,
  3540. const typename ParamGenerator<T2>::iterator& current2,
  3541. const ParamGenerator<T3>& g3,
  3542. const typename ParamGenerator<T3>::iterator& current3,
  3543. const ParamGenerator<T4>& g4,
  3544. const typename ParamGenerator<T4>::iterator& current4,
  3545. const ParamGenerator<T5>& g5,
  3546. const typename ParamGenerator<T5>::iterator& current5,
  3547. const ParamGenerator<T6>& g6,
  3548. const typename ParamGenerator<T6>::iterator& current6,
  3549. const ParamGenerator<T7>& g7,
  3550. const typename ParamGenerator<T7>::iterator& current7,
  3551. const ParamGenerator<T8>& g8,
  3552. const typename ParamGenerator<T8>::iterator& current8)
  3553. : base_(base),
  3554. begin1_(g1.begin()), end1_(g1.end()), current1_(current1),
  3555. begin2_(g2.begin()), end2_(g2.end()), current2_(current2),
  3556. begin3_(g3.begin()), end3_(g3.end()), current3_(current3),
  3557. begin4_(g4.begin()), end4_(g4.end()), current4_(current4),
  3558. begin5_(g5.begin()), end5_(g5.end()), current5_(current5),
  3559. begin6_(g6.begin()), end6_(g6.end()), current6_(current6),
  3560. begin7_(g7.begin()), end7_(g7.end()), current7_(current7),
  3561. begin8_(g8.begin()), end8_(g8.end()), current8_(current8) {
  3562. ComputeCurrentValue();
  3563. }
  3564. virtual ~Iterator() {}
  3565. virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const {
  3566. return base_;
  3567. }
  3568. // Advance should not be called on beyond-of-range iterators
  3569. // so no component iterators must be beyond end of range, either.
  3570. virtual void Advance() {
  3571. assert(!AtEnd());
  3572. ++current8_;
  3573. if (current8_ == end8_) {
  3574. current8_ = begin8_;
  3575. ++current7_;
  3576. }
  3577. if (current7_ == end7_) {
  3578. current7_ = begin7_;
  3579. ++current6_;
  3580. }
  3581. if (current6_ == end6_) {
  3582. current6_ = begin6_;
  3583. ++current5_;
  3584. }
  3585. if (current5_ == end5_) {
  3586. current5_ = begin5_;
  3587. ++current4_;
  3588. }
  3589. if (current4_ == end4_) {
  3590. current4_ = begin4_;
  3591. ++current3_;
  3592. }
  3593. if (current3_ == end3_) {
  3594. current3_ = begin3_;
  3595. ++current2_;
  3596. }
  3597. if (current2_ == end2_) {
  3598. current2_ = begin2_;
  3599. ++current1_;
  3600. }
  3601. ComputeCurrentValue();
  3602. }
  3603. virtual ParamIteratorInterface<ParamType>* Clone() const {
  3604. return new Iterator(*this);
  3605. }
  3606. virtual const ParamType* Current() const { return &current_value_; }
  3607. virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const {
  3608. // Having the same base generator guarantees that the other
  3609. // iterator is of the same type and we can downcast.
  3610. GTEST_CHECK_(BaseGenerator() == other.BaseGenerator())
  3611. << "The program attempted to compare iterators "
  3612. << "from different generators." << std::endl;
  3613. const Iterator* typed_other =
  3614. CheckedDowncastToActualType<const Iterator>(&other);
  3615. // We must report iterators equal if they both point beyond their
  3616. // respective ranges. That can happen in a variety of fashions,
  3617. // so we have to consult AtEnd().
  3618. return (AtEnd() && typed_other->AtEnd()) ||
  3619. (
  3620. current1_ == typed_other->current1_ &&
  3621. current2_ == typed_other->current2_ &&
  3622. current3_ == typed_other->current3_ &&
  3623. current4_ == typed_other->current4_ &&
  3624. current5_ == typed_other->current5_ &&
  3625. current6_ == typed_other->current6_ &&
  3626. current7_ == typed_other->current7_ &&
  3627. current8_ == typed_other->current8_);
  3628. }
  3629. private:
  3630. Iterator(const Iterator& other)
  3631. : base_(other.base_),
  3632. begin1_(other.begin1_),
  3633. end1_(other.end1_),
  3634. current1_(other.current1_),
  3635. begin2_(other.begin2_),
  3636. end2_(other.end2_),
  3637. current2_(other.current2_),
  3638. begin3_(other.begin3_),
  3639. end3_(other.end3_),
  3640. current3_(other.current3_),
  3641. begin4_(other.begin4_),
  3642. end4_(other.end4_),
  3643. current4_(other.current4_),
  3644. begin5_(other.begin5_),
  3645. end5_(other.end5_),
  3646. current5_(other.current5_),
  3647. begin6_(other.begin6_),
  3648. end6_(other.end6_),
  3649. current6_(other.current6_),
  3650. begin7_(other.begin7_),
  3651. end7_(other.end7_),
  3652. current7_(other.current7_),
  3653. begin8_(other.begin8_),
  3654. end8_(other.end8_),
  3655. current8_(other.current8_) {
  3656. ComputeCurrentValue();
  3657. }
  3658. void ComputeCurrentValue() {
  3659. if (!AtEnd())
  3660. current_value_ = ParamType(*current1_, *current2_, *current3_,
  3661. *current4_, *current5_, *current6_, *current7_, *current8_);
  3662. }
  3663. bool AtEnd() const {
  3664. // We must report iterator past the end of the range when either of the
  3665. // component iterators has reached the end of its range.
  3666. return
  3667. current1_ == end1_ ||
  3668. current2_ == end2_ ||
  3669. current3_ == end3_ ||
  3670. current4_ == end4_ ||
  3671. current5_ == end5_ ||
  3672. current6_ == end6_ ||
  3673. current7_ == end7_ ||
  3674. current8_ == end8_;
  3675. }
  3676. // No implementation - assignment is unsupported.
  3677. void operator=(const Iterator& other);
  3678. const ParamGeneratorInterface<ParamType>* const base_;
  3679. // begin[i]_ and end[i]_ define the i-th range that Iterator traverses.
  3680. // current[i]_ is the actual traversing iterator.
  3681. const typename ParamGenerator<T1>::iterator begin1_;
  3682. const typename ParamGenerator<T1>::iterator end1_;
  3683. typename ParamGenerator<T1>::iterator current1_;
  3684. const typename ParamGenerator<T2>::iterator begin2_;
  3685. const typename ParamGenerator<T2>::iterator end2_;
  3686. typename ParamGenerator<T2>::iterator current2_;
  3687. const typename ParamGenerator<T3>::iterator begin3_;
  3688. const typename ParamGenerator<T3>::iterator end3_;
  3689. typename ParamGenerator<T3>::iterator current3_;
  3690. const typename ParamGenerator<T4>::iterator begin4_;
  3691. const typename ParamGenerator<T4>::iterator end4_;
  3692. typename ParamGenerator<T4>::iterator current4_;
  3693. const typename ParamGenerator<T5>::iterator begin5_;
  3694. const typename ParamGenerator<T5>::iterator end5_;
  3695. typename ParamGenerator<T5>::iterator current5_;
  3696. const typename ParamGenerator<T6>::iterator begin6_;
  3697. const typename ParamGenerator<T6>::iterator end6_;
  3698. typename ParamGenerator<T6>::iterator current6_;
  3699. const typename ParamGenerator<T7>::iterator begin7_;
  3700. const typename ParamGenerator<T7>::iterator end7_;
  3701. typename ParamGenerator<T7>::iterator current7_;
  3702. const typename ParamGenerator<T8>::iterator begin8_;
  3703. const typename ParamGenerator<T8>::iterator end8_;
  3704. typename ParamGenerator<T8>::iterator current8_;
  3705. ParamType current_value_;
  3706. }; // class CartesianProductGenerator8::Iterator
  3707. // No implementation - assignment is unsupported.
  3708. void operator=(const CartesianProductGenerator8& other);
  3709. const ParamGenerator<T1> g1_;
  3710. const ParamGenerator<T2> g2_;
  3711. const ParamGenerator<T3> g3_;
  3712. const ParamGenerator<T4> g4_;
  3713. const ParamGenerator<T5> g5_;
  3714. const ParamGenerator<T6> g6_;
  3715. const ParamGenerator<T7> g7_;
  3716. const ParamGenerator<T8> g8_;
  3717. }; // class CartesianProductGenerator8
  3718. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  3719. typename T6, typename T7, typename T8, typename T9>
  3720. class CartesianProductGenerator9
  3721. : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6,
  3722. T7, T8, T9> > {
  3723. public:
  3724. typedef ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9> ParamType;
  3725. CartesianProductGenerator9(const ParamGenerator<T1>& g1,
  3726. const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3,
  3727. const ParamGenerator<T4>& g4, const ParamGenerator<T5>& g5,
  3728. const ParamGenerator<T6>& g6, const ParamGenerator<T7>& g7,
  3729. const ParamGenerator<T8>& g8, const ParamGenerator<T9>& g9)
  3730. : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), g8_(g8),
  3731. g9_(g9) {}
  3732. virtual ~CartesianProductGenerator9() {}
  3733. virtual ParamIteratorInterface<ParamType>* Begin() const {
  3734. return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_,
  3735. g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin(), g7_,
  3736. g7_.begin(), g8_, g8_.begin(), g9_, g9_.begin());
  3737. }
  3738. virtual ParamIteratorInterface<ParamType>* End() const {
  3739. return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(),
  3740. g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end(), g7_, g7_.end(), g8_,
  3741. g8_.end(), g9_, g9_.end());
  3742. }
  3743. private:
  3744. class Iterator : public ParamIteratorInterface<ParamType> {
  3745. public:
  3746. Iterator(const ParamGeneratorInterface<ParamType>* base,
  3747. const ParamGenerator<T1>& g1,
  3748. const typename ParamGenerator<T1>::iterator& current1,
  3749. const ParamGenerator<T2>& g2,
  3750. const typename ParamGenerator<T2>::iterator& current2,
  3751. const ParamGenerator<T3>& g3,
  3752. const typename ParamGenerator<T3>::iterator& current3,
  3753. const ParamGenerator<T4>& g4,
  3754. const typename ParamGenerator<T4>::iterator& current4,
  3755. const ParamGenerator<T5>& g5,
  3756. const typename ParamGenerator<T5>::iterator& current5,
  3757. const ParamGenerator<T6>& g6,
  3758. const typename ParamGenerator<T6>::iterator& current6,
  3759. const ParamGenerator<T7>& g7,
  3760. const typename ParamGenerator<T7>::iterator& current7,
  3761. const ParamGenerator<T8>& g8,
  3762. const typename ParamGenerator<T8>::iterator& current8,
  3763. const ParamGenerator<T9>& g9,
  3764. const typename ParamGenerator<T9>::iterator& current9)
  3765. : base_(base),
  3766. begin1_(g1.begin()), end1_(g1.end()), current1_(current1),
  3767. begin2_(g2.begin()), end2_(g2.end()), current2_(current2),
  3768. begin3_(g3.begin()), end3_(g3.end()), current3_(current3),
  3769. begin4_(g4.begin()), end4_(g4.end()), current4_(current4),
  3770. begin5_(g5.begin()), end5_(g5.end()), current5_(current5),
  3771. begin6_(g6.begin()), end6_(g6.end()), current6_(current6),
  3772. begin7_(g7.begin()), end7_(g7.end()), current7_(current7),
  3773. begin8_(g8.begin()), end8_(g8.end()), current8_(current8),
  3774. begin9_(g9.begin()), end9_(g9.end()), current9_(current9) {
  3775. ComputeCurrentValue();
  3776. }
  3777. virtual ~Iterator() {}
  3778. virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const {
  3779. return base_;
  3780. }
  3781. // Advance should not be called on beyond-of-range iterators
  3782. // so no component iterators must be beyond end of range, either.
  3783. virtual void Advance() {
  3784. assert(!AtEnd());
  3785. ++current9_;
  3786. if (current9_ == end9_) {
  3787. current9_ = begin9_;
  3788. ++current8_;
  3789. }
  3790. if (current8_ == end8_) {
  3791. current8_ = begin8_;
  3792. ++current7_;
  3793. }
  3794. if (current7_ == end7_) {
  3795. current7_ = begin7_;
  3796. ++current6_;
  3797. }
  3798. if (current6_ == end6_) {
  3799. current6_ = begin6_;
  3800. ++current5_;
  3801. }
  3802. if (current5_ == end5_) {
  3803. current5_ = begin5_;
  3804. ++current4_;
  3805. }
  3806. if (current4_ == end4_) {
  3807. current4_ = begin4_;
  3808. ++current3_;
  3809. }
  3810. if (current3_ == end3_) {
  3811. current3_ = begin3_;
  3812. ++current2_;
  3813. }
  3814. if (current2_ == end2_) {
  3815. current2_ = begin2_;
  3816. ++current1_;
  3817. }
  3818. ComputeCurrentValue();
  3819. }
  3820. virtual ParamIteratorInterface<ParamType>* Clone() const {
  3821. return new Iterator(*this);
  3822. }
  3823. virtual const ParamType* Current() const { return &current_value_; }
  3824. virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const {
  3825. // Having the same base generator guarantees that the other
  3826. // iterator is of the same type and we can downcast.
  3827. GTEST_CHECK_(BaseGenerator() == other.BaseGenerator())
  3828. << "The program attempted to compare iterators "
  3829. << "from different generators." << std::endl;
  3830. const Iterator* typed_other =
  3831. CheckedDowncastToActualType<const Iterator>(&other);
  3832. // We must report iterators equal if they both point beyond their
  3833. // respective ranges. That can happen in a variety of fashions,
  3834. // so we have to consult AtEnd().
  3835. return (AtEnd() && typed_other->AtEnd()) ||
  3836. (
  3837. current1_ == typed_other->current1_ &&
  3838. current2_ == typed_other->current2_ &&
  3839. current3_ == typed_other->current3_ &&
  3840. current4_ == typed_other->current4_ &&
  3841. current5_ == typed_other->current5_ &&
  3842. current6_ == typed_other->current6_ &&
  3843. current7_ == typed_other->current7_ &&
  3844. current8_ == typed_other->current8_ &&
  3845. current9_ == typed_other->current9_);
  3846. }
  3847. private:
  3848. Iterator(const Iterator& other)
  3849. : base_(other.base_),
  3850. begin1_(other.begin1_),
  3851. end1_(other.end1_),
  3852. current1_(other.current1_),
  3853. begin2_(other.begin2_),
  3854. end2_(other.end2_),
  3855. current2_(other.current2_),
  3856. begin3_(other.begin3_),
  3857. end3_(other.end3_),
  3858. current3_(other.current3_),
  3859. begin4_(other.begin4_),
  3860. end4_(other.end4_),
  3861. current4_(other.current4_),
  3862. begin5_(other.begin5_),
  3863. end5_(other.end5_),
  3864. current5_(other.current5_),
  3865. begin6_(other.begin6_),
  3866. end6_(other.end6_),
  3867. current6_(other.current6_),
  3868. begin7_(other.begin7_),
  3869. end7_(other.end7_),
  3870. current7_(other.current7_),
  3871. begin8_(other.begin8_),
  3872. end8_(other.end8_),
  3873. current8_(other.current8_),
  3874. begin9_(other.begin9_),
  3875. end9_(other.end9_),
  3876. current9_(other.current9_) {
  3877. ComputeCurrentValue();
  3878. }
  3879. void ComputeCurrentValue() {
  3880. if (!AtEnd())
  3881. current_value_ = ParamType(*current1_, *current2_, *current3_,
  3882. *current4_, *current5_, *current6_, *current7_, *current8_,
  3883. *current9_);
  3884. }
  3885. bool AtEnd() const {
  3886. // We must report iterator past the end of the range when either of the
  3887. // component iterators has reached the end of its range.
  3888. return
  3889. current1_ == end1_ ||
  3890. current2_ == end2_ ||
  3891. current3_ == end3_ ||
  3892. current4_ == end4_ ||
  3893. current5_ == end5_ ||
  3894. current6_ == end6_ ||
  3895. current7_ == end7_ ||
  3896. current8_ == end8_ ||
  3897. current9_ == end9_;
  3898. }
  3899. // No implementation - assignment is unsupported.
  3900. void operator=(const Iterator& other);
  3901. const ParamGeneratorInterface<ParamType>* const base_;
  3902. // begin[i]_ and end[i]_ define the i-th range that Iterator traverses.
  3903. // current[i]_ is the actual traversing iterator.
  3904. const typename ParamGenerator<T1>::iterator begin1_;
  3905. const typename ParamGenerator<T1>::iterator end1_;
  3906. typename ParamGenerator<T1>::iterator current1_;
  3907. const typename ParamGenerator<T2>::iterator begin2_;
  3908. const typename ParamGenerator<T2>::iterator end2_;
  3909. typename ParamGenerator<T2>::iterator current2_;
  3910. const typename ParamGenerator<T3>::iterator begin3_;
  3911. const typename ParamGenerator<T3>::iterator end3_;
  3912. typename ParamGenerator<T3>::iterator current3_;
  3913. const typename ParamGenerator<T4>::iterator begin4_;
  3914. const typename ParamGenerator<T4>::iterator end4_;
  3915. typename ParamGenerator<T4>::iterator current4_;
  3916. const typename ParamGenerator<T5>::iterator begin5_;
  3917. const typename ParamGenerator<T5>::iterator end5_;
  3918. typename ParamGenerator<T5>::iterator current5_;
  3919. const typename ParamGenerator<T6>::iterator begin6_;
  3920. const typename ParamGenerator<T6>::iterator end6_;
  3921. typename ParamGenerator<T6>::iterator current6_;
  3922. const typename ParamGenerator<T7>::iterator begin7_;
  3923. const typename ParamGenerator<T7>::iterator end7_;
  3924. typename ParamGenerator<T7>::iterator current7_;
  3925. const typename ParamGenerator<T8>::iterator begin8_;
  3926. const typename ParamGenerator<T8>::iterator end8_;
  3927. typename ParamGenerator<T8>::iterator current8_;
  3928. const typename ParamGenerator<T9>::iterator begin9_;
  3929. const typename ParamGenerator<T9>::iterator end9_;
  3930. typename ParamGenerator<T9>::iterator current9_;
  3931. ParamType current_value_;
  3932. }; // class CartesianProductGenerator9::Iterator
  3933. // No implementation - assignment is unsupported.
  3934. void operator=(const CartesianProductGenerator9& other);
  3935. const ParamGenerator<T1> g1_;
  3936. const ParamGenerator<T2> g2_;
  3937. const ParamGenerator<T3> g3_;
  3938. const ParamGenerator<T4> g4_;
  3939. const ParamGenerator<T5> g5_;
  3940. const ParamGenerator<T6> g6_;
  3941. const ParamGenerator<T7> g7_;
  3942. const ParamGenerator<T8> g8_;
  3943. const ParamGenerator<T9> g9_;
  3944. }; // class CartesianProductGenerator9
  3945. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  3946. typename T6, typename T7, typename T8, typename T9, typename T10>
  3947. class CartesianProductGenerator10
  3948. : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6,
  3949. T7, T8, T9, T10> > {
  3950. public:
  3951. typedef ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> ParamType;
  3952. CartesianProductGenerator10(const ParamGenerator<T1>& g1,
  3953. const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3,
  3954. const ParamGenerator<T4>& g4, const ParamGenerator<T5>& g5,
  3955. const ParamGenerator<T6>& g6, const ParamGenerator<T7>& g7,
  3956. const ParamGenerator<T8>& g8, const ParamGenerator<T9>& g9,
  3957. const ParamGenerator<T10>& g10)
  3958. : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), g8_(g8),
  3959. g9_(g9), g10_(g10) {}
  3960. virtual ~CartesianProductGenerator10() {}
  3961. virtual ParamIteratorInterface<ParamType>* Begin() const {
  3962. return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_,
  3963. g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin(), g7_,
  3964. g7_.begin(), g8_, g8_.begin(), g9_, g9_.begin(), g10_, g10_.begin());
  3965. }
  3966. virtual ParamIteratorInterface<ParamType>* End() const {
  3967. return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(),
  3968. g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end(), g7_, g7_.end(), g8_,
  3969. g8_.end(), g9_, g9_.end(), g10_, g10_.end());
  3970. }
  3971. private:
  3972. class Iterator : public ParamIteratorInterface<ParamType> {
  3973. public:
  3974. Iterator(const ParamGeneratorInterface<ParamType>* base,
  3975. const ParamGenerator<T1>& g1,
  3976. const typename ParamGenerator<T1>::iterator& current1,
  3977. const ParamGenerator<T2>& g2,
  3978. const typename ParamGenerator<T2>::iterator& current2,
  3979. const ParamGenerator<T3>& g3,
  3980. const typename ParamGenerator<T3>::iterator& current3,
  3981. const ParamGenerator<T4>& g4,
  3982. const typename ParamGenerator<T4>::iterator& current4,
  3983. const ParamGenerator<T5>& g5,
  3984. const typename ParamGenerator<T5>::iterator& current5,
  3985. const ParamGenerator<T6>& g6,
  3986. const typename ParamGenerator<T6>::iterator& current6,
  3987. const ParamGenerator<T7>& g7,
  3988. const typename ParamGenerator<T7>::iterator& current7,
  3989. const ParamGenerator<T8>& g8,
  3990. const typename ParamGenerator<T8>::iterator& current8,
  3991. const ParamGenerator<T9>& g9,
  3992. const typename ParamGenerator<T9>::iterator& current9,
  3993. const ParamGenerator<T10>& g10,
  3994. const typename ParamGenerator<T10>::iterator& current10)
  3995. : base_(base),
  3996. begin1_(g1.begin()), end1_(g1.end()), current1_(current1),
  3997. begin2_(g2.begin()), end2_(g2.end()), current2_(current2),
  3998. begin3_(g3.begin()), end3_(g3.end()), current3_(current3),
  3999. begin4_(g4.begin()), end4_(g4.end()), current4_(current4),
  4000. begin5_(g5.begin()), end5_(g5.end()), current5_(current5),
  4001. begin6_(g6.begin()), end6_(g6.end()), current6_(current6),
  4002. begin7_(g7.begin()), end7_(g7.end()), current7_(current7),
  4003. begin8_(g8.begin()), end8_(g8.end()), current8_(current8),
  4004. begin9_(g9.begin()), end9_(g9.end()), current9_(current9),
  4005. begin10_(g10.begin()), end10_(g10.end()), current10_(current10) {
  4006. ComputeCurrentValue();
  4007. }
  4008. virtual ~Iterator() {}
  4009. virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const {
  4010. return base_;
  4011. }
  4012. // Advance should not be called on beyond-of-range iterators
  4013. // so no component iterators must be beyond end of range, either.
  4014. virtual void Advance() {
  4015. assert(!AtEnd());
  4016. ++current10_;
  4017. if (current10_ == end10_) {
  4018. current10_ = begin10_;
  4019. ++current9_;
  4020. }
  4021. if (current9_ == end9_) {
  4022. current9_ = begin9_;
  4023. ++current8_;
  4024. }
  4025. if (current8_ == end8_) {
  4026. current8_ = begin8_;
  4027. ++current7_;
  4028. }
  4029. if (current7_ == end7_) {
  4030. current7_ = begin7_;
  4031. ++current6_;
  4032. }
  4033. if (current6_ == end6_) {
  4034. current6_ = begin6_;
  4035. ++current5_;
  4036. }
  4037. if (current5_ == end5_) {
  4038. current5_ = begin5_;
  4039. ++current4_;
  4040. }
  4041. if (current4_ == end4_) {
  4042. current4_ = begin4_;
  4043. ++current3_;
  4044. }
  4045. if (current3_ == end3_) {
  4046. current3_ = begin3_;
  4047. ++current2_;
  4048. }
  4049. if (current2_ == end2_) {
  4050. current2_ = begin2_;
  4051. ++current1_;
  4052. }
  4053. ComputeCurrentValue();
  4054. }
  4055. virtual ParamIteratorInterface<ParamType>* Clone() const {
  4056. return new Iterator(*this);
  4057. }
  4058. virtual const ParamType* Current() const { return &current_value_; }
  4059. virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const {
  4060. // Having the same base generator guarantees that the other
  4061. // iterator is of the same type and we can downcast.
  4062. GTEST_CHECK_(BaseGenerator() == other.BaseGenerator())
  4063. << "The program attempted to compare iterators "
  4064. << "from different generators." << std::endl;
  4065. const Iterator* typed_other =
  4066. CheckedDowncastToActualType<const Iterator>(&other);
  4067. // We must report iterators equal if they both point beyond their
  4068. // respective ranges. That can happen in a variety of fashions,
  4069. // so we have to consult AtEnd().
  4070. return (AtEnd() && typed_other->AtEnd()) ||
  4071. (
  4072. current1_ == typed_other->current1_ &&
  4073. current2_ == typed_other->current2_ &&
  4074. current3_ == typed_other->current3_ &&
  4075. current4_ == typed_other->current4_ &&
  4076. current5_ == typed_other->current5_ &&
  4077. current6_ == typed_other->current6_ &&
  4078. current7_ == typed_other->current7_ &&
  4079. current8_ == typed_other->current8_ &&
  4080. current9_ == typed_other->current9_ &&
  4081. current10_ == typed_other->current10_);
  4082. }
  4083. private:
  4084. Iterator(const Iterator& other)
  4085. : base_(other.base_),
  4086. begin1_(other.begin1_),
  4087. end1_(other.end1_),
  4088. current1_(other.current1_),
  4089. begin2_(other.begin2_),
  4090. end2_(other.end2_),
  4091. current2_(other.current2_),
  4092. begin3_(other.begin3_),
  4093. end3_(other.end3_),
  4094. current3_(other.current3_),
  4095. begin4_(other.begin4_),
  4096. end4_(other.end4_),
  4097. current4_(other.current4_),
  4098. begin5_(other.begin5_),
  4099. end5_(other.end5_),
  4100. current5_(other.current5_),
  4101. begin6_(other.begin6_),
  4102. end6_(other.end6_),
  4103. current6_(other.current6_),
  4104. begin7_(other.begin7_),
  4105. end7_(other.end7_),
  4106. current7_(other.current7_),
  4107. begin8_(other.begin8_),
  4108. end8_(other.end8_),
  4109. current8_(other.current8_),
  4110. begin9_(other.begin9_),
  4111. end9_(other.end9_),
  4112. current9_(other.current9_),
  4113. begin10_(other.begin10_),
  4114. end10_(other.end10_),
  4115. current10_(other.current10_) {
  4116. ComputeCurrentValue();
  4117. }
  4118. void ComputeCurrentValue() {
  4119. if (!AtEnd())
  4120. current_value_ = ParamType(*current1_, *current2_, *current3_,
  4121. *current4_, *current5_, *current6_, *current7_, *current8_,
  4122. *current9_, *current10_);
  4123. }
  4124. bool AtEnd() const {
  4125. // We must report iterator past the end of the range when either of the
  4126. // component iterators has reached the end of its range.
  4127. return
  4128. current1_ == end1_ ||
  4129. current2_ == end2_ ||
  4130. current3_ == end3_ ||
  4131. current4_ == end4_ ||
  4132. current5_ == end5_ ||
  4133. current6_ == end6_ ||
  4134. current7_ == end7_ ||
  4135. current8_ == end8_ ||
  4136. current9_ == end9_ ||
  4137. current10_ == end10_;
  4138. }
  4139. // No implementation - assignment is unsupported.
  4140. void operator=(const Iterator& other);
  4141. const ParamGeneratorInterface<ParamType>* const base_;
  4142. // begin[i]_ and end[i]_ define the i-th range that Iterator traverses.
  4143. // current[i]_ is the actual traversing iterator.
  4144. const typename ParamGenerator<T1>::iterator begin1_;
  4145. const typename ParamGenerator<T1>::iterator end1_;
  4146. typename ParamGenerator<T1>::iterator current1_;
  4147. const typename ParamGenerator<T2>::iterator begin2_;
  4148. const typename ParamGenerator<T2>::iterator end2_;
  4149. typename ParamGenerator<T2>::iterator current2_;
  4150. const typename ParamGenerator<T3>::iterator begin3_;
  4151. const typename ParamGenerator<T3>::iterator end3_;
  4152. typename ParamGenerator<T3>::iterator current3_;
  4153. const typename ParamGenerator<T4>::iterator begin4_;
  4154. const typename ParamGenerator<T4>::iterator end4_;
  4155. typename ParamGenerator<T4>::iterator current4_;
  4156. const typename ParamGenerator<T5>::iterator begin5_;
  4157. const typename ParamGenerator<T5>::iterator end5_;
  4158. typename ParamGenerator<T5>::iterator current5_;
  4159. const typename ParamGenerator<T6>::iterator begin6_;
  4160. const typename ParamGenerator<T6>::iterator end6_;
  4161. typename ParamGenerator<T6>::iterator current6_;
  4162. const typename ParamGenerator<T7>::iterator begin7_;
  4163. const typename ParamGenerator<T7>::iterator end7_;
  4164. typename ParamGenerator<T7>::iterator current7_;
  4165. const typename ParamGenerator<T8>::iterator begin8_;
  4166. const typename ParamGenerator<T8>::iterator end8_;
  4167. typename ParamGenerator<T8>::iterator current8_;
  4168. const typename ParamGenerator<T9>::iterator begin9_;
  4169. const typename ParamGenerator<T9>::iterator end9_;
  4170. typename ParamGenerator<T9>::iterator current9_;
  4171. const typename ParamGenerator<T10>::iterator begin10_;
  4172. const typename ParamGenerator<T10>::iterator end10_;
  4173. typename ParamGenerator<T10>::iterator current10_;
  4174. ParamType current_value_;
  4175. }; // class CartesianProductGenerator10::Iterator
  4176. // No implementation - assignment is unsupported.
  4177. void operator=(const CartesianProductGenerator10& other);
  4178. const ParamGenerator<T1> g1_;
  4179. const ParamGenerator<T2> g2_;
  4180. const ParamGenerator<T3> g3_;
  4181. const ParamGenerator<T4> g4_;
  4182. const ParamGenerator<T5> g5_;
  4183. const ParamGenerator<T6> g6_;
  4184. const ParamGenerator<T7> g7_;
  4185. const ParamGenerator<T8> g8_;
  4186. const ParamGenerator<T9> g9_;
  4187. const ParamGenerator<T10> g10_;
  4188. }; // class CartesianProductGenerator10
  4189. // INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE.
  4190. //
  4191. // Helper classes providing Combine() with polymorphic features. They allow
  4192. // casting CartesianProductGeneratorN<T> to ParamGenerator<U> if T is
  4193. // convertible to U.
  4194. //
  4195. template <class Generator1, class Generator2>
  4196. class CartesianProductHolder2 {
  4197. public:
  4198. CartesianProductHolder2(const Generator1& g1, const Generator2& g2)
  4199. : g1_(g1), g2_(g2) {}
  4200. template <typename T1, typename T2>
  4201. operator ParamGenerator< ::std::tr1::tuple<T1, T2> >() const {
  4202. return ParamGenerator< ::std::tr1::tuple<T1, T2> >(
  4203. new CartesianProductGenerator2<T1, T2>(
  4204. static_cast<ParamGenerator<T1> >(g1_),
  4205. static_cast<ParamGenerator<T2> >(g2_)));
  4206. }
  4207. private:
  4208. // No implementation - assignment is unsupported.
  4209. void operator=(const CartesianProductHolder2& other);
  4210. const Generator1 g1_;
  4211. const Generator2 g2_;
  4212. }; // class CartesianProductHolder2
  4213. template <class Generator1, class Generator2, class Generator3>
  4214. class CartesianProductHolder3 {
  4215. public:
  4216. CartesianProductHolder3(const Generator1& g1, const Generator2& g2,
  4217. const Generator3& g3)
  4218. : g1_(g1), g2_(g2), g3_(g3) {}
  4219. template <typename T1, typename T2, typename T3>
  4220. operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3> >() const {
  4221. return ParamGenerator< ::std::tr1::tuple<T1, T2, T3> >(
  4222. new CartesianProductGenerator3<T1, T2, T3>(
  4223. static_cast<ParamGenerator<T1> >(g1_),
  4224. static_cast<ParamGenerator<T2> >(g2_),
  4225. static_cast<ParamGenerator<T3> >(g3_)));
  4226. }
  4227. private:
  4228. // No implementation - assignment is unsupported.
  4229. void operator=(const CartesianProductHolder3& other);
  4230. const Generator1 g1_;
  4231. const Generator2 g2_;
  4232. const Generator3 g3_;
  4233. }; // class CartesianProductHolder3
  4234. template <class Generator1, class Generator2, class Generator3,
  4235. class Generator4>
  4236. class CartesianProductHolder4 {
  4237. public:
  4238. CartesianProductHolder4(const Generator1& g1, const Generator2& g2,
  4239. const Generator3& g3, const Generator4& g4)
  4240. : g1_(g1), g2_(g2), g3_(g3), g4_(g4) {}
  4241. template <typename T1, typename T2, typename T3, typename T4>
  4242. operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4> >() const {
  4243. return ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4> >(
  4244. new CartesianProductGenerator4<T1, T2, T3, T4>(
  4245. static_cast<ParamGenerator<T1> >(g1_),
  4246. static_cast<ParamGenerator<T2> >(g2_),
  4247. static_cast<ParamGenerator<T3> >(g3_),
  4248. static_cast<ParamGenerator<T4> >(g4_)));
  4249. }
  4250. private:
  4251. // No implementation - assignment is unsupported.
  4252. void operator=(const CartesianProductHolder4& other);
  4253. const Generator1 g1_;
  4254. const Generator2 g2_;
  4255. const Generator3 g3_;
  4256. const Generator4 g4_;
  4257. }; // class CartesianProductHolder4
  4258. template <class Generator1, class Generator2, class Generator3,
  4259. class Generator4, class Generator5>
  4260. class CartesianProductHolder5 {
  4261. public:
  4262. CartesianProductHolder5(const Generator1& g1, const Generator2& g2,
  4263. const Generator3& g3, const Generator4& g4, const Generator5& g5)
  4264. : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5) {}
  4265. template <typename T1, typename T2, typename T3, typename T4, typename T5>
  4266. operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5> >() const {
  4267. return ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5> >(
  4268. new CartesianProductGenerator5<T1, T2, T3, T4, T5>(
  4269. static_cast<ParamGenerator<T1> >(g1_),
  4270. static_cast<ParamGenerator<T2> >(g2_),
  4271. static_cast<ParamGenerator<T3> >(g3_),
  4272. static_cast<ParamGenerator<T4> >(g4_),
  4273. static_cast<ParamGenerator<T5> >(g5_)));
  4274. }
  4275. private:
  4276. // No implementation - assignment is unsupported.
  4277. void operator=(const CartesianProductHolder5& other);
  4278. const Generator1 g1_;
  4279. const Generator2 g2_;
  4280. const Generator3 g3_;
  4281. const Generator4 g4_;
  4282. const Generator5 g5_;
  4283. }; // class CartesianProductHolder5
  4284. template <class Generator1, class Generator2, class Generator3,
  4285. class Generator4, class Generator5, class Generator6>
  4286. class CartesianProductHolder6 {
  4287. public:
  4288. CartesianProductHolder6(const Generator1& g1, const Generator2& g2,
  4289. const Generator3& g3, const Generator4& g4, const Generator5& g5,
  4290. const Generator6& g6)
  4291. : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6) {}
  4292. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  4293. typename T6>
  4294. operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6> >() const {
  4295. return ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6> >(
  4296. new CartesianProductGenerator6<T1, T2, T3, T4, T5, T6>(
  4297. static_cast<ParamGenerator<T1> >(g1_),
  4298. static_cast<ParamGenerator<T2> >(g2_),
  4299. static_cast<ParamGenerator<T3> >(g3_),
  4300. static_cast<ParamGenerator<T4> >(g4_),
  4301. static_cast<ParamGenerator<T5> >(g5_),
  4302. static_cast<ParamGenerator<T6> >(g6_)));
  4303. }
  4304. private:
  4305. // No implementation - assignment is unsupported.
  4306. void operator=(const CartesianProductHolder6& other);
  4307. const Generator1 g1_;
  4308. const Generator2 g2_;
  4309. const Generator3 g3_;
  4310. const Generator4 g4_;
  4311. const Generator5 g5_;
  4312. const Generator6 g6_;
  4313. }; // class CartesianProductHolder6
  4314. template <class Generator1, class Generator2, class Generator3,
  4315. class Generator4, class Generator5, class Generator6, class Generator7>
  4316. class CartesianProductHolder7 {
  4317. public:
  4318. CartesianProductHolder7(const Generator1& g1, const Generator2& g2,
  4319. const Generator3& g3, const Generator4& g4, const Generator5& g5,
  4320. const Generator6& g6, const Generator7& g7)
  4321. : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7) {}
  4322. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  4323. typename T6, typename T7>
  4324. operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6,
  4325. T7> >() const {
  4326. return ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7> >(
  4327. new CartesianProductGenerator7<T1, T2, T3, T4, T5, T6, T7>(
  4328. static_cast<ParamGenerator<T1> >(g1_),
  4329. static_cast<ParamGenerator<T2> >(g2_),
  4330. static_cast<ParamGenerator<T3> >(g3_),
  4331. static_cast<ParamGenerator<T4> >(g4_),
  4332. static_cast<ParamGenerator<T5> >(g5_),
  4333. static_cast<ParamGenerator<T6> >(g6_),
  4334. static_cast<ParamGenerator<T7> >(g7_)));
  4335. }
  4336. private:
  4337. // No implementation - assignment is unsupported.
  4338. void operator=(const CartesianProductHolder7& other);
  4339. const Generator1 g1_;
  4340. const Generator2 g2_;
  4341. const Generator3 g3_;
  4342. const Generator4 g4_;
  4343. const Generator5 g5_;
  4344. const Generator6 g6_;
  4345. const Generator7 g7_;
  4346. }; // class CartesianProductHolder7
  4347. template <class Generator1, class Generator2, class Generator3,
  4348. class Generator4, class Generator5, class Generator6, class Generator7,
  4349. class Generator8>
  4350. class CartesianProductHolder8 {
  4351. public:
  4352. CartesianProductHolder8(const Generator1& g1, const Generator2& g2,
  4353. const Generator3& g3, const Generator4& g4, const Generator5& g5,
  4354. const Generator6& g6, const Generator7& g7, const Generator8& g8)
  4355. : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7),
  4356. g8_(g8) {}
  4357. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  4358. typename T6, typename T7, typename T8>
  4359. operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7,
  4360. T8> >() const {
  4361. return ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8> >(
  4362. new CartesianProductGenerator8<T1, T2, T3, T4, T5, T6, T7, T8>(
  4363. static_cast<ParamGenerator<T1> >(g1_),
  4364. static_cast<ParamGenerator<T2> >(g2_),
  4365. static_cast<ParamGenerator<T3> >(g3_),
  4366. static_cast<ParamGenerator<T4> >(g4_),
  4367. static_cast<ParamGenerator<T5> >(g5_),
  4368. static_cast<ParamGenerator<T6> >(g6_),
  4369. static_cast<ParamGenerator<T7> >(g7_),
  4370. static_cast<ParamGenerator<T8> >(g8_)));
  4371. }
  4372. private:
  4373. // No implementation - assignment is unsupported.
  4374. void operator=(const CartesianProductHolder8& other);
  4375. const Generator1 g1_;
  4376. const Generator2 g2_;
  4377. const Generator3 g3_;
  4378. const Generator4 g4_;
  4379. const Generator5 g5_;
  4380. const Generator6 g6_;
  4381. const Generator7 g7_;
  4382. const Generator8 g8_;
  4383. }; // class CartesianProductHolder8
  4384. template <class Generator1, class Generator2, class Generator3,
  4385. class Generator4, class Generator5, class Generator6, class Generator7,
  4386. class Generator8, class Generator9>
  4387. class CartesianProductHolder9 {
  4388. public:
  4389. CartesianProductHolder9(const Generator1& g1, const Generator2& g2,
  4390. const Generator3& g3, const Generator4& g4, const Generator5& g5,
  4391. const Generator6& g6, const Generator7& g7, const Generator8& g8,
  4392. const Generator9& g9)
  4393. : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), g8_(g8),
  4394. g9_(g9) {}
  4395. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  4396. typename T6, typename T7, typename T8, typename T9>
  4397. operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8,
  4398. T9> >() const {
  4399. return ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8,
  4400. T9> >(
  4401. new CartesianProductGenerator9<T1, T2, T3, T4, T5, T6, T7, T8, T9>(
  4402. static_cast<ParamGenerator<T1> >(g1_),
  4403. static_cast<ParamGenerator<T2> >(g2_),
  4404. static_cast<ParamGenerator<T3> >(g3_),
  4405. static_cast<ParamGenerator<T4> >(g4_),
  4406. static_cast<ParamGenerator<T5> >(g5_),
  4407. static_cast<ParamGenerator<T6> >(g6_),
  4408. static_cast<ParamGenerator<T7> >(g7_),
  4409. static_cast<ParamGenerator<T8> >(g8_),
  4410. static_cast<ParamGenerator<T9> >(g9_)));
  4411. }
  4412. private:
  4413. // No implementation - assignment is unsupported.
  4414. void operator=(const CartesianProductHolder9& other);
  4415. const Generator1 g1_;
  4416. const Generator2 g2_;
  4417. const Generator3 g3_;
  4418. const Generator4 g4_;
  4419. const Generator5 g5_;
  4420. const Generator6 g6_;
  4421. const Generator7 g7_;
  4422. const Generator8 g8_;
  4423. const Generator9 g9_;
  4424. }; // class CartesianProductHolder9
  4425. template <class Generator1, class Generator2, class Generator3,
  4426. class Generator4, class Generator5, class Generator6, class Generator7,
  4427. class Generator8, class Generator9, class Generator10>
  4428. class CartesianProductHolder10 {
  4429. public:
  4430. CartesianProductHolder10(const Generator1& g1, const Generator2& g2,
  4431. const Generator3& g3, const Generator4& g4, const Generator5& g5,
  4432. const Generator6& g6, const Generator7& g7, const Generator8& g8,
  4433. const Generator9& g9, const Generator10& g10)
  4434. : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), g8_(g8),
  4435. g9_(g9), g10_(g10) {}
  4436. template <typename T1, typename T2, typename T3, typename T4, typename T5,
  4437. typename T6, typename T7, typename T8, typename T9, typename T10>
  4438. operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8,
  4439. T9, T10> >() const {
  4440. return ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8,
  4441. T9, T10> >(
  4442. new CartesianProductGenerator10<T1, T2, T3, T4, T5, T6, T7, T8, T9,
  4443. T10>(
  4444. static_cast<ParamGenerator<T1> >(g1_),
  4445. static_cast<ParamGenerator<T2> >(g2_),
  4446. static_cast<ParamGenerator<T3> >(g3_),
  4447. static_cast<ParamGenerator<T4> >(g4_),
  4448. static_cast<ParamGenerator<T5> >(g5_),
  4449. static_cast<ParamGenerator<T6> >(g6_),
  4450. static_cast<ParamGenerator<T7> >(g7_),
  4451. static_cast<ParamGenerator<T8> >(g8_),
  4452. static_cast<ParamGenerator<T9> >(g9_),
  4453. static_cast<ParamGenerator<T10> >(g10_)));
  4454. }
  4455. private:
  4456. // No implementation - assignment is unsupported.
  4457. void operator=(const CartesianProductHolder10& other);
  4458. const Generator1 g1_;
  4459. const Generator2 g2_;
  4460. const Generator3 g3_;
  4461. const Generator4 g4_;
  4462. const Generator5 g5_;
  4463. const Generator6 g6_;
  4464. const Generator7 g7_;
  4465. const Generator8 g8_;
  4466. const Generator9 g9_;
  4467. const Generator10 g10_;
  4468. }; // class CartesianProductHolder10
  4469. # endif // GTEST_HAS_COMBINE
  4470. } // namespace internal
  4471. } // namespace testing
  4472. #endif // GTEST_HAS_PARAM_TEST
  4473. #endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_GENERATED_H_