1 <!-- HTML header for doxygen 1.8.13-->
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
7 <meta name="generator" content="Doxygen 1.8.15"/>
8 <meta name="viewport" content="width=device-width, initial-scale=1"/>
9 <title>Generic Image Library: binary_operation_obj< Derived, Result > Struct Template Reference</title>
10 <link href="tabs.css" rel="stylesheet" type="text/css"/>
11 <script type="text/javascript" src="jquery.js"></script>
12 <script type="text/javascript" src="dynsections.js"></script>
13 <link href="doxygen.css" rel="stylesheet" type="text/css" />
14 <link href="doxygen-boost.css" rel="stylesheet" type="text/css"/>
17 <div class="boost-header">
18 <table border="0" cellpadding="7" cellspacing="0" width="100%" summary="header">
20 <td valign="top" width="300">
21 <h3><a href="../index.html"><img alt="Boost GIL" src="../_static/gil.png" border="0"></a></h3>
23 <td ><h1 align="center"><a href="../index.html"></a></h1></td>
29 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
30 <!-- Generated by Doxygen 1.8.15 -->
31 <script type="text/javascript" src="menudata.js"></script>
32 <script type="text/javascript" src="menu.js"></script>
33 <script type="text/javascript">
34 /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
36 initMenu('',false,false,'search.php','Search');
38 /* @license-end */</script>
39 <div id="main-nav"></div>
40 <div id="nav-path" class="navpath">
42 <li class="navelem"><b>boost</b></li><li class="navelem"><b>gil</b></li><li class="navelem"><a class="el" href="structboost_1_1gil_1_1binary__operation__obj.html">binary_operation_obj</a></li> </ul>
47 <a href="#pub-types">Public Types</a> |
48 <a href="#pub-methods">Public Member Functions</a> |
49 <a href="structboost_1_1gil_1_1binary__operation__obj-members.html">List of all members</a> </div>
50 <div class="headertitle">
51 <div class="title">binary_operation_obj< Derived, Result > Struct Template Reference<div class="ingroups"><a class="el" href="group___image_view.html">Image View</a> » <a class="el" href="group___image_view_algorithm.html">Algorithms and Utility Functions</a> » <a class="el" href="group___image_view_s_t_l_algorithms.html">STL-like Algorithms</a></div></div> </div>
53 <div class="contents">
55 <p>A generic binary operation on viewsUse this class as a convenience superclass when defining an operation for any image views. Many operations have different behavior when the two views are compatible. This class checks for compatibility and invokes apply_compatible(V1,V2) or apply_incompatible(V1,V2) of the subclass. You must provide apply_compatible(V1,V2) method in your subclass, but apply_incompatible(V1,V2) is not required and the default throws std::bad_cast.
56 <a href="structboost_1_1gil_1_1binary__operation__obj.html#details">More...</a></p>
58 <p><code>#include <<a class="el" href="algorithm_8hpp_source.html">algorithm.hpp</a>></code></p>
59 <table class="memberdecls">
60 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
61 Public Types</h2></td></tr>
62 <tr class="memitem:a735c5016bc01e98819966555d22d3a08"><td class="memItemLeft" align="right" valign="top"><a id="a735c5016bc01e98819966555d22d3a08"></a>
63 using </td><td class="memItemRight" valign="bottom"><b>result_type</b> = Result</td></tr>
64 <tr class="separator:a735c5016bc01e98819966555d22d3a08"><td class="memSeparator" colspan="2"> </td></tr>
65 </table><table class="memberdecls">
66 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
67 Public Member Functions</h2></td></tr>
68 <tr class="memitem:a86dc76fc5e5b58a33109d188fc3af66c"><td class="memTemplParams" colspan="2"><a id="a86dc76fc5e5b58a33109d188fc3af66c"></a>
69 template<typename V1 , typename V2 > </td></tr>
70 <tr class="memitem:a86dc76fc5e5b58a33109d188fc3af66c"><td class="memTemplItemLeft" align="right" valign="top">BOOST_FORCEINLINE result_type </td><td class="memTemplItemRight" valign="bottom"><b>operator()</b> (const std::pair< const V1 *, const V2 * > &p) const</td></tr>
71 <tr class="separator:a86dc76fc5e5b58a33109d188fc3af66c"><td class="memSeparator" colspan="2"> </td></tr>
72 <tr class="memitem:a30d4f310fde3dfe2ccb987bd0d57716a"><td class="memTemplParams" colspan="2"><a id="a30d4f310fde3dfe2ccb987bd0d57716a"></a>
73 template<typename V1 , typename V2 > </td></tr>
74 <tr class="memitem:a30d4f310fde3dfe2ccb987bd0d57716a"><td class="memTemplItemLeft" align="right" valign="top">BOOST_FORCEINLINE result_type </td><td class="memTemplItemRight" valign="bottom"><b>operator()</b> (const V1 &v1, const V2 &v2) const</td></tr>
75 <tr class="separator:a30d4f310fde3dfe2ccb987bd0d57716a"><td class="memSeparator" colspan="2"> </td></tr>
76 <tr class="memitem:ab0faadf3e12a1fff886b724ac69b7c60"><td class="memItemLeft" align="right" valign="top"><a id="ab0faadf3e12a1fff886b724ac69b7c60"></a>
77 result_type </td><td class="memItemRight" valign="bottom"><b>operator()</b> (const error_t &) const</td></tr>
78 <tr class="separator:ab0faadf3e12a1fff886b724ac69b7c60"><td class="memSeparator" colspan="2"> </td></tr>
80 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
81 <div class="textblock"><h3>template<typename Derived, typename Result = void><br />
82 struct boost::gil::binary_operation_obj< Derived, Result ></h3>
84 <p>A generic binary operation on views</p>
85 <p>Use this class as a convenience superclass when defining an operation for any image views. Many operations have different behavior when the two views are compatible. This class checks for compatibility and invokes apply_compatible(V1,V2) or apply_incompatible(V1,V2) of the subclass. You must provide apply_compatible(V1,V2) method in your subclass, but apply_incompatible(V1,V2) is not required and the default throws std::bad_cast. </p>
86 </div><hr/>The documentation for this struct was generated from the following file:<ul>
87 <li><a class="el" href="algorithm_8hpp_source.html">algorithm.hpp</a></li>
89 </div><!-- contents -->
90 <!-- HTML footer for doxygen 1.8.13-->
91 <!-- start footer part -->
93 <address class="footer">
95 Generated by  <a href="http://www.doxygen.org/index.html">doxygen</a> 1.8.15