gtest-param-util-generated.h 188 KB

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