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.

123 lines
7.0 KiB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
  3. <title>tbb::thread_bound_filter Class Reference</title>
  4. <link href="doxygen.css" rel="stylesheet" type="text/css">
  5. <link href="tabs.css" rel="stylesheet" type="text/css">
  6. </head><body>
  7. <!-- Generated by Doxygen 1.4.7 -->
  8. <div class="tabs">
  9. <ul>
  10. <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
  11. <li><a href="modules.html"><span>Modules</span></a></li>
  12. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  13. <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
  14. <li><a href="files.html"><span>Files</span></a></li>
  15. <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  16. </ul></div>
  17. <div class="tabs">
  18. <ul>
  19. <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
  20. <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
  21. <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  22. </ul></div>
  23. <div class="nav">
  24. <a class="el" href="a00428.html">tbb</a>::<a class="el" href="a00361.html">thread_bound_filter</a></div>
  25. <h1>tbb::thread_bound_filter Class Reference<br>
  26. <small>
  27. [<a class="el" href="a00441.html">Algorithms</a>]</small>
  28. </h1><!-- doxytag: class="tbb::thread_bound_filter" --><!-- doxytag: inherits="tbb::filter" -->A stage in a pipeline served by a user thread.
  29. <a href="#_details">More...</a>
  30. <p>
  31. <code>#include &lt;pipeline.h&gt;</code>
  32. <p>
  33. <p>Inheritance diagram for tbb::thread_bound_filter:
  34. <p><center><img src="a00361.png" usemap="#tbb::thread_bound_filter_map" border="0" alt=""></center>
  35. <map name="tbb::thread_bound_filter_map">
  36. <area href="a00294.html" alt="tbb::filter" shape="rect" coords="0,0,145,24">
  37. </map>
  38. <a href="a00108.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
  39. <tr><td></td></tr>
  40. <tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
  41. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="902c4645e624e8f589b89841df5331de0c135a0274225f59d2b2a682d1103f23"></a><!-- doxytag: member="tbb::thread_bound_filter::success" ref="902c4645e624e8f589b89841df5331de0c135a0274225f59d2b2a682d1103f23" args="" -->
  42. &nbsp;</td><td class="memItemRight" valign="bottom"><b>success</b></td></tr>
  43. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="902c4645e624e8f589b89841df5331de5243cf0030982cfa4ac1a8e97acb39f4"></a><!-- doxytag: member="tbb::thread_bound_filter::item_not_available" ref="902c4645e624e8f589b89841df5331de5243cf0030982cfa4ac1a8e97acb39f4" args="" -->
  44. &nbsp;</td><td class="memItemRight" valign="bottom"><b>item_not_available</b></td></tr>
  45. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="902c4645e624e8f589b89841df5331ded4085a8b251604b51c0f19602eeef09f"></a><!-- doxytag: member="tbb::thread_bound_filter::end_of_stream" ref="902c4645e624e8f589b89841df5331ded4085a8b251604b51c0f19602eeef09f" args="" -->
  46. &nbsp;</td><td class="memItemRight" valign="bottom"><b>end_of_stream</b></td></tr>
  47. <tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><b>result_type</b> { <b>success</b>,
  48. <b>item_not_available</b>,
  49. <b>end_of_stream</b>
  50. }</td></tr>
  51. <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
  52. <tr><td class="memItemLeft" nowrap align="right" valign="top">result_type __TBB_EXPORTED_METHOD&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00361.html#c4f90f2c771bce748beb9be734fa286c">try_process_item</a> ()</td></tr>
  53. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">If a data item is available, invoke operator() on that item. <a href="#c4f90f2c771bce748beb9be734fa286c"></a><br></td></tr>
  54. <tr><td class="memItemLeft" nowrap align="right" valign="top">result_type __TBB_EXPORTED_METHOD&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00361.html#5e726bdc7fbd924c0b07bd558b1d4d5d">process_item</a> ()</td></tr>
  55. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Wait until a data item becomes available, and invoke operator() on that item. <a href="#5e726bdc7fbd924c0b07bd558b1d4d5d"></a><br></td></tr>
  56. <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
  57. <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="413fad2ade743d9af5dcabc56aedf4fe"></a><!-- doxytag: member="tbb::thread_bound_filter::thread_bound_filter" ref="413fad2ade743d9af5dcabc56aedf4fe" args="(mode filter_mode)" -->
  58. &nbsp;</td><td class="memItemRight" valign="bottom"><b>thread_bound_filter</b> (mode filter_mode)</td></tr>
  59. </table>
  60. <hr><a name="_details"></a><h2>Detailed Description</h2>
  61. A stage in a pipeline served by a user thread.
  62. <p>
  63. <hr><h2>Member Function Documentation</h2>
  64. <a class="anchor" name="5e726bdc7fbd924c0b07bd558b1d4d5d"></a><!-- doxytag: member="tbb::thread_bound_filter::process_item" ref="5e726bdc7fbd924c0b07bd558b1d4d5d" args="()" -->
  65. <div class="memitem">
  66. <div class="memproto">
  67. <table class="memname">
  68. <tr>
  69. <td class="memname">result_type __TBB_EXPORTED_METHOD tbb::thread_bound_filter::process_item </td>
  70. <td>(</td>
  71. <td class="paramname"> </td>
  72. <td>&nbsp;)&nbsp;</td>
  73. <td width="100%"></td>
  74. </tr>
  75. </table>
  76. </div>
  77. <div class="memdoc">
  78. <p>
  79. Wait until a data item becomes available, and invoke operator() on that item.
  80. <p>
  81. 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.
  82. </div>
  83. </div><p>
  84. <a class="anchor" name="c4f90f2c771bce748beb9be734fa286c"></a><!-- doxytag: member="tbb::thread_bound_filter::try_process_item" ref="c4f90f2c771bce748beb9be734fa286c" args="()" -->
  85. <div class="memitem">
  86. <div class="memproto">
  87. <table class="memname">
  88. <tr>
  89. <td class="memname">result_type __TBB_EXPORTED_METHOD tbb::thread_bound_filter::try_process_item </td>
  90. <td>(</td>
  91. <td class="paramname"> </td>
  92. <td>&nbsp;)&nbsp;</td>
  93. <td width="100%"></td>
  94. </tr>
  95. </table>
  96. </div>
  97. <div class="memdoc">
  98. <p>
  99. If a data item is available, invoke operator() on that item.
  100. <p>
  101. 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.
  102. </div>
  103. </div><p>
  104. <hr>The documentation for this class was generated from the following file:<ul>
  105. <li>pipeline.h</ul>
  106. <hr>
  107. <p></p>
  108. Copyright &copy; 2005-2013 Intel Corporation. All Rights Reserved.
  109. <p></p>
  110. Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
  111. registered trademarks or trademarks of Intel Corporation or its
  112. subsidiaries in the United States and other countries.
  113. <p></p>
  114. * Other names and brands may be claimed as the property of others.