blob: ff12d43720f5f6f3b7b3bf71073945fda3bb69dd [file] [log] [blame]
<!-- Copyright 2008 Lubomir Bourdev and Hailin Jin
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
-->
<!--
Copyright 2005-2007 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
Some files are held under additional license.
Please see "http://stlab.adobe.com/licenses.html" for more information.
-->
<!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" lang="en" xml:lang="en">
<head>
<TITLE>Generic Image Library: nth_channel_deref_fn Struct Template Reference</TITLE>
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=ISO-8859-1"/>
<LINK TYPE="text/css" REL="stylesheet" HREF="adobe_source.css"/>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" style='width: 100%; margin: 0; padding: 0'><tr>
<td width="100%" valign="top" style='padding-left: 10px; padding-right: 10px; padding-bottom: 10px'>
<div class="qindex"><a class="qindex" href="index.html">Modules</a>
| <a class="qindex" href="classes.html">Alphabetical List</a>
| <a class="qindex" href="annotated.html">Class List</a>
| <a class="qindex" href="dirs.html">Directories</a>
| <a class="qindex" href="files.html">File List</a>
| <a class="qindex" href="../index.html">GIL Home Page</a>
</div>
<!-- End Header -->
<!-- Generated by Doxygen 1.5.6 -->
<div class="navpath"><a class="el" href="namespaceboost.html">boost</a>::<b>gil</b>::<b>detail</b>::<a class="el" href="g_i_l_0515.html">nth_channel_deref_fn</a>
</div>
<div class="contents">
<h1>nth_channel_deref_fn Struct Template Reference<br>
<small>
[<a class="el" href="g_i_l_0186.html">Models</a>]</small>
</h1><!-- doxytag: class="boost::gil::detail::nth_channel_deref_fn" --><code>#include &lt;<a class="el" href="g_i_l_0226.html">image_view_factory.hpp</a>&gt;</code>
<p>
<p>
<a href="g_i_l_0514.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename SrcP&gt;<br>
struct boost::gil::detail::nth_channel_deref_fn&lt; SrcP &gt;</h3>
Function object that returns a grayscale reference of the N-th channel of a given reference. Models: <a class="el" href="g_i_l_0350.html" title="Represents a unary function object that can be invoked upon dereferencing a pixel...">PixelDereferenceAdaptorConcept</a>.<p>
If the input is a <a class="el" href="g_i_l_0599.html" title="Represents a pixel value (a container of channels). Models: HomogeneousColorBaseValueConcept...">pixel</a> value or constant reference, the function object is immutable. Otherwise it is mutable (and returns non-const reference to the n-th channel). <table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1909fca476c5798593a7ed34e7157fce"></a><!-- doxytag: member="boost::gil::detail::nth_channel_deref_fn::const_t" ref="1909fca476c5798593a7ed34e7157fce" args="" -->
typedef <a class="el" href="g_i_l_0515.html">nth_channel_deref_fn</a><br>
&lt; const_ref_t &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><b>const_t</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c79ed995e6b4b1d8f459f0b37807e5cb"></a><!-- doxytag: member="boost::gil::detail::nth_channel_deref_fn::value_type" ref="c79ed995e6b4b1d8f459f0b37807e5cb" args="" -->
typedef <a class="el" href="g_i_l_0606.html">pixel_value_type</a><br>
&lt; channel_t, <a class="el" href="g_i_l_0567.html">gray_layout_t</a> &gt;<br>
::type&nbsp;</td><td class="memItemRight" valign="bottom"><b>value_type</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="01ea77e6b19ce255f74eaa354e8cc6c1"></a><!-- doxytag: member="boost::gil::detail::nth_channel_deref_fn::const_reference" ref="01ea77e6b19ce255f74eaa354e8cc6c1" args="" -->
typedef <a class="el" href="g_i_l_0604.html">pixel_reference_type</a><br>
&lt; channel_t, <a class="el" href="g_i_l_0567.html">gray_layout_t</a>, <br>
false, false &gt;::type&nbsp;</td><td class="memItemRight" valign="bottom"><b>const_reference</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2ad6c059d39c24be9cddd1905995d23c"></a><!-- doxytag: member="boost::gil::detail::nth_channel_deref_fn::argument_type" ref="2ad6c059d39c24be9cddd1905995d23c" args="" -->
typedef SrcP&nbsp;</td><td class="memItemRight" valign="bottom"><b>argument_type</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="63a5fc94722c4fbdb03ed0ec51cd89c8"></a><!-- doxytag: member="boost::gil::detail::nth_channel_deref_fn::reference" ref="63a5fc94722c4fbdb03ed0ec51cd89c8" args="" -->
typedef mpl::if_c&lt; is_mutable, <br>
ref_t, <a class="el" href="g_i_l_0599.html">value_type</a> &gt;::type&nbsp;</td><td class="memItemRight" valign="bottom"><b>reference</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fe53618876958e2e15351c19804738f2"></a><!-- doxytag: member="boost::gil::detail::nth_channel_deref_fn::result_type" ref="fe53618876958e2e15351c19804738f2" args="" -->
typedef reference&nbsp;</td><td class="memItemRight" valign="bottom"><b>result_type</b></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f775f083d7bf091fec5c1a27680dc5c8"></a><!-- doxytag: member="boost::gil::detail::nth_channel_deref_fn::BOOST_STATIC_CONSTANT" ref="f775f083d7bf091fec5c1a27680dc5c8" args="(bool, is_mutable=pixel_is_reference&lt; SrcP &gt;::value &amp;&amp;pixel_reference_is_mutable&lt; SrcP &gt;::value)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>BOOST_STATIC_CONSTANT</b> (bool, is_mutable=<a class="el" href="g_i_l_0600.html">pixel_is_reference</a>&lt; SrcP &gt;::value &amp;&amp;<a class="el" href="g_i_l_0602.html">pixel_reference_is_mutable</a>&lt; SrcP &gt;::value)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="addab96793b55b507de7b81ba1ddc280"></a><!-- doxytag: member="boost::gil::detail::nth_channel_deref_fn::nth_channel_deref_fn" ref="addab96793b55b507de7b81ba1ddc280" args="(int n=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>nth_channel_deref_fn</b> (int n=0)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="2030e999de9a2a28201d9bb8c1410835"></a><!-- doxytag: member="boost::gil::detail::nth_channel_deref_fn::nth_channel_deref_fn" ref="2030e999de9a2a28201d9bb8c1410835" args="(const nth_channel_deref_fn&lt; P &gt; &amp;d)" -->
template&lt;typename P&gt; </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memTemplItemRight" valign="bottom"><b>nth_channel_deref_fn</b> (const <a class="el" href="g_i_l_0515.html">nth_channel_deref_fn</a>&lt; P &gt; &amp;d)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3fbe164ea1c95ff0e87ef3deb8fea603"></a><!-- doxytag: member="boost::gil::detail::nth_channel_deref_fn::operator()" ref="3fbe164ea1c95ff0e87ef3deb8fea603" args="(argument_type srcP) const " -->
result_type&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator()</b> (argument_type srcP) const </td></tr>
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="da0e3adfe5f3db62623fb73a49c120b3"></a><!-- doxytag: member="boost::gil::detail::nth_channel_deref_fn::_n" ref="da0e3adfe5f3db62623fb73a49c120b3" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>_n</b></td></tr>
</table>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="g_i_l_0226.html">image_view_factory.hpp</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sat May 2 13:50:18 2009 for Generic Image Library by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>