traits.xml 137 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2012 Eric Niebler
  4. Distributed under the Boost
  5. Software License, Version 1.0. (See accompanying
  6. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. -->
  8. <header name="boost/proto/traits.hpp">
  9. <para>
  10. Contains definitions for various expression traits and utilities like
  11. <computeroutput><classname alt="boost::proto::tag_of">proto::tag_of</classname>&lt;&gt;</computeroutput> and
  12. <computeroutput><classname alt="boost::proto::arity_of">proto::arity_of</classname>&lt;&gt;</computeroutput>;
  13. the functions
  14. <computeroutput><functionname alt="boost::proto::value">proto::value</functionname>()</computeroutput>,
  15. <computeroutput><functionname alt="boost::proto::left">proto::left</functionname>()</computeroutput> and
  16. <computeroutput><functionname alt="boost::proto::right">proto::right</functionname>()</computeroutput>;
  17. <computeroutput><functionname alt="boost::proto::child">proto::child</functionname>()</computeroutput>,
  18. <computeroutput><functionname alt="boost::proto::child_c">proto::child_c</functionname>()</computeroutput>,
  19. <computeroutput><functionname alt="boost::proto::as_expr">proto::as_expr</functionname>()</computeroutput>,
  20. <computeroutput><functionname alt="boost::proto::as_child">proto::as_child</functionname>()</computeroutput>,
  21. and assorted helpers.
  22. </para>
  23. <namespace name="boost">
  24. <namespace name="proto">
  25. <struct name="is_callable">
  26. <template>
  27. <template-type-parameter name="T"/>
  28. </template>
  29. <purpose>Boolean metafunction which tells whether a type is a callable
  30. <conceptname>PolymorphicFunctionObject</conceptname> or not.</purpose>
  31. <description>
  32. <para>
  33. <computeroutput>proto::is_callable&lt;&gt;</computeroutput> is used by the
  34. <computeroutput><classname alt="proto::when">proto::when&lt;&gt;</classname></computeroutput>
  35. transform to determine whether a function type <computeroutput>R(A<subscript>1</subscript>,...A<subscript>n</subscript>)</computeroutput>
  36. is a <conceptname>CallableTransform</conceptname> or an <conceptname>ObjectTransform</conceptname>.
  37. The former are evaluated using <computeroutput><classname>proto::call&lt;&gt;</classname></computeroutput>
  38. and the later with <computeroutput><classname>proto::make&lt;&gt;</classname></computeroutput>.
  39. If <computeroutput>proto::is_callable&lt;R&gt;::value</computeroutput> is <computeroutput>true</computeroutput>,
  40. the function type is a <conceptname>CallableTransform</conceptname>; otherwise, it is an <conceptname>ObjectTransform</conceptname>.
  41. </para>
  42. <para>
  43. Unless specialized for a type
  44. <computeroutput>T</computeroutput>, <computeroutput>proto::is_callable&lt;T&gt;::value</computeroutput>
  45. is computed as follows:
  46. <itemizedlist>
  47. <listitem>
  48. <para>
  49. If <computeroutput>T</computeroutput> is a template type
  50. <computeroutput>X&lt;Y<subscript>0</subscript>,...Y<subscript>n</subscript>&gt;</computeroutput>,
  51. where all <computeroutput>Y<subscript>x</subscript></computeroutput> are types for
  52. <computeroutput>x</computeroutput> in <computeroutput>[0,n]</computeroutput>,
  53. <computeroutput>proto::is_callable&lt;T&gt;::value</computeroutput> is
  54. <computeroutput>boost::is_same&lt;Y<subscript>n</subscript>, <classname>proto::callable</classname>&gt;::value</computeroutput>.
  55. </para>
  56. </listitem>
  57. <listitem>
  58. <para>
  59. If <computeroutput>T</computeroutput> is derived from <computeroutput><classname>proto::callable</classname></computeroutput>,
  60. <computeroutput>proto::is_callable&lt;T&gt;::value</computeroutput> is <computeroutput>true</computeroutput>.
  61. </para>
  62. </listitem>
  63. <listitem>
  64. <para>
  65. Otherwise, <computeroutput>proto::is_callable&lt;T&gt;::value</computeroutput>
  66. is <computeroutput>false</computeroutput>.
  67. </para>
  68. </listitem>
  69. </itemizedlist>
  70. </para>
  71. </description>
  72. <inherit><type>mpl::bool_&lt;<replaceable>true-or-false</replaceable>&gt;</type></inherit>
  73. </struct>
  74. <struct name="is_transform">
  75. <template>
  76. <template-type-parameter name="T"/>
  77. </template>
  78. <purpose>Boolean metafunction which tells whether a type is a
  79. <conceptname>PrimitiveTransform</conceptname> or not.</purpose>
  80. <description>
  81. <para>
  82. <computeroutput>proto::is_transform&lt;&gt;</computeroutput> is used by the
  83. <computeroutput><classname alt="proto::make">proto::make&lt;&gt;</classname></computeroutput>
  84. transform to determine whether a type <computeroutput>R</computeroutput> represents a
  85. <conceptname>PrimitiveTransform</conceptname> to apply, or whether it merely represents itself.
  86. </para>
  87. <para>
  88. It is also used by the
  89. <computeroutput><classname alt="proto::call">proto::call&lt;&gt;</classname></computeroutput>
  90. transform to determine whether the function types <computeroutput>R()</computeroutput>,
  91. <computeroutput>R(A1)</computeroutput>, and <computeroutput>R(A1, A2)</computeroutput> should
  92. be passed the expression, state and data parameters (as needed).
  93. </para>
  94. <para>
  95. Unless specialized for a type
  96. <computeroutput>T</computeroutput>, <computeroutput>proto::is_transform&lt;T&gt;::value</computeroutput>
  97. is computed as follows:
  98. <itemizedlist>
  99. <listitem>
  100. <para>
  101. If <computeroutput>T</computeroutput> is a class type that inherits directly or indirectly from
  102. an instantiation of
  103. <computeroutput><classname alt="proto::transform">proto::transform&lt;&gt;</classname></computeroutput>,
  104. <computeroutput>proto::is_transform&lt;T&gt;::value</computeroutput> is <computeroutput>true</computeroutput>.
  105. </para>
  106. </listitem>
  107. <listitem>
  108. <para>
  109. Otherwise, <computeroutput>proto::is_transform&lt;T&gt;::value</computeroutput>
  110. is <computeroutput>false</computeroutput>.
  111. </para>
  112. </listitem>
  113. </itemizedlist>
  114. </para>
  115. </description>
  116. <inherit><type>mpl::bool_&lt;<replaceable>true-or-false</replaceable>&gt;</type></inherit>
  117. </struct>
  118. <struct name="is_aggregate">
  119. <template>
  120. <template-type-parameter name="T"/>
  121. </template>
  122. <purpose>A Boolean metafunction that indicates whether a type requires aggregate initialization. </purpose>
  123. <description>
  124. <para>
  125. <computeroutput>proto::is_aggregate&lt;&gt;</computeroutput> is used by the
  126. <computeroutput><classname>proto::make&lt;&gt;</classname></computeroutput> transform to determine how
  127. to construct an object of some type <computeroutput>T</computeroutput>, given some initialization arguments
  128. <computeroutput>a<subscript>0</subscript>,...a<subscript>n</subscript></computeroutput>.
  129. If <computeroutput>proto::is_aggregate&lt;T&gt;::value</computeroutput> is <computeroutput>true</computeroutput>,
  130. then an object of type <computeroutput>T</computeroutput> will be initialized as
  131. <computeroutput>T t = {a<subscript>0</subscript>,...a<subscript>n</subscript>};</computeroutput>.
  132. Otherwise, it will be initialized as
  133. <computeroutput>T t(a<subscript>0</subscript>,...a<subscript>n</subscript>)</computeroutput>.
  134. </para>
  135. <para>
  136. Note: <computeroutput><classname>proto::expr&lt;&gt;</classname></computeroutput> and
  137. <computeroutput><classname>proto::basic_expr&lt;&gt;</classname></computeroutput>are aggregates.
  138. </para>
  139. </description>
  140. <inherit><type>mpl::bool_&lt;<replaceable>true-or-false</replaceable>&gt;</type></inherit>
  141. </struct>
  142. <namespace name="functional">
  143. <struct name="as_expr">
  144. <template>
  145. <template-type-parameter name="Domain">
  146. <default><classname>proto::default_domain</classname></default>
  147. </template-type-parameter>
  148. </template>
  149. <purpose>A callable <conceptname>PolymorphicFunctionObject</conceptname> that is equivalent to the
  150. <computeroutput><functionname alt="proto::as_expr">proto::as_expr()</functionname></computeroutput> function.
  151. </purpose>
  152. <inherit><type><classname>proto::callable</classname></type></inherit>
  153. <struct-specialization name="result">
  154. <template>
  155. <template-type-parameter name="This"/>
  156. <template-type-parameter name="T"/>
  157. </template>
  158. <specialization>
  159. <template-arg>This(T)</template-arg>
  160. </specialization>
  161. <inherit><type><classname>proto::result_of::as_expr</classname>&lt; typename remove_reference&lt; T &gt;::type, Domain &gt;</type></inherit>
  162. </struct-specialization>
  163. <method-group name="public member functions">
  164. <method name="operator()" cv="const">
  165. <type>typename <classname>proto::result_of::as_expr</classname>&lt; T, Domain &gt;::type</type>
  166. <template>
  167. <template-type-parameter name="T"/>
  168. </template>
  169. <parameter name="t">
  170. <paramtype>T &amp;</paramtype>
  171. <description>
  172. <para>The object to wrap. </para>
  173. </description>
  174. </parameter>
  175. <description>
  176. <para>
  177. Wrap an object in a Proto terminal if it isn't a Proto expression already.
  178. </para>
  179. </description>
  180. <returns>
  181. <para>
  182. <computeroutput><functionname>proto::as_expr</functionname>&lt;Domain&gt;(t)</computeroutput>
  183. </para>
  184. </returns>
  185. </method>
  186. <method name="operator()" cv="const">
  187. <type>typename <classname>proto::result_of::as_expr</classname>&lt; T const, Domain &gt;::type</type>
  188. <template>
  189. <template-type-parameter name="T"/>
  190. </template>
  191. <parameter name="t">
  192. <paramtype>T const &amp;</paramtype>
  193. </parameter>
  194. <description>
  195. <para>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </para>
  196. </description>
  197. </method>
  198. </method-group>
  199. </struct>
  200. <struct name="as_child">
  201. <template>
  202. <template-type-parameter name="Domain">
  203. <default><classname>proto::default_domain</classname></default>
  204. </template-type-parameter>
  205. </template>
  206. <purpose>
  207. A callable <conceptname>PolymorphicFunctionObject</conceptname> that is equivalent to the
  208. <computeroutput><functionname alt="proto::as_child">proto::as_child()</functionname></computeroutput> function.
  209. </purpose>
  210. <inherit><type><classname>proto::callable</classname></type></inherit>
  211. <struct-specialization name="result">
  212. <template>
  213. <template-type-parameter name="This"/>
  214. <template-type-parameter name="T"/>
  215. </template>
  216. <specialization>
  217. <template-arg>This(T)</template-arg>
  218. </specialization>
  219. <inherit><type><classname>proto::result_of::as_child</classname>&lt; typename remove_reference&lt; T &gt;::type, Domain &gt;</type></inherit>
  220. </struct-specialization>
  221. <method-group name="public member functions">
  222. <method name="operator()" cv="const">
  223. <type>typename <classname>proto::result_of::as_child</classname>&lt; T, Domain &gt;::type</type>
  224. <template>
  225. <template-type-parameter name="T"/>
  226. </template>
  227. <parameter name="t">
  228. <paramtype>T &amp;</paramtype>
  229. <description>
  230. <para>The object to wrap. </para>
  231. </description>
  232. </parameter>
  233. <description>
  234. <para>
  235. Wrap an object in a Proto terminal if it isn't a Proto expression already.
  236. </para>
  237. </description>
  238. <returns>
  239. <para>
  240. <computeroutput><functionname>proto::as_child</functionname>&lt;Domain&gt;(t)</computeroutput>
  241. </para>
  242. </returns>
  243. </method>
  244. <method name="operator()" cv="const">
  245. <type>typename <classname>proto::result_of::as_child</classname>&lt; T const, Domain &gt;::type</type>
  246. <template>
  247. <template-type-parameter name="T"/>
  248. </template>
  249. <parameter name="t">
  250. <paramtype>T const &amp;</paramtype>
  251. </parameter>
  252. <description>
  253. <para>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </para>
  254. </description>
  255. </method>
  256. </method-group>
  257. </struct>
  258. <struct name="child_c">
  259. <template>
  260. <template-nontype-parameter name="N">
  261. <type>long</type>
  262. </template-nontype-parameter>
  263. </template>
  264. <purpose>
  265. A callable <conceptname>PolymorphicFunctionObject</conceptname> that is equivalent to the
  266. <computeroutput><functionname alt="proto::child_c">proto::child_c()</functionname></computeroutput> function.
  267. </purpose>
  268. <inherit><type><classname>proto::callable</classname></type></inherit>
  269. <struct-specialization name="result">
  270. <template>
  271. <template-type-parameter name="This"/>
  272. <template-type-parameter name="Expr"/>
  273. </template>
  274. <specialization>
  275. <template-arg>This(Expr)</template-arg>
  276. </specialization>
  277. <inherit><type><classname>proto::result_of::child_c</classname>&lt; Expr, N &gt;</type></inherit>
  278. </struct-specialization>
  279. <method-group name="public member functions">
  280. <method name="operator()" cv="const">
  281. <type>typename <classname>proto::result_of::child_c</classname>&lt; Expr &amp;, N &gt;::type</type>
  282. <template>
  283. <template-type-parameter name="Expr"/>
  284. </template>
  285. <parameter name="expr">
  286. <paramtype>Expr &amp;</paramtype>
  287. <description>
  288. <para>The expression node. </para>
  289. </description>
  290. </parameter>
  291. <description>
  292. <para>
  293. Return the <replaceable>N</replaceable><superscript>th</superscript> child of the given expression.
  294. </para>
  295. </description>
  296. <requires>
  297. <para>
  298. <computeroutput><classname>proto::is_expr</classname>&lt;Expr&gt;::value</computeroutput> is
  299. <computeroutput>true</computeroutput>
  300. </para>
  301. <para>
  302. <computeroutput>N &lt; Expr::proto_arity::value</computeroutput>
  303. </para>
  304. </requires>
  305. <returns>
  306. <para>
  307. <computeroutput><functionname>proto::child_c</functionname>&lt;N&gt;(expr)</computeroutput>
  308. </para>
  309. </returns>
  310. <throws>
  311. <simpara>Will not throw.</simpara>
  312. </throws>
  313. </method>
  314. <method name="operator()" cv="const">
  315. <type>typename <classname>proto::result_of::child_c</classname>&lt; Expr const &amp;, N &gt;::type</type>
  316. <template>
  317. <template-type-parameter name="Expr"/>
  318. </template>
  319. <parameter name="expr">
  320. <paramtype>Expr const &amp;</paramtype>
  321. </parameter>
  322. <description>
  323. <para>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </para>
  324. </description>
  325. </method>
  326. </method-group>
  327. </struct>
  328. <struct name="child">
  329. <template>
  330. <template-type-parameter name="N">
  331. <default>mpl::long_&lt;0&gt;</default>
  332. </template-type-parameter>
  333. </template>
  334. <purpose>A callable <conceptname>PolymorphicFunctionObject</conceptname> that is equivalent to the
  335. <computeroutput><functionname alt="proto::child">proto::child()</functionname></computeroutput> function.</purpose>
  336. <description>
  337. <para>
  338. A callable <conceptname>PolymorphicFunctionObject</conceptname> that is equivalent to the
  339. <computeroutput><functionname alt="proto::child">proto::child()</functionname></computeroutput>
  340. function. <computeroutput>N</computeroutput> is required to be an MPL Integral Constant.
  341. </para>
  342. </description>
  343. <inherit><type><classname>proto::callable</classname></type></inherit>
  344. <struct-specialization name="result">
  345. <template>
  346. <template-type-parameter name="This"/>
  347. <template-type-parameter name="Expr"/>
  348. </template>
  349. <specialization>
  350. <template-arg>This(Expr)</template-arg>
  351. </specialization>
  352. <inherit>
  353. <type><classname>proto::result_of::child</classname>&lt; Expr, N &gt;</type>
  354. </inherit>
  355. </struct-specialization>
  356. <method-group name="public member functions">
  357. <method name="operator()" cv="const">
  358. <type>typename <classname>proto::result_of::child</classname>&lt; Expr &amp;, N &gt;::type</type>
  359. <template>
  360. <template-type-parameter name="Expr"/>
  361. </template>
  362. <parameter name="expr">
  363. <paramtype>Expr &amp;</paramtype>
  364. <description>
  365. <para>The expression node. </para>
  366. </description>
  367. </parameter>
  368. <description>
  369. <para>
  370. Return the <replaceable>N</replaceable><superscript>th</superscript> child of the given expression.
  371. </para>
  372. </description>
  373. <requires>
  374. <para>
  375. <computeroutput><classname>proto::is_expr</classname>&lt;Expr&gt;::value</computeroutput> is
  376. <computeroutput>true</computeroutput>
  377. </para>
  378. <para>
  379. <computeroutput>N::value &lt; Expr::proto_arity::value</computeroutput>
  380. </para>
  381. </requires>
  382. <returns>
  383. <para>
  384. <computeroutput><functionname>proto::child</functionname>&lt;N&gt;(expr)</computeroutput>
  385. </para>
  386. </returns>
  387. <throws>
  388. <simpara>Will not throw.</simpara>
  389. </throws>
  390. </method>
  391. <method name="operator()" cv="const">
  392. <type>typename <classname>proto::result_of::child</classname>&lt; Expr const &amp;, N &gt;::type</type>
  393. <template>
  394. <template-type-parameter name="Expr"/>
  395. </template>
  396. <parameter name="expr">
  397. <paramtype>Expr const &amp;</paramtype>
  398. </parameter>
  399. <description>
  400. <para>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </para>
  401. </description>
  402. </method>
  403. </method-group>
  404. </struct>
  405. <struct name="value">
  406. <purpose>
  407. A callable <conceptname>PolymorphicFunctionObject</conceptname> that is equivalent to the
  408. <computeroutput><functionname alt="proto::value">proto::value()</functionname></computeroutput> function.
  409. </purpose>
  410. <inherit><type><classname>proto::callable</classname></type></inherit>
  411. <struct-specialization name="result">
  412. <template>
  413. <template-type-parameter name="This"/>
  414. <template-type-parameter name="Expr"/>
  415. </template>
  416. <specialization>
  417. <template-arg>This(Expr)</template-arg>
  418. </specialization>
  419. <inherit>
  420. <type><classname>proto::result_of::value</classname>&lt; Expr &gt;</type>
  421. </inherit>
  422. </struct-specialization>
  423. <method-group name="public member functions">
  424. <method name="operator()" cv="const">
  425. <type>typename <classname>proto::result_of::value</classname>&lt; Expr &amp; &gt;::type</type>
  426. <template>
  427. <template-type-parameter name="Expr"/>
  428. </template>
  429. <parameter name="expr">
  430. <paramtype>Expr &amp;</paramtype>
  431. <description>
  432. <para>The terminal expression node. </para>
  433. </description>
  434. </parameter>
  435. <description>
  436. <para>
  437. Return the value of the given terminal expression.
  438. </para>
  439. </description>
  440. <requires>
  441. <para>
  442. <computeroutput><classname>proto::is_expr</classname>&lt;Expr&gt;::value</computeroutput> is
  443. <computeroutput>true</computeroutput>
  444. </para>
  445. <para>
  446. <computeroutput>0 == Expr::proto_arity::value</computeroutput>
  447. </para>
  448. </requires>
  449. <returns>
  450. <para>
  451. <computeroutput><functionname>proto::value</functionname>(expr)</computeroutput>
  452. </para>
  453. </returns>
  454. <throws>
  455. <simpara>Will not throw.</simpara>
  456. </throws>
  457. </method>
  458. <method name="operator()" cv="const">
  459. <type>typename <classname>proto::result_of::value</classname>&lt; Expr const &amp; &gt;::type</type>
  460. <template>
  461. <template-type-parameter name="Expr"/>
  462. </template>
  463. <parameter name="expr">
  464. <paramtype>Expr const &amp;</paramtype>
  465. </parameter>
  466. <description>
  467. <para>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </para>
  468. </description>
  469. </method>
  470. </method-group>
  471. </struct>
  472. <struct name="left">
  473. <purpose>A callable <conceptname>PolymorphicFunctionObject</conceptname> that is equivalent to the
  474. <computeroutput><functionname alt="proto::left">proto::left()</functionname></computeroutput> function.</purpose>
  475. <struct-specialization name="result">
  476. <template>
  477. <template-type-parameter name="This"/>
  478. <template-type-parameter name="Expr"/>
  479. </template>
  480. <specialization>
  481. <template-arg>This(Expr)</template-arg>
  482. </specialization>
  483. <inherit>
  484. <type><classname>proto::result_of::left</classname>&lt; Expr &gt;</type>
  485. </inherit>
  486. </struct-specialization>
  487. <inherit>
  488. <type><classname>proto::callable</classname></type>
  489. </inherit>
  490. <method-group name="public member functions">
  491. <method name="operator()" cv="const">
  492. <type>typename <classname>proto::result_of::left</classname>&lt; Expr &amp; &gt;::type</type>
  493. <template>
  494. <template-type-parameter name="Expr"/>
  495. </template>
  496. <parameter name="expr">
  497. <paramtype>Expr &amp;</paramtype>
  498. <description>
  499. <para>The expression node. </para>
  500. </description>
  501. </parameter>
  502. <description>
  503. <para>
  504. Return the left child of the given binary expression.
  505. </para>
  506. </description>
  507. <requires>
  508. <para>
  509. <computeroutput><classname>proto::is_expr</classname>&lt;Expr&gt;::value</computeroutput> is
  510. <computeroutput>true</computeroutput>
  511. </para>
  512. <para>
  513. <computeroutput>2 == Expr::proto_arity::value</computeroutput>
  514. </para>
  515. </requires>
  516. <returns>
  517. <para>
  518. <computeroutput><functionname>proto::left</functionname>(expr)</computeroutput>
  519. </para>
  520. </returns>
  521. <throws>
  522. <simpara>Will not throw.</simpara>
  523. </throws>
  524. </method>
  525. <method name="operator()" cv="const">
  526. <type>typename <classname>proto::result_of::left</classname>&lt; Expr const &amp; &gt;::type</type>
  527. <template>
  528. <template-type-parameter name="Expr"/>
  529. </template>
  530. <parameter name="expr">
  531. <paramtype>Expr const &amp;</paramtype>
  532. </parameter>
  533. <description>
  534. <para>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </para>
  535. </description>
  536. </method>
  537. </method-group>
  538. </struct>
  539. <struct name="right">
  540. <purpose>A callable <conceptname>PolymorphicFunctionObject</conceptname> that is equivalent to the
  541. <computeroutput><functionname alt="proto::right">proto::right()</functionname></computeroutput> function.</purpose>
  542. <struct-specialization name="result">
  543. <template>
  544. <template-type-parameter name="This"/>
  545. <template-type-parameter name="Expr"/>
  546. </template>
  547. <specialization>
  548. <template-arg>This(Expr)</template-arg>
  549. </specialization>
  550. <inherit>
  551. <type><classname>proto::result_of::right</classname>&lt; Expr &gt;</type>
  552. </inherit>
  553. </struct-specialization>
  554. <inherit>
  555. <type><classname>proto::callable</classname></type>
  556. </inherit>
  557. <method-group name="public member functions">
  558. <method name="operator()" cv="const">
  559. <type>typename <classname>proto::result_of::right</classname>&lt; Expr &amp; &gt;::type</type>
  560. <template>
  561. <template-type-parameter name="Expr"/>
  562. </template>
  563. <parameter name="expr">
  564. <paramtype>Expr &amp;</paramtype>
  565. <description>
  566. <para>The expression node. </para>
  567. </description>
  568. </parameter>
  569. <description>
  570. <para>Return the right child of the given binary expression.</para>
  571. </description>
  572. <requires>
  573. <para>
  574. <computeroutput><classname>proto::is_expr</classname>&lt;Expr&gt;::value</computeroutput> is <computeroutput>true</computeroutput>
  575. </para>
  576. <para>
  577. <computeroutput>2 == Expr::proto_arity::value</computeroutput>
  578. </para>
  579. </requires>
  580. <returns>
  581. <para>
  582. <computeroutput><functionname>proto::right</functionname>(expr)</computeroutput>
  583. </para>
  584. </returns>
  585. <throws>
  586. <simpara>Will not throw.</simpara>
  587. </throws>
  588. </method>
  589. <method name="operator()" cv="const">
  590. <type>typename <classname>proto::result_of::right</classname>&lt; Expr const &amp; &gt;::type</type>
  591. <template>
  592. <template-type-parameter name="Expr"/>
  593. </template>
  594. <parameter name="expr">
  595. <paramtype>Expr const &amp;</paramtype>
  596. </parameter>
  597. </method>
  598. </method-group>
  599. </struct>
  600. </namespace>
  601. <struct name="terminal">
  602. <template>
  603. <template-type-parameter name="T"/>
  604. </template>
  605. <inherit><classname>proto::transform</classname>&lt; terminal&lt;T&gt; &gt;</inherit>
  606. <purpose>A metafunction for generating terminal expression types, a grammar element for matching
  607. terminal expressions, and
  608. a <conceptname>PrimitiveTransform</conceptname> that returns the current expression unchanged. </purpose>
  609. <struct name="impl">
  610. <template>
  611. <template-type-parameter name="Expr"/>
  612. <template-type-parameter name="State"/>
  613. <template-type-parameter name="Data"/>
  614. </template>
  615. <inherit><classname>proto::transform_impl</classname>&lt; Expr, State, Data &gt;</inherit>
  616. <typedef name="result_type">
  617. <type>Expr</type>
  618. </typedef>
  619. <method-group name="public member functions">
  620. <method name="operator()" cv="const">
  621. <type>Expr</type>
  622. <parameter name="expr">
  623. <paramtype>typename impl::expr_param</paramtype>
  624. <description>
  625. <para>The current expression </para>
  626. </description>
  627. </parameter>
  628. <parameter name="">
  629. <paramtype>typename impl::state_param</paramtype>
  630. </parameter>
  631. <parameter name="">
  632. <paramtype>typename impl::data_param</paramtype>
  633. </parameter>
  634. <requires>
  635. <para>
  636. <computeroutput><classname>proto::matches</classname>&lt;Expr, proto::terminal&lt;T&gt; &gt;::value</computeroutput> is <computeroutput>true</computeroutput>.
  637. </para>
  638. </requires>
  639. <returns>
  640. <para>
  641. <computeroutput>expr</computeroutput>
  642. </para>
  643. </returns>
  644. <throws>
  645. <simpara>Will not throw.</simpara>
  646. </throws>
  647. </method>
  648. </method-group>
  649. </struct>
  650. <typedef name="type">
  651. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::terminal</classname>, <classname>proto::term</classname>&lt; T &gt; &gt;</type>
  652. </typedef>
  653. <typedef name="proto_grammar">
  654. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::terminal</classname>, <classname>proto::term</classname>&lt; T &gt; &gt;</type>
  655. </typedef>
  656. </struct>
  657. <struct name="if_else_">
  658. <template>
  659. <template-type-parameter name="T"/>
  660. <template-type-parameter name="U"/>
  661. <template-type-parameter name="V"/>
  662. </template>
  663. <inherit><classname>proto::transform</classname>&lt; if_else_&lt;T, U, V&gt; &gt;</inherit>
  664. <purpose>A metafunction for generating ternary conditional expression types, a grammar element for
  665. matching ternary conditional expressions, and
  666. a <conceptname>PrimitiveTransform</conceptname>
  667. that dispatches to the
  668. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  669. transform.</purpose>
  670. <struct name="impl">
  671. <template>
  672. <template-type-parameter name="Expr"/>
  673. <template-type-parameter name="State"/>
  674. <template-type-parameter name="Data"/>
  675. </template>
  676. <inherit>
  677. <type><classname>proto::pass_through</classname>&lt;if_else_&gt;::template impl&lt;Expr, State, Data&gt;</type>
  678. </inherit>
  679. </struct>
  680. <typedef name="type">
  681. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::if_else_</classname>, <classname alt="proto::listN">proto::list3</classname>&lt; T, U, V &gt; &gt;</type>
  682. </typedef>
  683. <typedef name="proto_grammar">
  684. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::if_else_</classname>, <classname alt="proto::listN">proto::list3</classname>&lt; T, U, V &gt; &gt;</type>
  685. </typedef>
  686. </struct>
  687. <struct name="unary_plus">
  688. <template>
  689. <template-type-parameter name="T"/>
  690. </template>
  691. <inherit><classname>proto::transform</classname>&lt; unary_plus&lt;T&gt; &gt;</inherit>
  692. <purpose>A metafunction for generating unary plus expression types,
  693. a grammar element for matching unary plus expressions, and
  694. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  695. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  696. transform.</purpose>
  697. <struct name="impl">
  698. <template>
  699. <template-type-parameter name="Expr"/>
  700. <template-type-parameter name="State"/>
  701. <template-type-parameter name="Data"/>
  702. </template>
  703. <inherit>
  704. <type><classname>proto::pass_through</classname>&lt;unary_plus&gt;::template impl&lt;Expr, State, Data&gt;</type>
  705. </inherit>
  706. </struct>
  707. <typedef name="type">
  708. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::unary_plus</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  709. </typedef>
  710. <typedef name="proto_grammar">
  711. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::unary_plus</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  712. </typedef>
  713. </struct>
  714. <struct name="negate">
  715. <template>
  716. <template-type-parameter name="T"/>
  717. </template>
  718. <inherit><classname>proto::transform</classname>&lt; negate&lt;T&gt; &gt;</inherit>
  719. <purpose>A metafunction for generating unary minus expression types,
  720. a grammar element for matching unary minus expressions, and
  721. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  722. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  723. transform.</purpose>
  724. <struct name="impl">
  725. <template>
  726. <template-type-parameter name="Expr"/>
  727. <template-type-parameter name="State"/>
  728. <template-type-parameter name="Data"/>
  729. </template>
  730. <inherit>
  731. <type><classname>proto::pass_through</classname>&lt;negate&gt;::template impl&lt;Expr, State, Data&gt;</type>
  732. </inherit>
  733. </struct>
  734. <typedef name="type">
  735. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::negate</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  736. </typedef>
  737. <typedef name="proto_grammar">
  738. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::negate</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  739. </typedef>
  740. </struct>
  741. <struct name="dereference">
  742. <template>
  743. <template-type-parameter name="T"/>
  744. </template>
  745. <inherit><classname>proto::transform</classname>&lt; dereference&lt;T&gt; &gt;</inherit>
  746. <purpose>A metafunction for generating defereference expression types,
  747. a grammar element for matching dereference expressions, and
  748. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  749. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  750. transform.</purpose>
  751. <struct name="impl">
  752. <template>
  753. <template-type-parameter name="Expr"/>
  754. <template-type-parameter name="State"/>
  755. <template-type-parameter name="Data"/>
  756. </template>
  757. <inherit>
  758. <type><classname>proto::pass_through</classname>&lt;dereference&gt;::template impl&lt;Expr, State, Data&gt;</type>
  759. </inherit>
  760. </struct>
  761. <typedef name="type">
  762. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::dereference</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  763. </typedef>
  764. <typedef name="proto_grammar">
  765. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::dereference</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  766. </typedef>
  767. </struct>
  768. <struct name="complement">
  769. <template>
  770. <template-type-parameter name="T"/>
  771. </template>
  772. <inherit><classname>proto::transform</classname>&lt; complement&lt;T&gt; &gt;</inherit>
  773. <purpose>A metafunction for generating complement expression types,
  774. a grammar element for matching complement expressions, and
  775. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  776. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  777. transform.</purpose>
  778. <struct name="impl">
  779. <template>
  780. <template-type-parameter name="Expr"/>
  781. <template-type-parameter name="State"/>
  782. <template-type-parameter name="Data"/>
  783. </template>
  784. <inherit>
  785. <type><classname>proto::pass_through</classname>&lt;complement&gt;::template impl&lt;Expr, State, Data&gt;</type>
  786. </inherit>
  787. </struct>
  788. <typedef name="type">
  789. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::complement</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  790. </typedef>
  791. <typedef name="proto_grammar">
  792. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::complement</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  793. </typedef>
  794. </struct>
  795. <struct name="address_of">
  796. <template>
  797. <template-type-parameter name="T"/>
  798. </template>
  799. <inherit><classname>proto::transform</classname>&lt; address_of&lt;T&gt; &gt;</inherit>
  800. <purpose>A metafunction for generating address_of expression types,
  801. a grammar element for matching address_of expressions, and
  802. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  803. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  804. transform.</purpose>
  805. <struct name="impl">
  806. <template>
  807. <template-type-parameter name="Expr"/>
  808. <template-type-parameter name="State"/>
  809. <template-type-parameter name="Data"/>
  810. </template>
  811. <inherit>
  812. <type><classname>proto::pass_through</classname>&lt;address_of&gt;::template impl&lt;Expr, State, Data&gt;</type>
  813. </inherit>
  814. </struct>
  815. <typedef name="type">
  816. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::address_of</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  817. </typedef>
  818. <typedef name="proto_grammar">
  819. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::address_of</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  820. </typedef>
  821. </struct>
  822. <struct name="logical_not">
  823. <template>
  824. <template-type-parameter name="T"/>
  825. </template>
  826. <inherit><classname>proto::transform</classname>&lt; logical_not&lt;T&gt; &gt;</inherit>
  827. <purpose>A metafunction for generating logical_not expression types,
  828. a grammar element for matching logical_not expressions, and
  829. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  830. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  831. transform.</purpose>
  832. <struct name="impl">
  833. <template>
  834. <template-type-parameter name="Expr"/>
  835. <template-type-parameter name="State"/>
  836. <template-type-parameter name="Data"/>
  837. </template>
  838. <inherit>
  839. <type><classname>proto::pass_through</classname>&lt;logical_not&gt;::template impl&lt;Expr, State, Data&gt;</type>
  840. </inherit>
  841. </struct>
  842. <typedef name="type">
  843. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::logical_not</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  844. </typedef>
  845. <typedef name="proto_grammar">
  846. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::logical_not</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  847. </typedef>
  848. </struct>
  849. <struct name="pre_inc">
  850. <template>
  851. <template-type-parameter name="T"/>
  852. </template>
  853. <inherit><classname>proto::transform</classname>&lt; pre_inc&lt;T&gt; &gt;</inherit>
  854. <purpose>A metafunction for generating pre-increment expression types,
  855. a grammar element for matching pre-increment expressions, and
  856. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  857. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  858. transform.</purpose>
  859. <struct name="impl">
  860. <template>
  861. <template-type-parameter name="Expr"/>
  862. <template-type-parameter name="State"/>
  863. <template-type-parameter name="Data"/>
  864. </template>
  865. <inherit>
  866. <type><classname>proto::pass_through</classname>&lt;pre_inc&gt;::template impl&lt;Expr, State, Data&gt;</type>
  867. </inherit>
  868. </struct>
  869. <typedef name="type">
  870. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::pre_inc</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  871. </typedef>
  872. <typedef name="proto_grammar">
  873. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::pre_inc</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  874. </typedef>
  875. </struct>
  876. <struct name="pre_dec">
  877. <template>
  878. <template-type-parameter name="T"/>
  879. </template>
  880. <inherit><classname>proto::transform</classname>&lt; pre_dec&lt;T&gt; &gt;</inherit>
  881. <purpose>A metafunction for generating pre-decrement expression types,
  882. a grammar element for matching pre-decrement expressions, and
  883. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  884. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  885. transform.</purpose>
  886. <struct name="impl">
  887. <template>
  888. <template-type-parameter name="Expr"/>
  889. <template-type-parameter name="State"/>
  890. <template-type-parameter name="Data"/>
  891. </template>
  892. <inherit>
  893. <type><classname>proto::pass_through</classname>&lt;pre_dec&gt;::template impl&lt;Expr, State, Data&gt;</type>
  894. </inherit>
  895. </struct>
  896. <typedef name="type">
  897. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::pre_dec</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  898. </typedef>
  899. <typedef name="proto_grammar">
  900. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::pre_dec</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  901. </typedef>
  902. </struct>
  903. <struct name="post_inc">
  904. <template>
  905. <template-type-parameter name="T"/>
  906. </template>
  907. <inherit><classname>proto::transform</classname>&lt; post_inc&lt;T&gt; &gt;</inherit>
  908. <purpose>A metafunction for generating post-increment expression types,
  909. a grammar element for matching post-increment expressions, and
  910. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  911. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  912. transform.</purpose>
  913. <struct name="impl">
  914. <template>
  915. <template-type-parameter name="Expr"/>
  916. <template-type-parameter name="State"/>
  917. <template-type-parameter name="Data"/>
  918. </template>
  919. <inherit>
  920. <type><classname>proto::pass_through</classname>&lt;post_inc&gt;::template impl&lt;Expr, State, Data&gt;</type>
  921. </inherit>
  922. </struct>
  923. <typedef name="type">
  924. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::post_inc</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  925. </typedef>
  926. <typedef name="proto_grammar">
  927. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::post_inc</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  928. </typedef>
  929. </struct>
  930. <struct name="post_dec">
  931. <template>
  932. <template-type-parameter name="T"/>
  933. </template>
  934. <inherit><classname>proto::transform</classname>&lt; post_dec&lt;T&gt; &gt;</inherit>
  935. <purpose>A metafunction for generating post-decrement expression types,
  936. a grammar element for matching post-decrement expressions, and
  937. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  938. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  939. transform.</purpose>
  940. <struct name="impl">
  941. <template>
  942. <template-type-parameter name="Expr"/>
  943. <template-type-parameter name="State"/>
  944. <template-type-parameter name="Data"/>
  945. </template>
  946. <inherit>
  947. <type><classname>proto::pass_through</classname>&lt;post_dec&gt;::template impl&lt;Expr, State, Data&gt;</type>
  948. </inherit>
  949. </struct>
  950. <typedef name="type">
  951. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::post_dec</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  952. </typedef>
  953. <typedef name="proto_grammar">
  954. <type>
  955. <classname>proto::basic_expr</classname>&lt; <classname>proto::tag::post_dec</classname>, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;
  956. </type>
  957. </typedef>
  958. </struct>
  959. <struct name="shift_left">
  960. <template>
  961. <template-type-parameter name="T"/>
  962. <template-type-parameter name="U"/>
  963. </template>
  964. <inherit><classname>proto::transform</classname>&lt; shift_left&lt;T, U&gt; &gt;</inherit>
  965. <purpose>A metafunction for generating left-shift expression types,
  966. a grammar element for matching left-shift expressions, and
  967. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  968. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  969. transform.</purpose>
  970. <struct name="impl">
  971. <template>
  972. <template-type-parameter name="Expr"/>
  973. <template-type-parameter name="State"/>
  974. <template-type-parameter name="Data"/>
  975. </template>
  976. <inherit>
  977. <type><classname>proto::pass_through</classname>&lt;shift_left&gt;::template impl&lt;Expr, State, Data&gt;</type>
  978. </inherit>
  979. </struct>
  980. <typedef name="type">
  981. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::shift_left</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  982. </typedef>
  983. <typedef name="proto_grammar">
  984. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::shift_left</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  985. </typedef>
  986. </struct>
  987. <struct name="shift_right">
  988. <template>
  989. <template-type-parameter name="T"/>
  990. <template-type-parameter name="U"/>
  991. </template>
  992. <inherit><classname>proto::transform</classname>&lt; shift_right&lt;T, U&gt; &gt;</inherit>
  993. <purpose>A metafunction for generating right-shift expression types,
  994. a grammar element for matching right-shift expressions, and a
  995. <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  996. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  997. transform.</purpose>
  998. <struct name="impl">
  999. <template>
  1000. <template-type-parameter name="Expr"/>
  1001. <template-type-parameter name="State"/>
  1002. <template-type-parameter name="Data"/>
  1003. </template>
  1004. <inherit>
  1005. <type><classname>proto::pass_through</classname>&lt;shift_right&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1006. </inherit>
  1007. </struct>
  1008. <typedef name="type">
  1009. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::shift_right</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1010. </typedef>
  1011. <typedef name="proto_grammar">
  1012. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::shift_right</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1013. </typedef>
  1014. </struct>
  1015. <struct name="multiplies">
  1016. <template>
  1017. <template-type-parameter name="T"/>
  1018. <template-type-parameter name="U"/>
  1019. </template>
  1020. <inherit><classname>proto::transform</classname>&lt; multiplies&lt;T, U&gt; &gt;</inherit>
  1021. <purpose>A metafunction for generating multiplies expression types,
  1022. a grammar element for matching multiplies expressions, and
  1023. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1024. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1025. transform.</purpose>
  1026. <struct name="impl">
  1027. <template>
  1028. <template-type-parameter name="Expr"/>
  1029. <template-type-parameter name="State"/>
  1030. <template-type-parameter name="Data"/>
  1031. </template>
  1032. <inherit>
  1033. <type><classname>proto::pass_through</classname>&lt;multiplies&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1034. </inherit>
  1035. </struct>
  1036. <typedef name="type">
  1037. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::multiplies</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1038. </typedef>
  1039. <typedef name="proto_grammar">
  1040. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::multiplies</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1041. </typedef>
  1042. </struct>
  1043. <struct name="divides">
  1044. <template>
  1045. <template-type-parameter name="T"/>
  1046. <template-type-parameter name="U"/>
  1047. </template>
  1048. <inherit><classname>proto::transform</classname>&lt; divides&lt;T, U&gt; &gt;</inherit>
  1049. <purpose>A metafunction for generating divides expression types,
  1050. a grammar element for matching divides expressions, and
  1051. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1052. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1053. transform.</purpose>
  1054. <struct name="impl">
  1055. <template>
  1056. <template-type-parameter name="Expr"/>
  1057. <template-type-parameter name="State"/>
  1058. <template-type-parameter name="Data"/>
  1059. </template>
  1060. <inherit>
  1061. <type><classname>proto::pass_through</classname>&lt;divides&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1062. </inherit>
  1063. </struct>
  1064. <typedef name="type">
  1065. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::divides</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1066. </typedef>
  1067. <typedef name="proto_grammar">
  1068. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::divides</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1069. </typedef>
  1070. </struct>
  1071. <struct name="modulus">
  1072. <template>
  1073. <template-type-parameter name="T"/>
  1074. <template-type-parameter name="U"/>
  1075. </template>
  1076. <inherit><classname>proto::transform</classname>&lt; modulus&lt;T, U&gt; &gt;</inherit>
  1077. <purpose>A metafunction for generating modulus expression types,
  1078. a grammar element for matching modulus expressions, and
  1079. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1080. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1081. transform.</purpose>
  1082. <struct name="impl">
  1083. <template>
  1084. <template-type-parameter name="Expr"/>
  1085. <template-type-parameter name="State"/>
  1086. <template-type-parameter name="Data"/>
  1087. </template>
  1088. <inherit>
  1089. <type><classname>proto::pass_through</classname>&lt;modulus&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1090. </inherit>
  1091. </struct>
  1092. <typedef name="type">
  1093. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::modulus</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1094. </typedef>
  1095. <typedef name="proto_grammar">
  1096. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::modulus</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1097. </typedef>
  1098. </struct>
  1099. <struct name="plus">
  1100. <template>
  1101. <template-type-parameter name="T"/>
  1102. <template-type-parameter name="U"/>
  1103. </template>
  1104. <inherit><classname>proto::transform</classname>&lt; plus&lt;T, U&gt; &gt;</inherit>
  1105. <purpose>A metafunction for generating binary plus expression types,
  1106. a grammar element for matching binary plus expressions, and
  1107. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1108. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1109. transform.</purpose>
  1110. <struct name="impl">
  1111. <template>
  1112. <template-type-parameter name="Expr"/>
  1113. <template-type-parameter name="State"/>
  1114. <template-type-parameter name="Data"/>
  1115. </template>
  1116. <inherit>
  1117. <type><classname>proto::pass_through</classname>&lt;plus&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1118. </inherit>
  1119. </struct>
  1120. <typedef name="type">
  1121. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::plus</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1122. </typedef>
  1123. <typedef name="proto_grammar">
  1124. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::plus</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1125. </typedef>
  1126. </struct>
  1127. <struct name="minus">
  1128. <template>
  1129. <template-type-parameter name="T"/>
  1130. <template-type-parameter name="U"/>
  1131. </template>
  1132. <inherit><classname>proto::transform</classname>&lt; minus&lt;T, U&gt; &gt;</inherit>
  1133. <purpose>A metafunction for generating binary minus expression types,
  1134. a grammar element for matching binary minus expressions, and
  1135. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1136. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1137. transform.</purpose>
  1138. <struct name="impl">
  1139. <template>
  1140. <template-type-parameter name="Expr"/>
  1141. <template-type-parameter name="State"/>
  1142. <template-type-parameter name="Data"/>
  1143. </template>
  1144. <inherit>
  1145. <type><classname>proto::pass_through</classname>&lt;minus&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1146. </inherit>
  1147. </struct>
  1148. <typedef name="type">
  1149. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::minus</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1150. </typedef>
  1151. <typedef name="proto_grammar">
  1152. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::minus</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1153. </typedef>
  1154. </struct>
  1155. <struct name="less">
  1156. <template>
  1157. <template-type-parameter name="T"/>
  1158. <template-type-parameter name="U"/>
  1159. </template>
  1160. <inherit><classname>proto::transform</classname>&lt; less&lt;T, U&gt; &gt;</inherit>
  1161. <purpose>A metafunction for generating less expression types,
  1162. a grammar element for matching less expressions, and
  1163. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1164. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1165. transform.</purpose>
  1166. <struct name="impl">
  1167. <template>
  1168. <template-type-parameter name="Expr"/>
  1169. <template-type-parameter name="State"/>
  1170. <template-type-parameter name="Data"/>
  1171. </template>
  1172. <inherit>
  1173. <type><classname>proto::pass_through</classname>&lt;less&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1174. </inherit>
  1175. </struct>
  1176. <typedef name="type">
  1177. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::less</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1178. </typedef>
  1179. <typedef name="proto_grammar">
  1180. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::less</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1181. </typedef>
  1182. </struct>
  1183. <struct name="greater">
  1184. <template>
  1185. <template-type-parameter name="T"/>
  1186. <template-type-parameter name="U"/>
  1187. </template>
  1188. <inherit><classname>proto::transform</classname>&lt; greater&lt;T, U&gt; &gt;</inherit>
  1189. <purpose>A metafunction for generating greater expression types,
  1190. a grammar element for matching greater expressions, and
  1191. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1192. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1193. transform.</purpose>
  1194. <struct name="impl">
  1195. <template>
  1196. <template-type-parameter name="Expr"/>
  1197. <template-type-parameter name="State"/>
  1198. <template-type-parameter name="Data"/>
  1199. </template>
  1200. <inherit>
  1201. <type><classname>proto::pass_through</classname>&lt;greater&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1202. </inherit>
  1203. </struct>
  1204. <typedef name="type">
  1205. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::greater</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1206. </typedef>
  1207. <typedef name="proto_grammar">
  1208. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::greater</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1209. </typedef>
  1210. </struct>
  1211. <struct name="less_equal">
  1212. <template>
  1213. <template-type-parameter name="T"/>
  1214. <template-type-parameter name="U"/>
  1215. </template>
  1216. <inherit><classname>proto::transform</classname>&lt; less_equal&lt;T, U&gt; &gt;</inherit>
  1217. <purpose>A metafunction for generating less-or-equal expression types,
  1218. a grammar element for matching less-or-equal expressions, and
  1219. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1220. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1221. transform.</purpose>
  1222. <struct name="impl">
  1223. <template>
  1224. <template-type-parameter name="Expr"/>
  1225. <template-type-parameter name="State"/>
  1226. <template-type-parameter name="Data"/>
  1227. </template>
  1228. <inherit>
  1229. <type><classname>proto::pass_through</classname>&lt;less_equal&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1230. </inherit>
  1231. </struct>
  1232. <typedef name="type">
  1233. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::less_equal</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1234. </typedef>
  1235. <typedef name="proto_grammar">
  1236. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::less_equal</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1237. </typedef>
  1238. </struct>
  1239. <struct name="greater_equal">
  1240. <template>
  1241. <template-type-parameter name="T"/>
  1242. <template-type-parameter name="U"/>
  1243. </template>
  1244. <inherit><classname>proto::transform</classname>&lt; greater_equal&lt;T, U&gt; &gt;</inherit>
  1245. <purpose>A metafunction for generating greater-or-equal expression types,
  1246. a grammar element for matching greater-or-equal expressions, and
  1247. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1248. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1249. transform.</purpose>
  1250. <struct name="impl">
  1251. <template>
  1252. <template-type-parameter name="Expr"/>
  1253. <template-type-parameter name="State"/>
  1254. <template-type-parameter name="Data"/>
  1255. </template>
  1256. <inherit>
  1257. <type><classname>proto::pass_through</classname>&lt;greater_equal&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1258. </inherit>
  1259. </struct>
  1260. <typedef name="type">
  1261. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::greater_equal</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1262. </typedef>
  1263. <typedef name="proto_grammar">
  1264. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::greater_equal</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1265. </typedef>
  1266. </struct>
  1267. <struct name="equal_to">
  1268. <template>
  1269. <template-type-parameter name="T"/>
  1270. <template-type-parameter name="U"/>
  1271. </template>
  1272. <inherit><classname>proto::transform</classname>&lt; equal_to&lt;T, U&gt; &gt;</inherit>
  1273. <purpose>A metafunction for generating equal-to expression types,
  1274. a grammar element for matching equal-to expressions, and
  1275. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1276. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1277. transform.</purpose>
  1278. <struct name="impl">
  1279. <template>
  1280. <template-type-parameter name="Expr"/>
  1281. <template-type-parameter name="State"/>
  1282. <template-type-parameter name="Data"/>
  1283. </template>
  1284. <inherit>
  1285. <type><classname>proto::pass_through</classname>&lt;equal_to&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1286. </inherit>
  1287. </struct>
  1288. <typedef name="type">
  1289. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::equal_to</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1290. </typedef>
  1291. <typedef name="proto_grammar">
  1292. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::equal_to</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1293. </typedef>
  1294. </struct>
  1295. <struct name="not_equal_to">
  1296. <template>
  1297. <template-type-parameter name="T"/>
  1298. <template-type-parameter name="U"/>
  1299. </template>
  1300. <inherit><classname>proto::transform</classname>&lt; not_equal_to&lt;T, U&gt; &gt;</inherit>
  1301. <purpose>A metafunction for generating not-equal-to expression types,
  1302. a grammar element for matching not-equal-to expressions, and
  1303. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1304. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1305. transform.</purpose>
  1306. <struct name="impl">
  1307. <template>
  1308. <template-type-parameter name="Expr"/>
  1309. <template-type-parameter name="State"/>
  1310. <template-type-parameter name="Data"/>
  1311. </template>
  1312. <inherit>
  1313. <type><classname>proto::pass_through</classname>&lt;mot_equal_to&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1314. </inherit>
  1315. </struct>
  1316. <typedef name="type">
  1317. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::not_equal_to</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1318. </typedef>
  1319. <typedef name="proto_grammar">
  1320. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::not_equal_to</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1321. </typedef>
  1322. </struct>
  1323. <struct name="logical_or">
  1324. <template>
  1325. <template-type-parameter name="T"/>
  1326. <template-type-parameter name="U"/>
  1327. </template>
  1328. <inherit><classname>proto::transform</classname>&lt; logical_or&lt;T, U&gt; &gt;</inherit>
  1329. <purpose>A metafunction for generating logical-or expression types,
  1330. a grammar element for matching logical-or expressions, and
  1331. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1332. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1333. transform.</purpose>
  1334. <struct name="impl">
  1335. <template>
  1336. <template-type-parameter name="Expr"/>
  1337. <template-type-parameter name="State"/>
  1338. <template-type-parameter name="Data"/>
  1339. </template>
  1340. <inherit>
  1341. <type><classname>proto::pass_through</classname>&lt;logical_or&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1342. </inherit>
  1343. </struct>
  1344. <typedef name="type">
  1345. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::logical_or</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1346. </typedef>
  1347. <typedef name="proto_grammar">
  1348. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::logical_or</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1349. </typedef>
  1350. </struct>
  1351. <struct name="logical_and">
  1352. <template>
  1353. <template-type-parameter name="T"/>
  1354. <template-type-parameter name="U"/>
  1355. </template>
  1356. <inherit><classname>proto::transform</classname>&lt; logical_and&lt;T, U&gt; &gt;</inherit>
  1357. <purpose>A metafunction for generating logical-and expression types,
  1358. a grammar element for matching logical-and expressions, and
  1359. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1360. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1361. transform.</purpose>
  1362. <struct name="impl">
  1363. <template>
  1364. <template-type-parameter name="Expr"/>
  1365. <template-type-parameter name="State"/>
  1366. <template-type-parameter name="Data"/>
  1367. </template>
  1368. <inherit>
  1369. <type><classname>proto::pass_through</classname>&lt;logical_and&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1370. </inherit>
  1371. </struct>
  1372. <typedef name="type">
  1373. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::logical_and</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1374. </typedef>
  1375. <typedef name="proto_grammar">
  1376. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::logical_and</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1377. </typedef>
  1378. </struct>
  1379. <struct name="bitwise_and">
  1380. <template>
  1381. <template-type-parameter name="T"/>
  1382. <template-type-parameter name="U"/>
  1383. </template>
  1384. <inherit><classname>proto::transform</classname>&lt; bitwise_and&lt;T, U&gt; &gt;</inherit>
  1385. <purpose>A metafunction for generating bitwise-and expression types,
  1386. a grammar element for matching bitwise-and expressions, and
  1387. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1388. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1389. transform.</purpose>
  1390. <struct name="impl">
  1391. <template>
  1392. <template-type-parameter name="Expr"/>
  1393. <template-type-parameter name="State"/>
  1394. <template-type-parameter name="Data"/>
  1395. </template>
  1396. <inherit>
  1397. <type><classname>proto::pass_through</classname>&lt;bitwise_and&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1398. </inherit>
  1399. </struct>
  1400. <typedef name="type">
  1401. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::bitwise_and</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1402. </typedef>
  1403. <typedef name="proto_grammar">
  1404. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::bitwise_and</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1405. </typedef>
  1406. </struct>
  1407. <struct name="bitwise_or">
  1408. <template>
  1409. <template-type-parameter name="T"/>
  1410. <template-type-parameter name="U"/>
  1411. </template>
  1412. <inherit><classname>proto::transform</classname>&lt; bitwise_or&lt;T, U&gt; &gt;</inherit>
  1413. <purpose>A metafunction for generating bitwise-or expression types,
  1414. a grammar element for matching bitwise-or expressions, and
  1415. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1416. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1417. transform.</purpose>
  1418. <struct name="impl">
  1419. <template>
  1420. <template-type-parameter name="Expr"/>
  1421. <template-type-parameter name="State"/>
  1422. <template-type-parameter name="Data"/>
  1423. </template>
  1424. <inherit>
  1425. <type><classname>proto::pass_through</classname>&lt;bitwise_or&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1426. </inherit>
  1427. </struct>
  1428. <typedef name="type">
  1429. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::bitwise_or</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1430. </typedef>
  1431. <typedef name="proto_grammar">
  1432. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::bitwise_or</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1433. </typedef>
  1434. </struct>
  1435. <struct name="bitwise_xor">
  1436. <template>
  1437. <template-type-parameter name="T"/>
  1438. <template-type-parameter name="U"/>
  1439. </template>
  1440. <inherit><classname>proto::transform</classname>&lt; bitwise_xor&lt;T, U&gt; &gt;</inherit>
  1441. <purpose>A metafunction for generating bitwise-xor expression types,
  1442. a grammar element for matching bitwise-xor expressions, and
  1443. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1444. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1445. transform.</purpose>
  1446. <struct name="impl">
  1447. <template>
  1448. <template-type-parameter name="Expr"/>
  1449. <template-type-parameter name="State"/>
  1450. <template-type-parameter name="Data"/>
  1451. </template>
  1452. <inherit>
  1453. <type><classname>proto::pass_through</classname>&lt;bitwise_xor&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1454. </inherit>
  1455. </struct>
  1456. <typedef name="type">
  1457. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::bitwise_xor</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1458. </typedef>
  1459. <typedef name="proto_grammar">
  1460. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::bitwise_xor</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1461. </typedef>
  1462. </struct>
  1463. <struct name="comma">
  1464. <template>
  1465. <template-type-parameter name="T"/>
  1466. <template-type-parameter name="U"/>
  1467. </template>
  1468. <inherit><classname>proto::transform</classname>&lt; comma&lt;T, U&gt; &gt;</inherit>
  1469. <purpose>A metafunction for generating comma expression types,
  1470. a grammar element for matching comma expressions, and
  1471. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1472. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1473. transform.</purpose>
  1474. <struct name="impl">
  1475. <template>
  1476. <template-type-parameter name="Expr"/>
  1477. <template-type-parameter name="State"/>
  1478. <template-type-parameter name="Data"/>
  1479. </template>
  1480. <inherit>
  1481. <type><classname>proto::pass_through</classname>&lt;comma&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1482. </inherit>
  1483. </struct>
  1484. <typedef name="type">
  1485. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::comma</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1486. </typedef>
  1487. <typedef name="proto_grammar">
  1488. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::comma</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1489. </typedef>
  1490. </struct>
  1491. <struct name="mem_ptr">
  1492. <template>
  1493. <template-type-parameter name="T"/>
  1494. <template-type-parameter name="U"/>
  1495. </template>
  1496. <inherit><classname>proto::transform</classname>&lt; mem_ptr&lt;T, U&gt; &gt;</inherit>
  1497. <struct name="impl">
  1498. <template>
  1499. <template-type-parameter name="Expr"/>
  1500. <template-type-parameter name="State"/>
  1501. <template-type-parameter name="Data"/>
  1502. </template>
  1503. <inherit>
  1504. <type><classname>proto::pass_through</classname>&lt;mem_ptr&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1505. </inherit>
  1506. </struct>
  1507. <typedef name="type">
  1508. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::mem_ptr</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1509. </typedef>
  1510. <typedef name="proto_grammar">
  1511. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::mem_ptr</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1512. </typedef>
  1513. </struct>
  1514. <struct name="assign">
  1515. <template>
  1516. <template-type-parameter name="T"/>
  1517. <template-type-parameter name="U"/>
  1518. </template>
  1519. <inherit><classname>proto::transform</classname>&lt; assign&lt;T, U&gt; &gt;</inherit>
  1520. <purpose>A metafunction for generating assignment expression types,
  1521. a grammar element for matching assignment expressions, and
  1522. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1523. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1524. transform.</purpose>
  1525. <struct name="impl">
  1526. <template>
  1527. <template-type-parameter name="Expr"/>
  1528. <template-type-parameter name="State"/>
  1529. <template-type-parameter name="Data"/>
  1530. </template>
  1531. <inherit>
  1532. <type><classname>proto::pass_through</classname>&lt;assign&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1533. </inherit>
  1534. </struct>
  1535. <typedef name="type">
  1536. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1537. </typedef>
  1538. <typedef name="proto_grammar">
  1539. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1540. </typedef>
  1541. </struct>
  1542. <struct name="shift_left_assign">
  1543. <template>
  1544. <template-type-parameter name="T"/>
  1545. <template-type-parameter name="U"/>
  1546. </template>
  1547. <inherit><classname>proto::transform</classname>&lt; shift_left_assign&lt;T, U&gt; &gt;</inherit>
  1548. <purpose>A metafunction for generating left-shift-assign expression types,
  1549. a grammar element for matching left-shift-assign expressions, and
  1550. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1551. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1552. transform.</purpose>
  1553. <struct name="impl">
  1554. <template>
  1555. <template-type-parameter name="Expr"/>
  1556. <template-type-parameter name="State"/>
  1557. <template-type-parameter name="Data"/>
  1558. </template>
  1559. <inherit>
  1560. <type><classname>proto::pass_through</classname>&lt;shift_left_assign&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1561. </inherit>
  1562. </struct>
  1563. <typedef name="type">
  1564. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::shift_left_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1565. </typedef>
  1566. <typedef name="proto_grammar">
  1567. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::shift_left_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1568. </typedef>
  1569. </struct>
  1570. <struct name="shift_right_assign">
  1571. <template>
  1572. <template-type-parameter name="T"/>
  1573. <template-type-parameter name="U"/>
  1574. </template>
  1575. <inherit><classname>proto::transform</classname>&lt; shift_right_assign&lt;T, U&gt; &gt;</inherit>
  1576. <purpose>A metafunction for generating right-shift-assign expression types,
  1577. a grammar element for matching right-shift-assign expressions, and
  1578. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1579. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1580. transform.</purpose>
  1581. <struct name="impl">
  1582. <template>
  1583. <template-type-parameter name="Expr"/>
  1584. <template-type-parameter name="State"/>
  1585. <template-type-parameter name="Data"/>
  1586. </template>
  1587. <inherit>
  1588. <type><classname>proto::pass_through</classname>&lt;shift_right_assign&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1589. </inherit>
  1590. </struct>
  1591. <typedef name="type">
  1592. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::shift_right_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1593. </typedef>
  1594. <typedef name="proto_grammar">
  1595. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::shift_right_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1596. </typedef>
  1597. </struct>
  1598. <struct name="multiplies_assign">
  1599. <template>
  1600. <template-type-parameter name="T"/>
  1601. <template-type-parameter name="U"/>
  1602. </template>
  1603. <inherit><classname>proto::transform</classname>&lt; multiplies_assign&lt;T, U&gt; &gt;</inherit>
  1604. <purpose>A metafunction for generating multiplies-assign expression types,
  1605. a grammar element for matching multiplies-assign expressions, and
  1606. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1607. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1608. transform.</purpose>
  1609. <struct name="impl">
  1610. <template>
  1611. <template-type-parameter name="Expr"/>
  1612. <template-type-parameter name="State"/>
  1613. <template-type-parameter name="Data"/>
  1614. </template>
  1615. <inherit>
  1616. <type><classname>proto::pass_through</classname>&lt;multiplies_assign&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1617. </inherit>
  1618. </struct>
  1619. <typedef name="type">
  1620. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::multiplies_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1621. </typedef>
  1622. <typedef name="proto_grammar">
  1623. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::multiplies_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1624. </typedef>
  1625. </struct>
  1626. <struct name="divides_assign">
  1627. <template>
  1628. <template-type-parameter name="T"/>
  1629. <template-type-parameter name="U"/>
  1630. </template>
  1631. <inherit><classname>proto::transform</classname>&lt; divides_assign&lt;T, U&gt; &gt;</inherit>
  1632. <purpose>A metafunction for generating divides-assign expression types,
  1633. a grammar element for matching divides-assign expressions, and
  1634. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1635. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1636. transform.</purpose>
  1637. <struct name="impl">
  1638. <template>
  1639. <template-type-parameter name="Expr"/>
  1640. <template-type-parameter name="State"/>
  1641. <template-type-parameter name="Data"/>
  1642. </template>
  1643. <inherit>
  1644. <type><classname>proto::pass_through</classname>&lt;divides_assign&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1645. </inherit>
  1646. </struct>
  1647. <typedef name="type">
  1648. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::divides_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1649. </typedef>
  1650. <typedef name="proto_grammar">
  1651. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::divides_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1652. </typedef>
  1653. </struct>
  1654. <struct name="modulus_assign">
  1655. <template>
  1656. <template-type-parameter name="T"/>
  1657. <template-type-parameter name="U"/>
  1658. </template>
  1659. <inherit><classname>proto::transform</classname>&lt; modulus_assign&lt;T, U&gt; &gt;</inherit>
  1660. <purpose>A metafunction for generating modulus-assign expression types,
  1661. a grammar element for matching modulus-assign expressions, and
  1662. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1663. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1664. transform.</purpose>
  1665. <struct name="impl">
  1666. <template>
  1667. <template-type-parameter name="Expr"/>
  1668. <template-type-parameter name="State"/>
  1669. <template-type-parameter name="Data"/>
  1670. </template>
  1671. <inherit>
  1672. <type><classname>proto::pass_through</classname>&lt;modulus_assign&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1673. </inherit>
  1674. </struct>
  1675. <typedef name="type">
  1676. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::modulus_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1677. </typedef>
  1678. <typedef name="proto_grammar">
  1679. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::modulus_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1680. </typedef>
  1681. </struct>
  1682. <struct name="plus_assign">
  1683. <template>
  1684. <template-type-parameter name="T"/>
  1685. <template-type-parameter name="U"/>
  1686. </template>
  1687. <inherit><classname>proto::transform</classname>&lt; plus_assign&lt;T, U&gt; &gt;</inherit>
  1688. <purpose>A metafunction for generating plus-assign expression types,
  1689. a grammar element for matching plus-assign expressions, and
  1690. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1691. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1692. transform.</purpose>
  1693. <struct name="impl">
  1694. <template>
  1695. <template-type-parameter name="Expr"/>
  1696. <template-type-parameter name="State"/>
  1697. <template-type-parameter name="Data"/>
  1698. </template>
  1699. <inherit>
  1700. <type><classname>proto::pass_through</classname>&lt;plus_assign&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1701. </inherit>
  1702. </struct>
  1703. <typedef name="type">
  1704. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::plus_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1705. </typedef>
  1706. <typedef name="proto_grammar">
  1707. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::plus_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1708. </typedef>
  1709. </struct>
  1710. <struct name="minus_assign">
  1711. <template>
  1712. <template-type-parameter name="T"/>
  1713. <template-type-parameter name="U"/>
  1714. </template>
  1715. <inherit><classname>proto::transform</classname>&lt; minus_assign&lt;T, U&gt; &gt;</inherit>
  1716. <purpose>A metafunction for generating minus-assign expression types,
  1717. a grammar element for matching minus-assign expressions, and
  1718. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1719. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1720. transform.</purpose>
  1721. <struct name="impl">
  1722. <template>
  1723. <template-type-parameter name="Expr"/>
  1724. <template-type-parameter name="State"/>
  1725. <template-type-parameter name="Data"/>
  1726. </template>
  1727. <inherit>
  1728. <type><classname>proto::pass_through</classname>&lt;minus_assign&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1729. </inherit>
  1730. </struct>
  1731. <typedef name="type">
  1732. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::minus_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1733. </typedef>
  1734. <typedef name="proto_grammar">
  1735. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::minus_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1736. </typedef>
  1737. </struct>
  1738. <struct name="bitwise_and_assign">
  1739. <template>
  1740. <template-type-parameter name="T"/>
  1741. <template-type-parameter name="U"/>
  1742. </template>
  1743. <inherit><classname>proto::transform</classname>&lt; bitwise_and_assign&lt;T, U&gt; &gt;</inherit>
  1744. <purpose>A metafunction for generating bitwise-and-assign expression types,
  1745. a grammar element for matching bitwise-and-assign expressions, and
  1746. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1747. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1748. transform.</purpose>
  1749. <struct name="impl">
  1750. <template>
  1751. <template-type-parameter name="Expr"/>
  1752. <template-type-parameter name="State"/>
  1753. <template-type-parameter name="Data"/>
  1754. </template>
  1755. <inherit>
  1756. <type><classname>proto::pass_through</classname>&lt;bitwise_and_assign&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1757. </inherit>
  1758. </struct>
  1759. <typedef name="type">
  1760. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::bitwise_and_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1761. </typedef>
  1762. <typedef name="proto_grammar">
  1763. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::bitwise_and_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1764. </typedef>
  1765. </struct>
  1766. <struct name="bitwise_or_assign">
  1767. <template>
  1768. <template-type-parameter name="T"/>
  1769. <template-type-parameter name="U"/>
  1770. </template>
  1771. <inherit><classname>proto::transform</classname>&lt; bitwise_or_assign&lt;T, U&gt; &gt;</inherit>
  1772. <purpose>A metafunction for generating bitwise-or-assign expression types,
  1773. a grammar element for matching bitwise-or-assign expressions, and
  1774. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1775. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1776. transform.</purpose>
  1777. <struct name="impl">
  1778. <template>
  1779. <template-type-parameter name="Expr"/>
  1780. <template-type-parameter name="State"/>
  1781. <template-type-parameter name="Data"/>
  1782. </template>
  1783. <inherit>
  1784. <type><classname>proto::pass_through</classname>&lt;bitwise_or_assign&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1785. </inherit>
  1786. </struct>
  1787. <typedef name="type">
  1788. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::bitwise_or_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1789. </typedef>
  1790. <typedef name="proto_grammar">
  1791. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::bitwise_or_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1792. </typedef>
  1793. </struct>
  1794. <struct name="bitwise_xor_assign">
  1795. <template>
  1796. <template-type-parameter name="T"/>
  1797. <template-type-parameter name="U"/>
  1798. </template>
  1799. <inherit><classname>proto::transform</classname>&lt; bitwise_xor_assign&lt;T, U&gt; &gt;</inherit>
  1800. <purpose>A metafunction for generating bitwise-xor-assign expression types,
  1801. a grammar element for matching bitwise-xor-assign expressions, and
  1802. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1803. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1804. transform.</purpose>
  1805. <struct name="impl">
  1806. <template>
  1807. <template-type-parameter name="Expr"/>
  1808. <template-type-parameter name="State"/>
  1809. <template-type-parameter name="Data"/>
  1810. </template>
  1811. <inherit>
  1812. <type><classname>proto::pass_through</classname>&lt;bitwise_xor_assign&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1813. </inherit>
  1814. </struct>
  1815. <typedef name="type">
  1816. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::bitwise_xor_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1817. </typedef>
  1818. <typedef name="proto_grammar">
  1819. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::bitwise_xor_assign</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1820. </typedef>
  1821. </struct>
  1822. <struct name="subscript">
  1823. <template>
  1824. <template-type-parameter name="T"/>
  1825. <template-type-parameter name="U"/>
  1826. </template>
  1827. <inherit><classname>proto::transform</classname>&lt; subscript&lt;T, U&gt; &gt;</inherit>
  1828. <purpose>A metafunction for generating subscript expression types,
  1829. a grammar element for matching subscript expressions, and
  1830. a <conceptname>PrimitiveTransform</conceptname> that dispatches to the
  1831. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1832. transform.</purpose>
  1833. <struct name="impl">
  1834. <template>
  1835. <template-type-parameter name="Expr"/>
  1836. <template-type-parameter name="State"/>
  1837. <template-type-parameter name="Data"/>
  1838. </template>
  1839. <inherit>
  1840. <type><classname>proto::pass_through</classname>&lt;subscript&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1841. </inherit>
  1842. </struct>
  1843. <typedef name="type">
  1844. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::subscript</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1845. </typedef>
  1846. <typedef name="proto_grammar">
  1847. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::subscript</classname>, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  1848. </typedef>
  1849. </struct>
  1850. <struct name="function">
  1851. <template>
  1852. <template-type-parameter name="A" pack="1"/>
  1853. </template>
  1854. <inherit><classname>proto::transform</classname>&lt; function&lt;A...&gt; &gt;</inherit>
  1855. <purpose>A metafunction for generating function-call expression types, a grammar element for
  1856. matching function-call expressions, and
  1857. a <conceptname>PrimitiveTransform</conceptname>
  1858. that dispatches to the
  1859. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1860. transform.</purpose>
  1861. <struct name="impl">
  1862. <template>
  1863. <template-type-parameter name="Expr"/>
  1864. <template-type-parameter name="State"/>
  1865. <template-type-parameter name="Data"/>
  1866. </template>
  1867. <inherit>
  1868. <type><classname>proto::pass_through</classname>&lt;function&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1869. </inherit>
  1870. </struct>
  1871. <typedef name="type">
  1872. <type><classname>proto::expr</classname>&lt; <classname>proto::tag::function</classname>, <classname alt="proto::listN">proto::list<replaceable>N</replaceable></classname>&lt; A... &gt; &gt;</type>
  1873. </typedef>
  1874. <typedef name="proto_grammar">
  1875. <type><classname>proto::basic_expr</classname>&lt; <classname>proto::tag::function</classname>, <classname alt="proto::listN">proto::list<replaceable>N</replaceable></classname>&lt; A... &gt; &gt;</type>
  1876. </typedef>
  1877. </struct>
  1878. <struct name="nullary_expr">
  1879. <template>
  1880. <template-type-parameter name="Tag"/>
  1881. <template-type-parameter name="T"/>
  1882. </template>
  1883. <inherit><classname>proto::transform</classname>&lt; nullary_expr&lt;Tag, T&gt; &gt;</inherit>
  1884. <purpose>A metafunction for generating nullary expression types, a grammar element for matching
  1885. nullary expressions, and
  1886. a <conceptname>PrimitiveTransform</conceptname> that returns the current expression unchanged. </purpose>
  1887. <description>
  1888. <para>
  1889. Use <computeroutput>proto::nullary_expr&lt;<classname>proto::_</classname>, <classname>proto::_</classname>&gt;</computeroutput>
  1890. as a grammar element to match any nullary expression.
  1891. </para>
  1892. </description>
  1893. <struct name="impl">
  1894. <template>
  1895. <template-type-parameter name="Expr"/>
  1896. <template-type-parameter name="State"/>
  1897. <template-type-parameter name="Data"/>
  1898. </template>
  1899. <inherit><classname>proto::transform_impl</classname>&lt; Expr, State, Data &gt;</inherit>
  1900. <typedef name="result_type">
  1901. <type>Expr</type>
  1902. </typedef>
  1903. <method-group name="public member functions">
  1904. <method name="operator()" cv="const">
  1905. <type>Expr</type>
  1906. <parameter name="expr">
  1907. <paramtype>typename impl::expr_param</paramtype>
  1908. <description>
  1909. <para>The current expression </para>
  1910. </description>
  1911. </parameter>
  1912. <parameter name="">
  1913. <paramtype>typename impl::state_param</paramtype>
  1914. </parameter>
  1915. <parameter name="">
  1916. <paramtype>typename impl::data_param</paramtype>
  1917. </parameter>
  1918. <requires>
  1919. <para>
  1920. <computeroutput><classname>proto::matches</classname>&lt;Expr, proto::nullary_expr&lt;Tag, T&gt; &gt;::value</computeroutput> is <computeroutput>true</computeroutput>.
  1921. </para>
  1922. </requires>
  1923. <returns>
  1924. <para>
  1925. <computeroutput>expr</computeroutput>
  1926. </para>
  1927. </returns>
  1928. <throws>
  1929. <simpara>Will not throw.</simpara>
  1930. </throws>
  1931. </method>
  1932. </method-group>
  1933. </struct>
  1934. <typedef name="type">
  1935. <type><classname>proto::expr</classname>&lt; Tag, <classname>proto::term</classname>&lt; T &gt; &gt;</type>
  1936. </typedef>
  1937. <typedef name="proto_grammar">
  1938. <type><classname>proto::basic_expr</classname>&lt; Tag, <classname>proto::term</classname>&lt; T &gt; &gt;</type>
  1939. </typedef>
  1940. </struct>
  1941. <struct name="unary_expr">
  1942. <template>
  1943. <template-type-parameter name="Tag"/>
  1944. <template-type-parameter name="T"/>
  1945. </template>
  1946. <inherit><classname>proto::transform</classname>&lt; unary_expr&lt;Tag, T&gt; &gt;</inherit>
  1947. <purpose>A metafunction for generating unary expression types with a specified tag type,
  1948. a grammar element for matching unary expressions, and
  1949. a <conceptname>PrimitiveTransform</conceptname>
  1950. that dispatches to the
  1951. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1952. transform.</purpose>
  1953. <description>
  1954. <para>
  1955. Use <computeroutput>proto::unary_expr&lt;<classname>proto::_</classname>, <classname>proto::_</classname>&gt;</computeroutput>
  1956. as a grammar element to match any unary expression.
  1957. </para>
  1958. </description>
  1959. <struct name="impl">
  1960. <template>
  1961. <template-type-parameter name="Expr"/>
  1962. <template-type-parameter name="State"/>
  1963. <template-type-parameter name="Data"/>
  1964. </template>
  1965. <inherit>
  1966. <type><classname>proto::pass_through</classname>&lt;unary_expr&gt;::template impl&lt;Expr, State, Data&gt;</type>
  1967. </inherit>
  1968. </struct>
  1969. <typedef name="type">
  1970. <type><classname>proto::expr</classname>&lt; Tag, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  1971. </typedef>
  1972. <typedef name="proto_grammar">
  1973. <type><classname>proto::basic_expr</classname>&lt; Tag, <classname alt="proto::listN">proto::list1</classname>&lt; T &gt; &gt;</type>
  1974. </typedef>
  1975. </struct>
  1976. <struct name="binary_expr">
  1977. <template>
  1978. <template-type-parameter name="Tag"/>
  1979. <template-type-parameter name="T"/>
  1980. <template-type-parameter name="U"/>
  1981. </template>
  1982. <inherit><classname>proto::transform</classname>&lt; binary_expr&lt;Tag, T, U&gt; &gt;</inherit>
  1983. <purpose>A metafunction for generating binary expression types with a specified tag type,
  1984. a grammar element for matching binary expressions, and
  1985. a <conceptname>PrimitiveTransform</conceptname>
  1986. that dispatches to the
  1987. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  1988. transform.</purpose>
  1989. <description>
  1990. <para>
  1991. Use <computeroutput>proto::binary_expr&lt;<classname>proto::_</classname>, <classname>proto::_</classname>, <classname>proto::_</classname>&gt;</computeroutput> as a grammar element to match any binary expression.
  1992. </para>
  1993. </description>
  1994. <struct name="impl">
  1995. <template>
  1996. <template-type-parameter name="Expr"/>
  1997. <template-type-parameter name="State"/>
  1998. <template-type-parameter name="Data"/>
  1999. </template>
  2000. <inherit>
  2001. <type><classname>proto::pass_through</classname>&lt;binary_expr&gt;::template impl&lt;Expr, State, Data&gt;</type>
  2002. </inherit>
  2003. </struct>
  2004. <typedef name="type">
  2005. <type><classname>proto::expr</classname>&lt; Tag, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  2006. </typedef>
  2007. <typedef name="proto_grammar">
  2008. <type><classname>proto::basic_expr</classname>&lt; Tag, <classname alt="proto::listN">proto::list2</classname>&lt; T, U &gt; &gt;</type>
  2009. </typedef>
  2010. </struct>
  2011. <struct name="nary_expr">
  2012. <template>
  2013. <template-type-parameter name="Tag"/>
  2014. <template-type-parameter name="A" pack="1"/>
  2015. </template>
  2016. <inherit><classname>proto::transform</classname>&lt; nary_expr&lt;Tag, A...&gt; &gt;</inherit>
  2017. <purpose>A metafunction for generating n-ary expression types with a specified tag type,
  2018. a grammar element for matching n-ary expressions, and
  2019. a <conceptname>PrimitiveTransform</conceptname>
  2020. that dispatches to the
  2021. <computeroutput><classname alt="proto::pass_through">proto::pass_through&lt;&gt;</classname></computeroutput>
  2022. transform.</purpose>
  2023. <description>
  2024. <para>
  2025. Use <computeroutput>proto::nary_expr&lt;<classname>proto::_</classname>, <classname>proto::vararg</classname>&lt;<classname>proto::_</classname>&gt; &gt;</computeroutput>
  2026. as a grammar element to match any n-ary expression; that is, any non-terminal.
  2027. </para>
  2028. </description>
  2029. <struct name="impl">
  2030. <template>
  2031. <template-type-parameter name="Expr"/>
  2032. <template-type-parameter name="State"/>
  2033. <template-type-parameter name="Data"/>
  2034. </template>
  2035. <inherit>
  2036. <type><classname>proto::pass_through</classname>&lt;nary_expr&gt;::template impl&lt;Expr, State, Data&gt;</type>
  2037. </inherit>
  2038. </struct>
  2039. <typedef name="type">
  2040. <type><classname>proto::expr</classname>&lt; Tag, <classname alt="proto::listN">proto::list<replaceable>N</replaceable></classname>&lt; A... &gt; &gt;</type>
  2041. </typedef>
  2042. <typedef name="proto_grammar">
  2043. <type><classname>proto::basic_expr</classname>&lt; Tag, <classname alt="proto::listN">proto::list<replaceable>N</replaceable></classname>&lt; A... &gt; &gt;</type>
  2044. </typedef>
  2045. </struct>
  2046. <struct name="is_expr">
  2047. <template>
  2048. <template-type-parameter name="T"/>
  2049. </template>
  2050. <inherit><type>mpl::bool_&lt;<replaceable>true-or-false</replaceable>&gt;</type></inherit>
  2051. <purpose>A Boolean metafunction that indicates whether a given type <computeroutput>T</computeroutput>
  2052. is a Proto expression type.</purpose>
  2053. <description>
  2054. <para>
  2055. If <computeroutput>T</computeroutput> is an instantiation of
  2056. <computeroutput><classname alt="proto::expr">proto::expr&lt;&gt;</classname></computeroutput> or
  2057. <computeroutput><classname alt="proto::basic_expr">proto::basic_expr&lt;&gt;</classname></computeroutput> or is an extension
  2058. (via <classname alt="proto::extends">proto::extends&lt;&gt;</classname> or
  2059. <macroname>BOOST_PROTO_EXTENDS</macroname>()) of such an instantiation,
  2060. <computeroutput><classname>proto::is_expr</classname>&lt;T&gt;::value</computeroutput>
  2061. is <computeroutput>true</computeroutput>.
  2062. Otherwise, <computeroutput><classname>proto::is_expr</classname>&lt;T&gt;::value</computeroutput>
  2063. is <computeroutput>false</computeroutput>.
  2064. </para>
  2065. </description>
  2066. </struct>
  2067. <struct name="tag_of">
  2068. <template>
  2069. <template-type-parameter name="Expr"/>
  2070. </template>
  2071. <purpose>A metafunction that returns the tag type of a Proto expression. </purpose>
  2072. <typedef name="type">
  2073. <type>typename Expr::proto_tag</type>
  2074. </typedef>
  2075. </struct>
  2076. <struct name="arity_of">
  2077. <template>
  2078. <template-type-parameter name="Expr"/>
  2079. </template>
  2080. <purpose>A metafunction that returns the arity of a Proto expression. </purpose>
  2081. <inherit><type>Expr::proto_arity</type></inherit>
  2082. </struct>
  2083. <namespace name="result_of">
  2084. <struct name="as_expr">
  2085. <template>
  2086. <template-type-parameter name="T"/>
  2087. <template-type-parameter name="Domain">
  2088. <default><classname>proto::default_domain</classname></default>
  2089. </template-type-parameter>
  2090. </template>
  2091. <purpose>A metafunction that computes the return type of the
  2092. <computeroutput><functionname>proto::as_expr</functionname>()</computeroutput> function.</purpose>
  2093. <description>
  2094. <para>
  2095. The <computeroutput>proto::result_of::as_expr&lt;&gt;</computeroutput> metafunction turns types
  2096. into Proto expression types, if they are not already, in a domain-specific way. It is intended
  2097. for use to compute the type of a local variable that can hold the result of the
  2098. <computeroutput><functionname>proto::as_expr</functionname>()</computeroutput> function.
  2099. </para>
  2100. <para>
  2101. See <computeroutput><classname>proto::domain::as_expr</classname>&lt;&gt;</computeroutput>
  2102. for a complete description of the default behavior.
  2103. </para>
  2104. </description>
  2105. <typedef name="type">
  2106. <type>typename Domain::template as_expr&lt; T &gt;::result_type</type>
  2107. </typedef>
  2108. </struct>
  2109. <struct name="as_child">
  2110. <template>
  2111. <template-type-parameter name="T"/>
  2112. <template-type-parameter name="Domain">
  2113. <default><classname>proto::default_domain</classname></default>
  2114. </template-type-parameter>
  2115. </template>
  2116. <purpose>A metafunction that computes the return type of the
  2117. <computeroutput><functionname>proto::as_child</functionname>()</computeroutput> function.</purpose>
  2118. <description>
  2119. <para>
  2120. The <computeroutput>proto::result_of::as_child&lt;&gt;</computeroutput> metafunction turns types
  2121. into Proto expression types, if they are not already, in a domain-specific way. It is used by Proto
  2122. to compute the type of an object to store as a child in another expression node.
  2123. </para>
  2124. <para>
  2125. See <computeroutput><classname>proto::domain::as_child</classname>&lt;&gt;</computeroutput>
  2126. for a complete description of the default behavior.
  2127. </para>
  2128. </description>
  2129. <typedef name="type">
  2130. <type>typename Domain::template as_child&lt; T &gt;::result_type</type>
  2131. </typedef>
  2132. </struct>
  2133. <struct name="child">
  2134. <template>
  2135. <template-type-parameter name="Expr"/>
  2136. <template-type-parameter name="N">
  2137. <default>mpl::long_&lt;0&gt;</default>
  2138. </template-type-parameter>
  2139. </template>
  2140. <inherit><type><classname>proto::result_of::child_c</classname>&lt;Expr, N::value&gt;</type></inherit>
  2141. <purpose>A metafunction that returns the type of the <replaceable>N</replaceable><superscript>th</superscript>
  2142. child of a Proto expression, where N is an MPL Integral Constant. </purpose>
  2143. <description>
  2144. <para>
  2145. <computeroutput>proto::result_of::child&lt;Expr, N&gt;</computeroutput> is equivalent to
  2146. <computeroutput><classname>proto::result_of::child_c</classname>&lt;Expr, N::value&gt;</computeroutput>.
  2147. </para>
  2148. </description>
  2149. </struct>
  2150. <struct name="value">
  2151. <template>
  2152. <template-type-parameter name="Expr"/>
  2153. </template>
  2154. <purpose>A metafunction that returns the type of the value of a terminal Proto expression. </purpose>
  2155. <typedef name="value_type">
  2156. <description>
  2157. <para>
  2158. The raw type of the value as it is
  2159. stored within <computeroutput>Expr</computeroutput>. This may be a value or a reference.
  2160. </para>
  2161. </description>
  2162. <type>typename Expr::proto_child0</type>
  2163. </typedef>
  2164. <typedef name="type">
  2165. <description>
  2166. <para>
  2167. If <computeroutput>Expr</computeroutput> is not a reference type, <computeroutput>type</computeroutput>
  2168. is computed as follows:
  2169. <itemizedlist>
  2170. <listitem>
  2171. <para>
  2172. <computeroutput>T const(&amp;)[N]</computeroutput> becomes <computeroutput>T[N]</computeroutput>
  2173. </para>
  2174. </listitem>
  2175. <listitem>
  2176. <para>
  2177. <computeroutput>T[N]</computeroutput> becomes <computeroutput>T[N]</computeroutput>
  2178. </para>
  2179. </listitem>
  2180. <listitem>
  2181. <para>
  2182. <computeroutput>T(&amp;)[N]</computeroutput> becomes <computeroutput>T[N]</computeroutput>
  2183. </para>
  2184. </listitem>
  2185. <listitem>
  2186. <para>
  2187. <computeroutput>R(&amp;)(A...)</computeroutput> becomes <computeroutput>R(&amp;)(A...)</computeroutput>
  2188. </para>
  2189. </listitem>
  2190. <listitem>
  2191. <para>
  2192. <computeroutput>T const &amp;</computeroutput> becomes <computeroutput>T</computeroutput>
  2193. </para>
  2194. </listitem>
  2195. <listitem>
  2196. <para>
  2197. <computeroutput>T &amp;</computeroutput> becomes <computeroutput>T</computeroutput>
  2198. </para>
  2199. </listitem>
  2200. <listitem>
  2201. <para>
  2202. <computeroutput>T</computeroutput> becomes <computeroutput>T</computeroutput>
  2203. </para>
  2204. </listitem>
  2205. </itemizedlist>
  2206. </para>
  2207. <para>
  2208. If <computeroutput>Expr</computeroutput> is a non-const reference type, <computeroutput>type</computeroutput>
  2209. is computed as follows:
  2210. <itemizedlist>
  2211. <listitem>
  2212. <para>
  2213. <computeroutput>T const(&amp;)[N]</computeroutput> becomes <computeroutput>T const(&amp;)[N]</computeroutput>
  2214. </para>
  2215. </listitem>
  2216. <listitem>
  2217. <para>
  2218. <computeroutput>T[N]</computeroutput> becomes <computeroutput>T(&amp;)[N]</computeroutput>
  2219. </para>
  2220. </listitem>
  2221. <listitem>
  2222. <para>
  2223. <computeroutput>T(&amp;)[N]</computeroutput> becomes <computeroutput>T(&amp;)[N]</computeroutput>
  2224. </para>
  2225. </listitem>
  2226. <listitem>
  2227. <para>
  2228. <computeroutput>R(&amp;)(A...)</computeroutput> becomes <computeroutput>R(&amp;)(A...)</computeroutput>
  2229. </para>
  2230. </listitem>
  2231. <listitem>
  2232. <para>
  2233. <computeroutput>T const &amp;</computeroutput> becomes <computeroutput>T const &amp;</computeroutput>
  2234. </para>
  2235. </listitem>
  2236. <listitem>
  2237. <para>
  2238. <computeroutput>T &amp;</computeroutput> becomes <computeroutput>T &amp;</computeroutput>
  2239. </para>
  2240. </listitem>
  2241. <listitem>
  2242. <para>
  2243. <computeroutput>T</computeroutput> becomes <computeroutput>T &amp;</computeroutput>
  2244. </para>
  2245. </listitem>
  2246. </itemizedlist>
  2247. </para>
  2248. <para>
  2249. If <computeroutput>Expr</computeroutput> is a const reference type, <computeroutput>type</computeroutput>
  2250. is computed as follows:
  2251. <itemizedlist>
  2252. <listitem>
  2253. <para>
  2254. <computeroutput>T const(&amp;)[N]</computeroutput> becomes <computeroutput>T const(&amp;)[N]</computeroutput>
  2255. </para>
  2256. </listitem>
  2257. <listitem>
  2258. <para>
  2259. <computeroutput>T[N]</computeroutput> becomes <computeroutput>T const(&amp;)[N]</computeroutput>
  2260. </para>
  2261. </listitem>
  2262. <listitem>
  2263. <para>
  2264. <computeroutput>T(&amp;)[N]</computeroutput> becomes <computeroutput>T(&amp;)[N]</computeroutput>
  2265. </para>
  2266. </listitem>
  2267. <listitem>
  2268. <para>
  2269. <computeroutput>R(&amp;)(A...)</computeroutput> becomes <computeroutput>R(&amp;)(A...)</computeroutput>
  2270. </para>
  2271. </listitem>
  2272. <listitem>
  2273. <para>
  2274. <computeroutput>T const &amp;</computeroutput> becomes <computeroutput>T const &amp;</computeroutput>
  2275. </para>
  2276. </listitem>
  2277. <listitem>
  2278. <para>
  2279. <computeroutput>T &amp;</computeroutput> becomes <computeroutput>T &amp;</computeroutput>
  2280. </para>
  2281. </listitem>
  2282. <listitem>
  2283. <para>
  2284. <computeroutput>T</computeroutput> becomes <computeroutput>T const &amp;</computeroutput>
  2285. </para>
  2286. </listitem>
  2287. </itemizedlist>
  2288. </para>
  2289. </description>
  2290. <type><replaceable>see-below</replaceable></type>
  2291. </typedef>
  2292. </struct>
  2293. <struct name="left">
  2294. <template>
  2295. <template-type-parameter name="Expr"/>
  2296. </template>
  2297. <inherit>proto::result_of::child_c&lt; Expr, 0 &gt;</inherit>
  2298. <purpose>A metafunction that returns the type of the left child of a binary Proto expression. </purpose>
  2299. <description>
  2300. <para>
  2301. <computeroutput>proto::result_of::left&lt;Expr&gt;</computeroutput> is equivalent to
  2302. <computeroutput><classname>proto::result_of::child_c</classname>&lt;Expr, 0&gt;</computeroutput>.
  2303. </para>
  2304. </description>
  2305. </struct>
  2306. <struct name="right">
  2307. <template>
  2308. <template-type-parameter name="Expr"/>
  2309. </template>
  2310. <inherit>proto::result_of::child_c&lt; Expr, 1 &gt;</inherit>
  2311. <purpose>A metafunction that returns the type of the right child of a binary Proto expression. </purpose>
  2312. <description>
  2313. <para>
  2314. <computeroutput>proto::result_of::right&lt;Expr&gt;</computeroutput> is equivalent to
  2315. <computeroutput><classname>proto::result_of::child_c</classname>&lt;Expr, 1&gt;</computeroutput>.
  2316. </para>
  2317. </description>
  2318. </struct>
  2319. <struct name="child_c">
  2320. <template>
  2321. <template-type-parameter name="Expr"/>
  2322. <template-nontype-parameter name="N">
  2323. <type>long</type>
  2324. </template-nontype-parameter>
  2325. </template>
  2326. <purpose>A metafunction that returns the type of the <replaceable>N</replaceable><superscript>th</superscript>
  2327. child of a Proto expression. </purpose>
  2328. <description>
  2329. <para>
  2330. A metafunction that returns the type of the <replaceable>N</replaceable><superscript>th</superscript>
  2331. child of a Proto expression. <computeroutput>N</computeroutput> must be 0 or less than
  2332. <computeroutput>Expr::proto_arity::value</computeroutput>.
  2333. </para>
  2334. </description>
  2335. <typedef name="value_type">
  2336. <description>
  2337. <para>
  2338. The raw type of the <replaceable>N</replaceable><superscript>th</superscript> child as it is stored
  2339. within <computeroutput>Expr</computeroutput>. This may be a value or a reference.
  2340. </para>
  2341. </description>
  2342. <type>typename Expr::proto_child0</type>
  2343. </typedef>
  2344. <typedef name="type">
  2345. <description>
  2346. <para>
  2347. If <computeroutput>Expr</computeroutput> is not a reference type, <computeroutput>type</computeroutput>
  2348. is computed as follows:
  2349. <itemizedlist>
  2350. <listitem>
  2351. <para>
  2352. <computeroutput>T const &amp;</computeroutput> becomes <computeroutput>T</computeroutput>
  2353. </para>
  2354. </listitem>
  2355. <listitem>
  2356. <para>
  2357. <computeroutput>T &amp;</computeroutput> becomes <computeroutput>T</computeroutput>
  2358. </para>
  2359. </listitem>
  2360. <listitem>
  2361. <para>
  2362. <computeroutput>T</computeroutput> becomes <computeroutput>T</computeroutput>
  2363. </para>
  2364. </listitem>
  2365. </itemizedlist>
  2366. </para>
  2367. <para>
  2368. If <computeroutput>Expr</computeroutput> is a non-const reference type, <computeroutput>type</computeroutput>
  2369. is computed as follows:
  2370. <itemizedlist>
  2371. <listitem>
  2372. <para>
  2373. <computeroutput>T const &amp;</computeroutput> becomes <computeroutput>T const &amp;</computeroutput>
  2374. </para>
  2375. </listitem>
  2376. <listitem>
  2377. <para>
  2378. <computeroutput>T &amp;</computeroutput> becomes <computeroutput>T &amp;</computeroutput>
  2379. </para>
  2380. </listitem>
  2381. <listitem>
  2382. <para>
  2383. <computeroutput>T</computeroutput> becomes <computeroutput>T &amp;</computeroutput>
  2384. </para>
  2385. </listitem>
  2386. </itemizedlist>
  2387. </para>
  2388. <para>
  2389. If <computeroutput>Expr</computeroutput> is a const reference type, <computeroutput>type</computeroutput>
  2390. is computed as follows:
  2391. <itemizedlist>
  2392. <listitem>
  2393. <para>
  2394. <computeroutput>T const &amp;</computeroutput> becomes <computeroutput>T const &amp;</computeroutput>
  2395. </para>
  2396. </listitem>
  2397. <listitem>
  2398. <para>
  2399. <computeroutput>T &amp;</computeroutput> becomes <computeroutput>T &amp;</computeroutput>
  2400. </para>
  2401. </listitem>
  2402. <listitem>
  2403. <para>
  2404. <computeroutput>T</computeroutput> becomes <computeroutput>T const &amp;</computeroutput>
  2405. </para>
  2406. </listitem>
  2407. </itemizedlist>
  2408. </para>
  2409. </description>
  2410. <type><replaceable>see-below</replaceable></type>
  2411. </typedef>
  2412. </struct>
  2413. </namespace>
  2414. <overloaded-function name="as_expr">
  2415. <signature>
  2416. <type>typename <classname>proto::result_of::as_expr</classname>&lt; T &gt;::type</type>
  2417. <template>
  2418. <template-type-parameter name="T"/>
  2419. </template>
  2420. <parameter name="t">
  2421. <paramtype>T &amp;</paramtype>
  2422. </parameter>
  2423. </signature>
  2424. <signature>
  2425. <type>typename <classname>proto::result_of::as_expr</classname>&lt; T const &gt;::type</type>
  2426. <template>
  2427. <template-type-parameter name="T"/>
  2428. </template>
  2429. <parameter name="t">
  2430. <paramtype>T const &amp;</paramtype>
  2431. </parameter>
  2432. </signature>
  2433. <signature>
  2434. <type>typename <classname>proto::result_of::as_expr</classname>&lt; T, Domain &gt;::type</type>
  2435. <template>
  2436. <template-type-parameter name="Domain"/>
  2437. <template-type-parameter name="T"/>
  2438. </template>
  2439. <parameter name="t">
  2440. <paramtype>T &amp;</paramtype>
  2441. </parameter>
  2442. </signature>
  2443. <signature>
  2444. <type>typename <classname>proto::result_of::as_expr</classname>&lt; T const, Domain &gt;::type</type>
  2445. <template>
  2446. <template-type-parameter name="Domain"/>
  2447. <template-type-parameter name="T"/>
  2448. </template>
  2449. <parameter name="t">
  2450. <paramtype>T const &amp;</paramtype>
  2451. </parameter>
  2452. </signature>
  2453. <purpose>A function that wraps non-Proto expression types in Proto terminals and leaves Proto
  2454. expression types alone.</purpose>
  2455. <description>
  2456. <para>
  2457. The <computeroutput>proto::as_expr()</computeroutput> function returns Proto expression
  2458. objects that are suitable for storage in a local variable. It turns non-Proto objects
  2459. into Proto terminals. Its behavior is domain-specific. By default,
  2460. non-Proto types are wrapped by value (if possible) in a new Proto terminal expression,
  2461. and objects that are already Proto expressions are returned by value.
  2462. </para>
  2463. <para>
  2464. If <computeroutput>Domain</computeroutput> is not explicitly specified, it is assumed to
  2465. be <computeroutput><classname>proto::default_domain</classname></computeroutput>.
  2466. </para>
  2467. <para>
  2468. See <computeroutput><classname>proto::domain::as_expr</classname>&lt;&gt;</computeroutput>
  2469. for a complete description of this function's default behavior.
  2470. </para>
  2471. </description>
  2472. <returns>
  2473. <computeroutput>typename Domain::template as_expr&lt; T &gt;()(t)</computeroutput>
  2474. </returns>
  2475. </overloaded-function>
  2476. <overloaded-function name="as_child">
  2477. <signature>
  2478. <type>typename <classname>proto::result_of::as_child</classname>&lt; T &gt;::type</type>
  2479. <template>
  2480. <template-type-parameter name="T"/>
  2481. </template>
  2482. <parameter name="t">
  2483. <paramtype>T &amp;</paramtype>
  2484. </parameter>
  2485. </signature>
  2486. <signature>
  2487. <type>typename <classname>proto::result_of::as_child</classname>&lt; T const &gt;::type</type>
  2488. <template>
  2489. <template-type-parameter name="T"/>
  2490. </template>
  2491. <parameter name="t">
  2492. <paramtype>T const &amp;</paramtype>
  2493. </parameter>
  2494. </signature>
  2495. <signature>
  2496. <type>typename <classname>proto::result_of::as_child</classname>&lt; T, Domain &gt;::type</type>
  2497. <template>
  2498. <template-type-parameter name="Domain"/>
  2499. <template-type-parameter name="T"/>
  2500. </template>
  2501. <parameter name="t">
  2502. <paramtype>T &amp;</paramtype>
  2503. </parameter>
  2504. </signature>
  2505. <signature>
  2506. <type>typename <classname>proto::result_of::as_child</classname>&lt; T const, Domain &gt;::type</type>
  2507. <template>
  2508. <template-type-parameter name="Domain"/>
  2509. <template-type-parameter name="T"/>
  2510. </template>
  2511. <parameter name="t">
  2512. <paramtype>T const &amp;</paramtype>
  2513. </parameter>
  2514. </signature>
  2515. <purpose>A function that wraps non-Proto objects in Proto terminals (by reference) and leaves
  2516. Proto expression types alone.</purpose>
  2517. <description>
  2518. <para>
  2519. The <computeroutput>proto::as_child()</computeroutput> function returns Proto expression
  2520. objects that are suitable for storage as child nodes in an expression tree. It turns
  2521. non-Proto objects into Proto terminals. Its behavior is domain-specific. By default,
  2522. non-Proto types are held wrapped by reference in a new Proto terminal expression, and
  2523. objects that are already Proto expressions are simply returned by reference.
  2524. </para>
  2525. <para>
  2526. If <computeroutput>Domain</computeroutput> is not explicitly specified, it is assumed to
  2527. be <computeroutput><classname>proto::default_domain</classname></computeroutput>.
  2528. </para>
  2529. <para>
  2530. See <computeroutput><classname>proto::domain::as_child</classname>&lt;&gt;</computeroutput>
  2531. for a complete description of this function's default behavior.
  2532. </para>
  2533. </description>
  2534. <returns>
  2535. <computeroutput>typename Domain::template as_child&lt; T &gt;()(t)</computeroutput>
  2536. </returns>
  2537. </overloaded-function>
  2538. <overloaded-function name="child">
  2539. <signature>
  2540. <type>typename <classname>proto::result_of::child</classname>&lt; Expr &amp;, N &gt;::type</type>
  2541. <template>
  2542. <template-type-parameter name="N"/>
  2543. <template-type-parameter name="Expr"/>
  2544. </template>
  2545. <parameter name="expr">
  2546. <paramtype>Expr &amp;</paramtype>
  2547. <description>
  2548. <para>The Proto expression. </para>
  2549. </description>
  2550. </parameter>
  2551. </signature>
  2552. <signature>
  2553. <type>typename <classname>proto::result_of::child</classname>&lt; Expr const &amp;, N &gt;::type</type>
  2554. <template>
  2555. <template-type-parameter name="N"/>
  2556. <template-type-parameter name="Expr"/>
  2557. </template>
  2558. <parameter name="expr">
  2559. <paramtype>Expr const &amp;</paramtype>
  2560. </parameter>
  2561. </signature>
  2562. <signature>
  2563. <type>typename <classname>proto::result_of::child</classname>&lt; Expr &amp; &gt;::type</type>
  2564. <template>
  2565. <template-type-parameter name="Expr"/>
  2566. </template>
  2567. <parameter name="expr">
  2568. <paramtype>Expr &amp;</paramtype>
  2569. </parameter>
  2570. </signature>
  2571. <signature>
  2572. <type>typename <classname>proto::result_of::child</classname>&lt; Expr const &amp; &gt;::type</type>
  2573. <template>
  2574. <template-type-parameter name="Expr"/>
  2575. </template>
  2576. <parameter name="expr">
  2577. <paramtype>Expr const &amp;</paramtype>
  2578. </parameter>
  2579. </signature>
  2580. <purpose>Return the <replaceable>N</replaceable><superscript>th</superscript> child of the specified Proto expression. </purpose>
  2581. <description>
  2582. <para>
  2583. Return the <replaceable>N</replaceable><superscript>th</superscript> child of the specified Proto expression.
  2584. If <computeroutput>N</computeroutput> is not specified, as in <computeroutput>proto::child(expr)</computeroutput>,
  2585. then <computeroutput>N</computeroutput> is assumed to be <computeroutput>mpl::long_&lt;0&gt;</computeroutput>.
  2586. The child is returned by reference.
  2587. </para>
  2588. </description>
  2589. <requires>
  2590. <para>
  2591. <computeroutput><classname>proto::is_expr</classname>&lt;Expr&gt;::value</computeroutput> is
  2592. <computeroutput>true</computeroutput>.
  2593. </para>
  2594. <para>
  2595. <computeroutput>N</computeroutput> is an MPL Integral Constant.
  2596. </para>
  2597. <para>
  2598. <computeroutput>N::value &lt; Expr::proto_arity::value</computeroutput>
  2599. </para>
  2600. </requires>
  2601. <returns>
  2602. <para>A reference to the <replaceable>N</replaceable><superscript>th</superscript> child
  2603. of <computeroutput>expr</computeroutput>.</para>
  2604. </returns>
  2605. <throws>
  2606. <simpara>Will not throw.</simpara>
  2607. </throws>
  2608. </overloaded-function>
  2609. <overloaded-function name="child_c">
  2610. <signature>
  2611. <type>typename <classname>proto::result_of::child_c</classname>&lt; Expr &amp;, N &gt;::type</type>
  2612. <template>
  2613. <template-nontype-parameter name="N">
  2614. <type>long</type>
  2615. </template-nontype-parameter>
  2616. <template-type-parameter name="Expr"/>
  2617. </template>
  2618. <parameter name="expr">
  2619. <paramtype>Expr &amp;</paramtype>
  2620. </parameter>
  2621. </signature>
  2622. <signature>
  2623. <type>typename <classname>proto::result_of::child_c</classname>&lt; Expr const &amp;, N &gt;::type</type>
  2624. <template>
  2625. <template-nontype-parameter name="N">
  2626. <type>long</type>
  2627. </template-nontype-parameter>
  2628. <template-type-parameter name="Expr"/>
  2629. </template>
  2630. <parameter name="expr">
  2631. <paramtype>Expr const &amp;</paramtype>
  2632. </parameter>
  2633. </signature>
  2634. <purpose>Return the <replaceable>N</replaceable><superscript>th</superscript> child of the specified
  2635. Proto expression. </purpose>
  2636. <description>
  2637. <para>
  2638. Return the <replaceable>N</replaceable><superscript>th</superscript> child of the specified Proto
  2639. expression. The child is returned by reference.
  2640. </para>
  2641. </description>
  2642. <requires>
  2643. <para>
  2644. <computeroutput><classname>proto::is_expr</classname>&lt;Expr&gt;::value</computeroutput> is
  2645. <computeroutput>true</computeroutput>.
  2646. </para>
  2647. <para>
  2648. <computeroutput>N &lt; Expr::proto_arity::value</computeroutput>
  2649. </para>
  2650. </requires>
  2651. <returns>
  2652. <para>A reference to the <replaceable>N</replaceable><superscript>th</superscript> child
  2653. of <computeroutput>expr</computeroutput>.</para>
  2654. </returns>
  2655. <throws>
  2656. <simpara>Will not throw.</simpara>
  2657. </throws>
  2658. </overloaded-function>
  2659. <overloaded-function name="value">
  2660. <signature>
  2661. <type>typename <classname>proto::result_of::value</classname>&lt; Expr &amp; &gt;::type</type>
  2662. <template>
  2663. <template-type-parameter name="Expr"/>
  2664. </template>
  2665. <parameter name="expr">
  2666. <paramtype>Expr &amp;</paramtype>
  2667. </parameter>
  2668. </signature>
  2669. <signature>
  2670. <type>typename <classname>proto::result_of::value</classname>&lt; Expr const &amp; &gt;::type</type>
  2671. <template>
  2672. <template-type-parameter name="Expr"/>
  2673. </template>
  2674. <parameter name="expr">
  2675. <paramtype>Expr const &amp;</paramtype>
  2676. </parameter>
  2677. </signature>
  2678. <purpose>Return the value stored within the specified Proto terminal expression. </purpose>
  2679. <description>
  2680. <para>
  2681. Return the the value stored within the specified Proto terminal expression. The value is
  2682. returned by reference.
  2683. </para>
  2684. </description>
  2685. <requires>
  2686. <para>
  2687. <computeroutput>0 == Expr::proto_arity::value</computeroutput>
  2688. </para>
  2689. </requires>
  2690. <returns>
  2691. <para>A reference to the terminal's value </para>
  2692. </returns>
  2693. <throws>
  2694. <simpara>Will not throw.</simpara>
  2695. </throws>
  2696. </overloaded-function>
  2697. <overloaded-function name="left">
  2698. <signature>
  2699. <type>typename <classname>proto::result_of::left</classname>&lt; Expr &amp; &gt;::type</type>
  2700. <template>
  2701. <template-type-parameter name="Expr"/>
  2702. </template>
  2703. <parameter name="expr">
  2704. <paramtype>Expr &amp;</paramtype>
  2705. </parameter>
  2706. </signature>
  2707. <signature>
  2708. <type>typename <classname>proto::result_of::left</classname>&lt; Expr const &amp; &gt;::type</type>
  2709. <template>
  2710. <template-type-parameter name="Expr"/>
  2711. </template>
  2712. <parameter name="expr">
  2713. <paramtype>Expr const &amp;</paramtype>
  2714. </parameter>
  2715. </signature>
  2716. <purpose>Return the left child of the specified binary Proto expression. </purpose>
  2717. <description>
  2718. <para>Return the left child of the specified binary Proto expression. The child is returned by reference.</para>
  2719. </description>
  2720. <requires>
  2721. <para>
  2722. <computeroutput><classname>proto::is_expr</classname>&lt;Expr&gt;::value</computeroutput> is
  2723. <computeroutput>true</computeroutput>.
  2724. </para>
  2725. <para>
  2726. <computeroutput>2 == Expr::proto_arity::value</computeroutput>
  2727. </para>
  2728. </requires>
  2729. <returns>
  2730. <para>A reference to the left child of <computeroutput>expr</computeroutput>.
  2731. </para>
  2732. </returns>
  2733. <throws>
  2734. <simpara>Will not throw.</simpara>
  2735. </throws>
  2736. </overloaded-function>
  2737. <overloaded-function name="right">
  2738. <signature>
  2739. <type>typename <classname>proto::result_of::right</classname>&lt; Expr &amp; &gt;::type</type>
  2740. <template>
  2741. <template-type-parameter name="Expr"/>
  2742. </template>
  2743. <parameter name="expr">
  2744. <paramtype>Expr &amp;</paramtype>
  2745. <description>
  2746. <para>The Proto expression. </para>
  2747. </description>
  2748. </parameter>
  2749. </signature>
  2750. <signature>
  2751. <type>typename <classname>proto::result_of::right</classname>&lt; Expr const &amp; &gt;::type</type>
  2752. <template>
  2753. <template-type-parameter name="Expr"/>
  2754. </template>
  2755. <parameter name="expr">
  2756. <paramtype>Expr const &amp;</paramtype>
  2757. </parameter>
  2758. </signature>
  2759. <purpose>Return the right child of the specified binary Proto expression. </purpose>
  2760. <description>
  2761. <para>Return the right child of the specified binary Proto expression. The child is returned by reference.</para>
  2762. </description>
  2763. <requires>
  2764. <para>
  2765. <computeroutput><classname>proto::is_expr</classname>&lt;Expr&gt;::value</computeroutput> is
  2766. <computeroutput>true</computeroutput>.
  2767. </para>
  2768. <para>
  2769. <computeroutput>2 == Expr::proto_arity::value</computeroutput>
  2770. </para>
  2771. </requires>
  2772. <returns>
  2773. <para>
  2774. A reference to the right child of <computeroutput>expr</computeroutput>.
  2775. </para>
  2776. </returns>
  2777. <throws>
  2778. <simpara>Will not throw.</simpara>
  2779. </throws>
  2780. </overloaded-function>
  2781. </namespace>
  2782. </namespace>
  2783. </header>