gtest-param-util-generated.h 188 KB

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