PageRenderTime 68ms CodeModel.GetById 12ms app.highlight 41ms RepoModel.GetById 5ms app.codeStats 0ms

/Src/Dependencies/Boost/libs/gil/doc/html/g_i_l_0239.html

http://hadesmem.googlecode.com/
HTML | 195 lines | 176 code | 3 blank | 16 comment | 0 complexity | df54d2437c14a8040a3b25017c0af8c0 MD5 | raw file
  1<!-- Copyright 2008 Lubomir Bourdev and Hailin Jin
  2
  3     Distributed under the Boost Software License, Version 1.0.
  4     (See accompanying file LICENSE_1_0.txt or copy at
  5     http://www.boost.org/LICENSE_1_0.txt)
  6  -->
  7
  8<!--
  9    Copyright 2005-2007 Adobe Systems Incorporated
 10    Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
 11    or a copy at http://stlab.adobe.com/licenses.html)
 12
 13    Some files are held under additional license.
 14    Please see "http://stlab.adobe.com/licenses.html" for more information.
 15-->
 16
 17<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 18        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 19<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
 20
 21<head>
 22    <TITLE>Generic Image Library: packed_pixel.hpp Source File</TITLE>
 23    <META HTTP-EQUIV="content-type" CONTENT="text/html;charset=ISO-8859-1"/>
 24    <LINK TYPE="text/css" REL="stylesheet" HREF="adobe_source.css"/>
 25</head>
 26<body>
 27<table border="0" cellspacing="0" cellpadding="0" style='width: 100%; margin: 0; padding: 0'><tr>
 28<td width="100%" valign="top" style='padding-left: 10px; padding-right: 10px; padding-bottom: 10px'>
 29<div class="qindex"><a class="qindex" href="index.html">Modules</a> 
 30                  | <a class="qindex" href="classes.html">Alphabetical List</a> 
 31                  | <a class="qindex" href="annotated.html">Class List</a> 
 32                  | <a class="qindex" href="dirs.html">Directories</a> 
 33                  | <a class="qindex" href="files.html">File List</a> 
 34                  | <a class="qindex" href="../index.html">GIL Home Page</a> 
 35</div>
 36<!-- End Header -->
 37<!-- Generated by Doxygen 1.5.6 -->
 38  <div class="navpath"><a class="el" href="g_i_l_0076.html">boost</a>&nbsp;&raquo&nbsp;<a class="el" href="g_i_l_0079.html">gil</a>
 39  </div>
 40<div class="contents">
 41<h1>packed_pixel.hpp</h1><a href="g_i_l_0240.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
 42<a name="l00002"></a>00002 <span class="comment">    Copyright 2005-2007 Adobe Systems Incorporated</span>
 43<a name="l00003"></a>00003 <span class="comment">   </span>
 44<a name="l00004"></a>00004 <span class="comment">    Use, modification and distribution are subject to the Boost Software License,</span>
 45<a name="l00005"></a>00005 <span class="comment">    Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at</span>
 46<a name="l00006"></a>00006 <span class="comment">    http://www.boost.org/LICENSE_1_0.txt).</span>
 47<a name="l00007"></a>00007 <span class="comment"></span>
 48<a name="l00008"></a>00008 <span class="comment">    See http://opensource.adobe.com/gil for most recent version including documentation.</span>
 49<a name="l00009"></a>00009 <span class="comment">*/</span>
 50<a name="l00010"></a>00010 
 51<a name="l00011"></a>00011 <span class="comment">/*************************************************************************************************/</span>
 52<a name="l00012"></a>00012 
 53<a name="l00013"></a>00013 <span class="preprocessor">#ifndef GIL_PACKED_PIXEL_H</span>
 54<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define GIL_PACKED_PIXEL_H</span>
 55<a name="l00015"></a>00015 <span class="preprocessor"></span>
 56<a name="l00024"></a>00024 
 57<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;functional&gt;</span>
 58<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;boost/utility/enable_if.hpp&gt;</span>
 59<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;boost/mpl/bool.hpp&gt;</span>
 60<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;boost/mpl/front.hpp&gt;</span>
 61<a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="g_i_l_0094.html" title="GIL configuration file.">gil_config.hpp</a>"</span>
 62<a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="pixel_8hpp.html" title="pixel class and related utilities">pixel.hpp</a>"</span>
 63<a name="l00031"></a>00031 
 64<a name="l00032"></a>00032 <span class="keyword">namespace </span>boost { <span class="keyword">namespace </span>gil {
 65<a name="l00033"></a>00033 
 66<a name="l00037"></a>00037 
 67<a name="l00056"></a>00056 
 68<a name="l00057"></a>00057 
 69<a name="l00058"></a>00058 
 70<a name="l00059"></a>00059 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField,      <span class="comment">// A type that holds the bits of the pixel. Typically an integral type, like boost::uint16_t</span>
 71<a name="l00060"></a>00060           <span class="keyword">typename</span> ChannelRefVec, <span class="comment">// An MPL vector whose elements are packed channels. They must be constructible from BitField. GIL uses packed_channel_reference</span>
 72<a name="l00061"></a>00061           <span class="keyword">typename</span> Layout&gt;        <span class="comment">// Layout defining the color space and ordering of the channels. Example value: rgb_layout_t</span>
 73<a name="l00062"></a><a class="code" href="g_i_l_0595.html">00062</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a> {
 74<a name="l00063"></a>00063     BitField _bitfield;
 75<a name="l00064"></a>00064 
 76<a name="l00065"></a>00065     <span class="keyword">typedef</span> Layout                layout_t;
 77<a name="l00066"></a>00066     <span class="keyword">typedef</span> <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>          <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">value_type</a>;
 78<a name="l00067"></a>00067     <span class="keyword">typedef</span> <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">value_type</a>&amp;           <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">reference</a>;
 79<a name="l00068"></a>00068     <span class="keyword">typedef</span> <span class="keyword">const</span> <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">value_type</a>&amp;     <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">const_reference</a>;
 80<a name="l00069"></a>00069 
 81<a name="l00070"></a>00070     BOOST_STATIC_CONSTANT(<span class="keywordtype">bool</span>, is_mutable = <a class="code" href="g_i_l_0429.html" title="Traits for channels. Contains the following members:.">channel_traits</a>&lt;<span class="keyword">typename</span> mpl::front&lt;ChannelRefVec&gt;::type&gt;::is_mutable);
 82<a name="l00071"></a>00071 
 83<a name="l00072"></a>00072     <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>(){}
 84<a name="l00073"></a>00073     <span class="keyword">explicit</span> <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>(<span class="keyword">const</span> BitField&amp; bitfield) : _bitfield(bitfield) {}
 85<a name="l00074"></a>00074 
 86<a name="l00075"></a>00075     <span class="comment">// Construct from another compatible pixel type</span>
 87<a name="l00076"></a>00076     <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>(<span class="keyword">const</span> <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>&amp; p) : _bitfield(p.<a class="code" href="g_i_l_0595.html#be60dad4ae2eb0daf0d399e66fc2c11a">_bitfield</a>) {}
 88<a name="l00077"></a>00077     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> P&gt; <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>(<span class="keyword">const</span> P&amp; p, <span class="keyword">typename</span> enable_if_c&lt;is_pixel&lt;P&gt;::value&gt;::type* d=0)            { check_compatible&lt;P&gt;(); static_copy(p,*<span class="keyword">this</span>); }   
 89<a name="l00078"></a>00078     <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>(<span class="keywordtype">int</span> chan0, <span class="keywordtype">int</span> chan1) : _bitfield(0) { 
 90<a name="l00079"></a>00079         BOOST_STATIC_ASSERT((<a class="code" href="g_i_l_0581.html" title="Returns the number of channels of a pixel-based GIL construct.">num_channels&lt;packed_pixel&gt;::value</a>==2)); 
 91<a name="l00080"></a>00080         at_c&lt;0&gt;(*this)=chan0; at_c&lt;1&gt;(*this)=chan1; 
 92<a name="l00081"></a>00081     } 
 93<a name="l00082"></a>00082     <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>(<span class="keywordtype">int</span> chan0, <span class="keywordtype">int</span> chan1, <span class="keywordtype">int</span> chan2) : _bitfield(0) { 
 94<a name="l00083"></a>00083         BOOST_STATIC_ASSERT((<a class="code" href="g_i_l_0581.html" title="Returns the number of channels of a pixel-based GIL construct.">num_channels&lt;packed_pixel&gt;::value</a>==3)); 
 95<a name="l00084"></a>00084         at_c&lt;0&gt;(*this)=chan0; at_c&lt;1&gt;(*this)=chan1; at_c&lt;2&gt;(*this)=chan2; 
 96<a name="l00085"></a>00085     } 
 97<a name="l00086"></a>00086     <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>(<span class="keywordtype">int</span> chan0, <span class="keywordtype">int</span> chan1, <span class="keywordtype">int</span> chan2, <span class="keywordtype">int</span> chan3) : _bitfield(0) { 
 98<a name="l00087"></a>00087         BOOST_STATIC_ASSERT((<a class="code" href="g_i_l_0581.html" title="Returns the number of channels of a pixel-based GIL construct.">num_channels&lt;packed_pixel&gt;::value</a>==4)); 
 99<a name="l00088"></a>00088         at_c&lt;0&gt;(*this)=chan0; at_c&lt;1&gt;(*this)=chan1; at_c&lt;2&gt;(*this)=chan2; at_c&lt;3&gt;(*this)=chan3; 
100<a name="l00089"></a>00089     } 
101<a name="l00090"></a>00090     <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>(<span class="keywordtype">int</span> chan0, <span class="keywordtype">int</span> chan1, <span class="keywordtype">int</span> chan2, <span class="keywordtype">int</span> chan3, <span class="keywordtype">int</span> chan4) : _bitfield(0) { 
102<a name="l00091"></a>00091         BOOST_STATIC_ASSERT((<a class="code" href="g_i_l_0581.html" title="Returns the number of channels of a pixel-based GIL construct.">num_channels&lt;packed_pixel&gt;::value</a>==5)); 
103<a name="l00092"></a>00092         at_c&lt;0&gt;(*this)=chan0; at_c&lt;1&gt;(*this)=chan1; at_c&lt;2&gt;(*this)=chan2; at_c&lt;3&gt;(*this)=chan3; at_c&lt;4&gt;(*this)=chan4;
104<a name="l00093"></a>00093     } 
105<a name="l00094"></a>00094 
106<a name="l00095"></a>00095     <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>&amp; p)     { _bitfield=p.<a class="code" href="g_i_l_0595.html#be60dad4ae2eb0daf0d399e66fc2c11a">_bitfield</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }
107<a name="l00096"></a>00096 
108<a name="l00097"></a>00097     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> P&gt; <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>&amp; operator=(<span class="keyword">const</span> P&amp; p)        { assign(p, mpl::bool_&lt;is_pixel&lt;P&gt;::value&gt;()); <span class="keywordflow">return</span> *<span class="keyword">this</span>; } 
109<a name="l00098"></a>00098     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> P&gt; <span class="keywordtype">bool</span>          operator==(<span class="keyword">const</span> P&amp; p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> equal(p, mpl::bool_&lt;is_pixel&lt;P&gt;::value&gt;()); } 
110<a name="l00099"></a>00099 
111<a name="l00100"></a>00100     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> P&gt; <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> P&amp; p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !(*<span class="keyword">this</span>==p); }
112<a name="l00101"></a>00101 
113<a name="l00102"></a>00102 <span class="keyword">private</span>:
114<a name="l00103"></a>00103     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Pixel&gt; <span class="keyword">static</span> <span class="keywordtype">void</span> check_compatible() { gil_function_requires&lt;PixelsCompatibleConcept&lt;Pixel,packed_pixel&gt; &gt;(); }
115<a name="l00104"></a>00104     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Pixel&gt; <span class="keywordtype">void</span> assign(<span class="keyword">const</span> Pixel&amp; p, mpl::true_)       { check_compatible&lt;Pixel&gt;(); static_copy(p,*<span class="keyword">this</span>); } 
116<a name="l00105"></a>00105     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Pixel&gt; <span class="keywordtype">bool</span>  equal(<span class="keyword">const</span> Pixel&amp; p, mpl::true_)<span class="keyword"> const </span>{ check_compatible&lt;Pixel&gt;(); <span class="keywordflow">return</span> static_equal(*<span class="keyword">this</span>,p); } 
117<a name="l00106"></a>00106 
118<a name="l00107"></a>00107 <span class="comment">// Support for assignment/equality comparison of a channel with a grayscale pixel</span>
119<a name="l00108"></a>00108     <span class="keyword">static</span> <span class="keywordtype">void</span> check_gray() {  BOOST_STATIC_ASSERT((is_same&lt;typename Layout::color_space_t, gray_t&gt;::value)); }
120<a name="l00109"></a>00109     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Channel&gt; <span class="keywordtype">void</span> assign(<span class="keyword">const</span> Channel&amp; chan, mpl::false_)       { check_gray(); at_c&lt;0&gt;(*this)=chan; }
121<a name="l00110"></a>00110     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Channel&gt; <span class="keywordtype">bool</span> equal (<span class="keyword">const</span> Channel&amp; chan, mpl::false_)<span class="keyword"> const </span>{ check_gray(); <span class="keywordflow">return</span> at_c&lt;0&gt;(*this)==chan; }
122<a name="l00111"></a>00111 <span class="keyword">public</span>:
123<a name="l00112"></a>00112     <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>&amp;  operator= (<span class="keywordtype">int</span> chan)       { check_gray(); at_c&lt;0&gt;(*this)=chan; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }
124<a name="l00113"></a>00113     <span class="keywordtype">bool</span>           operator==(<span class="keywordtype">int</span> chan)<span class="keyword"> const </span>{ check_gray(); <span class="keywordflow">return</span> at_c&lt;0&gt;(*this)==chan; }
125<a name="l00114"></a>00114 };
126<a name="l00115"></a>00115 
127<a name="l00117"></a>00117 <span class="comment">//  ColorBasedConcept</span>
128<a name="l00119"></a>00119 <span class="comment"></span>
129<a name="l00120"></a>00120 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField, <span class="keyword">typename</span> ChannelRefVec, <span class="keyword">typename</span> Layout, <span class="keywordtype">int</span> K&gt;  
130<a name="l00121"></a>00121 <span class="keyword">struct </span>kth_element_type&lt;<a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">packed_pixel</a>&lt;BitField,ChannelRefVec,Layout&gt;,K&gt; : <span class="keyword">public</span> mpl::at_c&lt;ChannelRefVec,K&gt; {};
131<a name="l00122"></a>00122 
132<a name="l00123"></a>00123 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField, <span class="keyword">typename</span> ChannelRefVec, <span class="keyword">typename</span> Layout, <span class="keywordtype">int</span> K&gt;  
133<a name="l00124"></a>00124 <span class="keyword">struct </span>kth_element_reference_type&lt;packed_pixel&lt;BitField,ChannelRefVec,Layout&gt;,K&gt; : <span class="keyword">public</span> mpl::at_c&lt;ChannelRefVec,K&gt; {};
134<a name="l00125"></a>00125 
135<a name="l00126"></a>00126 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField, <span class="keyword">typename</span> ChannelRefVec, <span class="keyword">typename</span> Layout, <span class="keywordtype">int</span> K&gt;  
136<a name="l00127"></a>00127 <span class="keyword">struct </span>kth_element_const_reference_type&lt;packed_pixel&lt;BitField,ChannelRefVec,Layout&gt;,K&gt; {
137<a name="l00128"></a>00128     <span class="keyword">typedef</span> <span class="keyword">typename</span> channel_traits&lt;typename mpl::at_c&lt;ChannelRefVec,K&gt;::type&gt;::const_reference type;
138<a name="l00129"></a>00129 };
139<a name="l00130"></a>00130 
140<a name="l00131"></a>00131 <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> K, <span class="keyword">typename</span> P, <span class="keyword">typename</span> C, <span class="keyword">typename</span> L&gt; <span class="keyword">inline</span>
141<a name="l00132"></a>00132 <span class="keyword">typename</span> kth_element_reference_type&lt;packed_pixel&lt;P,C,L&gt;, K&gt;::type 
142<a name="l00133"></a>00133 at_c(packed_pixel&lt;P,C,L&gt;&amp; p) { 
143<a name="l00134"></a>00134     <span class="keywordflow">return</span> <span class="keyword">typename</span> kth_element_reference_type&lt;packed_pixel&lt;P,C,L&gt;, K&gt;::type(&amp;p._bitfield); 
144<a name="l00135"></a>00135 }
145<a name="l00136"></a>00136 
146<a name="l00137"></a>00137 <span class="keyword">template</span> &lt;<span class="keywordtype">int</span> K, <span class="keyword">typename</span> P, <span class="keyword">typename</span> C, <span class="keyword">typename</span> L&gt; <span class="keyword">inline</span>
147<a name="l00138"></a>00138 <span class="keyword">typename</span> kth_element_const_reference_type&lt;packed_pixel&lt;P,C,L&gt;, K&gt;::type 
148<a name="l00139"></a>00139 at_c(<span class="keyword">const</span> packed_pixel&lt;P,C,L&gt;&amp; p) { 
149<a name="l00140"></a>00140     <span class="keywordflow">return</span> <span class="keyword">typename</span> kth_element_const_reference_type&lt;packed_pixel&lt;P,C,L&gt;, K&gt;::type(&amp;p._bitfield);
150<a name="l00141"></a>00141 }
151<a name="l00142"></a>00142 
152<a name="l00144"></a>00144 <span class="comment">//  PixelConcept</span>
153<a name="l00146"></a>00146 <span class="comment"></span>
154<a name="l00147"></a>00147 <span class="comment">// Metafunction predicate that flags packed_pixel as a model of PixelConcept. Required by PixelConcept</span>
155<a name="l00148"></a>00148 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField, <span class="keyword">typename</span> ChannelRefVec, <span class="keyword">typename</span> Layout&gt;  
156<a name="l00149"></a>00149 <span class="keyword">struct </span>is_pixel&lt;packed_pixel&lt;BitField,ChannelRefVec,Layout&gt; &gt; : <span class="keyword">public</span> mpl::true_{};
157<a name="l00150"></a>00150 
158<a name="l00152"></a>00152 <span class="comment">//  PixelBasedConcept</span>
159<a name="l00154"></a>00154 <span class="comment"></span>
160<a name="l00155"></a>00155 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> P, <span class="keyword">typename</span> C, <span class="keyword">typename</span> Layout&gt;
161<a name="l00156"></a>00156 <span class="keyword">struct </span>color_space_type&lt;packed_pixel&lt;P,C,Layout&gt; &gt; {
162<a name="l00157"></a>00157     <span class="keyword">typedef</span> <span class="keyword">typename</span> Layout::color_space_t type;
163<a name="l00158"></a>00158 }; 
164<a name="l00159"></a>00159 
165<a name="l00160"></a>00160 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> P, <span class="keyword">typename</span> C, <span class="keyword">typename</span> Layout&gt;
166<a name="l00161"></a>00161 <span class="keyword">struct </span>channel_mapping_type&lt;packed_pixel&lt;P,C,Layout&gt; &gt; {
167<a name="l00162"></a>00162     <span class="keyword">typedef</span> <span class="keyword">typename</span> Layout::channel_mapping_t type;
168<a name="l00163"></a>00163 }; 
169<a name="l00164"></a>00164 
170<a name="l00165"></a>00165 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> P, <span class="keyword">typename</span> C, <span class="keyword">typename</span> Layout&gt;
171<a name="l00166"></a>00166 <span class="keyword">struct </span>is_planar&lt;packed_pixel&lt;P,C,Layout&gt; &gt; : mpl::false_ {}; 
172<a name="l00167"></a>00167 
173<a name="l00168"></a>00168 
174<a name="l00174"></a>00174 
175<a name="l00179"></a>00179 
176<a name="l00180"></a>00180 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> P, <span class="keyword">typename</span> C, <span class="keyword">typename</span> L&gt;  
177<a name="l00181"></a>00181 <span class="keyword">struct </span>iterator_is_mutable&lt;packed_pixel&lt;P,C,L&gt;*&gt; : <span class="keyword">public</span> mpl::bool_&lt;packed_pixel&lt;P,C,L&gt;::is_mutable&gt; {};
178<a name="l00182"></a>00182 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> P, <span class="keyword">typename</span> C, <span class="keyword">typename</span> L&gt;  
179<a name="l00183"></a>00183 <span class="keyword">struct </span>iterator_is_mutable&lt;const packed_pixel&lt;P,C,L&gt;*&gt; : <span class="keyword">public</span> mpl::false_ {};
180<a name="l00184"></a>00184 
181<a name="l00185"></a>00185 
182<a name="l00186"></a>00186 
183<a name="l00187"></a>00187 } }  <span class="comment">// namespace boost::gil</span>
184<a name="l00188"></a>00188 
185<a name="l00189"></a>00189 <span class="keyword">namespace </span>boost {
186<a name="l00190"></a>00190     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> P, <span class="keyword">typename</span> C, <span class="keyword">typename</span> L&gt;
187<a name="l00191"></a>00191     <span class="keyword">struct </span>has_trivial_constructor&lt;gil::packed_pixel&lt;P,C,L&gt; &gt; : <span class="keyword">public</span> has_trivial_constructor&lt;P&gt; {};
188<a name="l00192"></a>00192 }
189<a name="l00193"></a>00193 <span class="preprocessor">#endif</span>
190</pre></div></div>
191<hr size="1"><address style="text-align: right;"><small>Generated on Sat May 2 13:50:14 2009 for Generic Image Library by&nbsp;
192<a href="http://www.doxygen.org/index.html">
193<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
194</body>
195</html>