2
0
mirror of https://github.com/boostorg/gil.git synced 2026-02-10 23:42:13 +00:00
Files
gil/html/reference/structboost_1_1gil_1_1binary__operation__obj.html
2022-06-29 22:22:09 +00:00

100 lines
6.4 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.17"/>
<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.17 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceboost.html">boost</a></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 views.
<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 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:a595b766c185b7a75d9a858788896cb9f"><td class="memTemplParams" colspan="2"><a id="a595b766c185b7a75d9a858788896cb9f"></a>
template&lt;typename V1 , typename V2 &gt; </td></tr>
<tr class="memitem:a595b766c185b7a75d9a858788896cb9f"><td class="memTemplItemLeft" align="right" valign="top">BOOST_FORCEINLINE auto&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator()</b> (const std::pair&lt; const V1 *, const V2 * &gt; &amp;p) const -&gt; result_type</td></tr>
<tr class="separator:a595b766c185b7a75d9a858788896cb9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28dc5321c91084be34c6f9e7cced26ba"><td class="memTemplParams" colspan="2"><a id="a28dc5321c91084be34c6f9e7cced26ba"></a>
template&lt;typename V1 , typename V2 &gt; </td></tr>
<tr class="memitem:a28dc5321c91084be34c6f9e7cced26ba"><td class="memTemplItemLeft" align="right" valign="top">BOOST_FORCEINLINE auto&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator()</b> (const V1 &amp;v1, const V2 &amp;v2) const -&gt; result_type</td></tr>
<tr class="separator:a28dc5321c91084be34c6f9e7cced26ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2dfbb4ec3ad5f10b8b7d68490f182900"><td class="memItemLeft" align="right" valign="top"><a id="a2dfbb4ec3ad5f10b8b7d68490f182900"></a>
auto&#160;</td><td class="memItemRight" valign="bottom"><b>operator()</b> (const error_t &amp;) const -&gt; result_type</td></tr>
<tr class="separator:a2dfbb4ec3ad5f10b8b7d68490f182900"><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.17
</small>
</address>
</body>
</html>