You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

160 lines
12 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.4"/>
  7. <title>tbb::thread_bound_filter Class Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  15. <!-- end header part -->
  16. <!-- Generated by Doxygen 1.8.4 -->
  17. <div id="navrow1" class="tabs">
  18. <ul class="tablist">
  19. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  20. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  21. <li><a href="modules.html"><span>Modules</span></a></li>
  22. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  23. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  24. <li><a href="files.html"><span>Files</span></a></li>
  25. </ul>
  26. </div>
  27. <div id="navrow2" class="tabs2">
  28. <ul class="tablist">
  29. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  30. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  31. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  32. </ul>
  33. </div>
  34. <div id="nav-path" class="navpath">
  35. <ul>
  36. <li class="navelem"><a class="el" href="a00222.html">tbb</a></li><li class="navelem"><a class="el" href="a00150.html">thread_bound_filter</a></li> </ul>
  37. </div>
  38. </div><!-- top -->
  39. <div class="header">
  40. <div class="summary">
  41. <a href="#pub-types">Public Types</a> &#124;
  42. <a href="#pub-methods">Public Member Functions</a> &#124;
  43. <a href="#pro-methods">Protected Member Functions</a> &#124;
  44. <a href="a00269.html">List of all members</a> </div>
  45. <div class="headertitle">
  46. <div class="title">tbb::thread_bound_filter Class Reference<div class="ingroups"><a class="el" href="a00234.html">Algorithms</a></div></div> </div>
  47. </div><!--header-->
  48. <div class="contents">
  49. <p>A stage in a pipeline served by a user thread.
  50. <a href="a00150.html#details">More...</a></p>
  51. <p><code>#include &lt;pipeline.h&gt;</code></p>
  52. <div class="dynheader">
  53. Inheritance diagram for tbb::thread_bound_filter:</div>
  54. <div class="dyncontent">
  55. <div class="center">
  56. <img src="a00150.png" usemap="#tbb::thread_bound_filter_map" alt=""/>
  57. <map id="tbb::thread_bound_filter_map" name="tbb::thread_bound_filter_map">
  58. <area href="a00053.html" title="A stage in a pipeline. " alt="tbb::filter" shape="rect" coords="0,56,145,80"/>
  59. </map>
  60. </div></div>
  61. <table class="memberdecls">
  62. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  63. Public Types</h2></td></tr>
  64. <tr class="memitem:a2425d6944a22a57c906945df57290e9d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><b>result_type</b> { <b>success</b>,
  65. <b>item_not_available</b>,
  66. <b>end_of_stream</b>
  67. }</td></tr>
  68. <tr class="separator:a2425d6944a22a57c906945df57290e9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  69. </table><table class="memberdecls">
  70. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  71. Public Member Functions</h2></td></tr>
  72. <tr class="memitem:a12cfa43c620066a8783529cc8519c6f9"><td class="memItemLeft" align="right" valign="top">result_type __TBB_EXPORTED_METHOD&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00150.html#a12cfa43c620066a8783529cc8519c6f9">try_process_item</a> ()</td></tr>
  73. <tr class="memdesc:a12cfa43c620066a8783529cc8519c6f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">If a data item is available, invoke operator() on that item. <a href="#a12cfa43c620066a8783529cc8519c6f9">More...</a><br/></td></tr>
  74. <tr class="separator:a12cfa43c620066a8783529cc8519c6f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:ac99258407f382d84568a510075074fc7"><td class="memItemLeft" align="right" valign="top">result_type __TBB_EXPORTED_METHOD&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00150.html#ac99258407f382d84568a510075074fc7">process_item</a> ()</td></tr>
  76. <tr class="memdesc:ac99258407f382d84568a510075074fc7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wait until a data item becomes available, and invoke operator() on that item. <a href="#ac99258407f382d84568a510075074fc7">More...</a><br/></td></tr>
  77. <tr class="separator:ac99258407f382d84568a510075074fc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. </table><table class="memberdecls">
  79. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  80. Protected Member Functions</h2></td></tr>
  81. <tr class="memitem:a5f236956f85f28c783127c949e902610"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5f236956f85f28c783127c949e902610"></a>
  82. &#160;</td><td class="memItemRight" valign="bottom"><b>thread_bound_filter</b> (mode filter_mode)</td></tr>
  83. <tr class="separator:a5f236956f85f28c783127c949e902610"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. </table><table class="memberdecls">
  85. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
  86. Additional Inherited Members</h2></td></tr>
  87. <tr class="inherit_header pro_static_attribs_a00053"><td colspan="2" onclick="javascript:toggleInherit('pro_static_attribs_a00053')"><img src="closed.png" alt="-"/>&#160;Static Protected Attributes inherited from <a class="el" href="a00053.html">tbb::filter</a></td></tr>
  88. <tr class="memitem:ae9dab2e01b0963b341ab04b59eec1475 inherit pro_static_attribs_a00053"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9dab2e01b0963b341ab04b59eec1475"></a>
  89. static const unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00053.html#ae9dab2e01b0963b341ab04b59eec1475">filter_is_serial</a> = 0x1</td></tr>
  90. <tr class="memdesc:ae9dab2e01b0963b341ab04b59eec1475 inherit pro_static_attribs_a00053"><td class="mdescLeft">&#160;</td><td class="mdescRight">The lowest bit 0 is for parallel vs. serial. <br/></td></tr>
  91. <tr class="separator:ae9dab2e01b0963b341ab04b59eec1475 inherit pro_static_attribs_a00053"><td class="memSeparator" colspan="2">&#160;</td></tr>
  92. <tr class="memitem:a091fcf6abc79edfa5c8bf01f742e2392 inherit pro_static_attribs_a00053"><td class="memItemLeft" align="right" valign="top">static const unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00053.html#a091fcf6abc79edfa5c8bf01f742e2392">filter_is_out_of_order</a> = 0x1&lt;&lt;4</td></tr>
  93. <tr class="memdesc:a091fcf6abc79edfa5c8bf01f742e2392 inherit pro_static_attribs_a00053"><td class="mdescLeft">&#160;</td><td class="mdescRight">4th bit distinguishes ordered vs unordered filters. <a href="#a091fcf6abc79edfa5c8bf01f742e2392">More...</a><br/></td></tr>
  94. <tr class="separator:a091fcf6abc79edfa5c8bf01f742e2392 inherit pro_static_attribs_a00053"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr class="memitem:a1382f216bd094064a18eb48ecc43c86b inherit pro_static_attribs_a00053"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1382f216bd094064a18eb48ecc43c86b"></a>
  96. static const unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00053.html#a1382f216bd094064a18eb48ecc43c86b">filter_is_bound</a> = 0x1&lt;&lt;5</td></tr>
  97. <tr class="memdesc:a1382f216bd094064a18eb48ecc43c86b inherit pro_static_attribs_a00053"><td class="mdescLeft">&#160;</td><td class="mdescRight">5th bit distinguishes thread-bound and regular filters. <br/></td></tr>
  98. <tr class="separator:a1382f216bd094064a18eb48ecc43c86b inherit pro_static_attribs_a00053"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:a6645ec56872b6ba2056dcaa467e292f7 inherit pro_static_attribs_a00053"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6645ec56872b6ba2056dcaa467e292f7"></a>
  100. static const unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00053.html#a6645ec56872b6ba2056dcaa467e292f7">filter_may_emit_null</a> = 0x1&lt;&lt;6</td></tr>
  101. <tr class="memdesc:a6645ec56872b6ba2056dcaa467e292f7 inherit pro_static_attribs_a00053"><td class="mdescLeft">&#160;</td><td class="mdescRight">6th bit marks input filters emitting small objects <br/></td></tr>
  102. <tr class="separator:a6645ec56872b6ba2056dcaa467e292f7 inherit pro_static_attribs_a00053"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:aab9689e23a96c6c9bf1c8caae74d92ee inherit pro_static_attribs_a00053"><td class="memItemLeft" align="right" valign="top">static const unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00053.html#aab9689e23a96c6c9bf1c8caae74d92ee">exact_exception_propagation</a></td></tr>
  104. <tr class="memdesc:aab9689e23a96c6c9bf1c8caae74d92ee inherit pro_static_attribs_a00053"><td class="mdescLeft">&#160;</td><td class="mdescRight">7th bit defines exception propagation mode expected by the application. <a href="#aab9689e23a96c6c9bf1c8caae74d92ee">More...</a><br/></td></tr>
  105. <tr class="separator:aab9689e23a96c6c9bf1c8caae74d92ee inherit pro_static_attribs_a00053"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. </table>
  107. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  108. <div class="textblock"><p>A stage in a pipeline served by a user thread. </p>
  109. </div><h2 class="groupheader">Member Function Documentation</h2>
  110. <a class="anchor" id="ac99258407f382d84568a510075074fc7"></a>
  111. <div class="memitem">
  112. <div class="memproto">
  113. <table class="memname">
  114. <tr>
  115. <td class="memname">result_type __TBB_EXPORTED_METHOD tbb::thread_bound_filter::process_item </td>
  116. <td>(</td>
  117. <td class="paramname">)</td><td></td>
  118. <td></td>
  119. </tr>
  120. </table>
  121. </div><div class="memdoc">
  122. <p>Wait until a data item becomes available, and invoke operator() on that item. </p>
  123. <p>This interface is blocking. Returns 'success' if an item was processed. Returns 'end_of_stream' if there are no more items to process. Never returns 'item_not_available', as it blocks until another return condition applies. </p>
  124. </div>
  125. </div>
  126. <a class="anchor" id="a12cfa43c620066a8783529cc8519c6f9"></a>
  127. <div class="memitem">
  128. <div class="memproto">
  129. <table class="memname">
  130. <tr>
  131. <td class="memname">result_type __TBB_EXPORTED_METHOD tbb::thread_bound_filter::try_process_item </td>
  132. <td>(</td>
  133. <td class="paramname">)</td><td></td>
  134. <td></td>
  135. </tr>
  136. </table>
  137. </div><div class="memdoc">
  138. <p>If a data item is available, invoke operator() on that item. </p>
  139. <p>This interface is non-blocking. Returns 'success' if an item was processed. Returns 'item_not_available' if no item can be processed now but more may arrive in the future, or if token limit is reached. Returns 'end_of_stream' if there are no more items to process. </p>
  140. </div>
  141. </div>
  142. <hr/>The documentation for this class was generated from the following file:<ul>
  143. <li>pipeline.h</li>
  144. </ul>
  145. </div><!-- contents -->
  146. <hr>
  147. <p></p>
  148. Copyright &copy; 2005-2014 Intel Corporation. All Rights Reserved.
  149. <p></p>
  150. Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
  151. registered trademarks or trademarks of Intel Corporation or its
  152. subsidiaries in the United States and other countries.
  153. <p></p>
  154. * Other names and brands may be claimed as the property of others.