2
0
mirror of https://github.com/boostorg/gil.git synced 2026-01-29 19:42:11 +00:00
Files
gil/html/reference/structboost_1_1gil_1_1binary__operation__obj.html

108 lines
7.2 KiB
HTML

<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Generic Image Library: binary_operation_obj&lt; Derived, Result &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-boost.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="boost-header">
<table border="0" cellpadding="7" cellspacing="0" width="100%" summary="header">
<tr>
<td valign="top" width="300">
<h3><a href="../index.html"><img alt="Boost GIL" src="../_static/gil.png" border="0"></a></h3>
</td>
<td ><h1 align="center"><a href="../index.html"></a></h1></td>
<td></td>
</tr>
</table>
</div>
<hr/>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<!-- Generated by Doxygen 1.8.11 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<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>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="structboost_1_1gil_1_1binary__operation__obj-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">binary_operation_obj&lt; Derived, Result &gt; Struct Template Reference<div class="ingroups"><a class="el" href="group___image_view.html">Image View</a> &raquo; <a class="el" href="group___image_view_algorithm.html">Algorithms and Utility Functions</a> &raquo; <a class="el" href="group___image_view_s_t_l_algorithms.html">STL-like Algorithms</a></div></div> </div>
</div><!--header-->
<div class="contents">
<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.
<a href="structboost_1_1gil_1_1binary__operation__obj.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="algorithm_8hpp_source.html">algorithm.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a735c5016bc01e98819966555d22d3a08"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a735c5016bc01e98819966555d22d3a08"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>result_type</b> = Result</td></tr>
<tr class="separator:a735c5016bc01e98819966555d22d3a08"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af4a2bdae31e473e6ff59a66c22b64d73"><td class="memTemplParams" colspan="2"><a class="anchor" id="af4a2bdae31e473e6ff59a66c22b64d73"></a>
template&lt;typename V1 , typename V2 &gt; </td></tr>
<tr class="memitem:af4a2bdae31e473e6ff59a66c22b64d73"><td class="memTemplItemLeft" align="right" valign="top">BOOST_FORCEINLINE result_type&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator()</b> (const std::pair&lt; const V1 *, const V2 * &gt; &amp;p) const </td></tr>
<tr class="separator:af4a2bdae31e473e6ff59a66c22b64d73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c3b02d9a2187c62645e3dea77c851c1"><td class="memTemplParams" colspan="2"><a class="anchor" id="a2c3b02d9a2187c62645e3dea77c851c1"></a>
template&lt;typename V1 , typename V2 &gt; </td></tr>
<tr class="memitem:a2c3b02d9a2187c62645e3dea77c851c1"><td class="memTemplItemLeft" align="right" valign="top">BOOST_FORCEINLINE result_type&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator()</b> (const V1 &amp;v1, const V2 &amp;v2) const </td></tr>
<tr class="separator:a2c3b02d9a2187c62645e3dea77c851c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bc4473befbab9d1e1d4ca395ff88461"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1bc4473befbab9d1e1d4ca395ff88461"></a>
result_type&#160;</td><td class="memItemRight" valign="bottom"><b>operator()</b> (const error_t &amp;) const </td></tr>
<tr class="separator:a1bc4473befbab9d1e1d4ca395ff88461"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Derived, typename Result = void&gt;<br />
struct boost::gil::binary_operation_obj&lt; Derived, Result &gt;</h3>
<p>A generic binary operation on views</p>
<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>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="algorithm_8hpp_source.html">algorithm.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.13-->
<!-- start footer part -->
<hr class="footer"/>
<address class="footer">
<small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">doxygen</a> 1.8.11
</small>
</address>
</body>
</html>