PageRenderTime 59ms CodeModel.GetById 19ms app.highlight 29ms RepoModel.GetById 2ms app.codeStats 0ms

/libs/gil/doc/html/g_i_l_0237.html

https://github.com/delalond/boost_1_54_0-bgq
HTML | 391 lines | 372 code | 3 blank | 16 comment | 0 complexity | c0186d7d07d100f972595c2ff0218e01 MD5 | raw file

Large files files are truncated, but you can click here to view the full 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: metafunctions.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>metafunctions.hpp</h1><a href="g_i_l_0238.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_METAFUNCTIONS_HPP</span>
 54<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define GIL_METAFUNCTIONS_HPP</span>
 55<a name="l00015"></a>00015 <span class="preprocessor"></span>
 56<a name="l00025"></a>00025 
 57<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;iterator&gt;</span>
 58<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;boost/mpl/accumulate.hpp&gt;</span>
 59<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;boost/mpl/back.hpp&gt;</span>
 60<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;boost/mpl/bool.hpp&gt;</span>
 61<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;boost/mpl/if.hpp&gt;</span>
 62<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;boost/mpl/pop_back.hpp&gt;</span>
 63<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;boost/mpl/push_back.hpp&gt;</span>
 64<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;boost/mpl/transform.hpp&gt;</span>
 65<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;boost/mpl/vector.hpp&gt;</span>
 66<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;boost/type_traits.hpp&gt;</span>
 67<a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="g_i_l_0094.html" title="GIL configuration file.">gil_config.hpp</a>"</span>
 68<a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="g_i_l_0092.html" title="Concept check classes for GIL concepts.">gil_concept.hpp</a>"</span>
 69<a name="l00038"></a>00038 <span class="preprocessor">#include "<a class="code" href="channel_8hpp.html" title="Channel utilities.">channel.hpp</a>"</span>
 70<a name="l00039"></a>00039 
 71<a name="l00040"></a>00040 <span class="keyword">namespace </span>boost { <span class="keyword">namespace </span>gil {
 72<a name="l00041"></a>00041 
 73<a name="l00042"></a>00042 <span class="comment">// forward declarations</span>
 74<a name="l00043"></a>00043 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L&gt; <span class="keyword">struct </span>pixel;
 75<a name="l00044"></a>00044 <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; <span class="keyword">struct </span>packed_pixel;
 76<a name="l00045"></a>00045 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> C&gt; <span class="keyword">struct </span>planar_pixel_reference;
 77<a name="l00046"></a>00046 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> IC, <span class="keyword">typename</span> C&gt; <span class="keyword">struct </span>planar_pixel_iterator;
 78<a name="l00047"></a>00047 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> I&gt; <span class="keyword">class </span>memory_based_step_iterator;
 79<a name="l00048"></a>00048 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> I&gt; <span class="keyword">class </span>memory_based_2d_locator;
 80<a name="l00049"></a>00049 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> L&gt; <span class="keyword">class </span>image_view;
 81<a name="l00050"></a>00050 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Pixel, <span class="keywordtype">bool</span> IsPlanar, <span class="keyword">typename</span> Alloc&gt; <span class="keyword">class </span>image;
 82<a name="l00051"></a>00051 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">struct </span>channel_type;
 83<a name="l00052"></a>00052 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">struct </span>color_space_type;
 84<a name="l00053"></a>00053 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt; <span class="keyword">struct </span>channel_mapping_type;
 85<a name="l00054"></a>00054 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> It&gt; <span class="keyword">struct </span>is_iterator_adaptor;
 86<a name="l00055"></a>00055 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> It&gt; <span class="keyword">struct </span>iterator_adaptor_get_base;
 87<a name="l00056"></a>00056 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField, <span class="keyword">typename</span> ChannelBitSizes, <span class="keyword">typename</span> Layout, <span class="keywordtype">bool</span> IsMutable&gt; <span class="keyword">struct </span>bit_aligned_pixel_reference;
 88<a name="l00057"></a>00057 
 89<a name="l00064"></a>00064 
 90<a name="l00065"></a>00065 
 91<a name="l00072"></a>00072 
 92<a name="l00076"></a><a class="code" href="g_i_l_0601.html">00076</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> PixelRef&gt;        <span class="keyword">struct </span><a class="code" href="g_i_l_0601.html" title="Determines if a given pixel reference is basic Basic references must use gil::pixel&amp;amp;...">pixel_reference_is_basic</a>                     : <span class="keyword">public</span> mpl::false_ {};
 93<a name="l00077"></a>00077 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T,  <span class="keyword">typename</span> L&gt;  <span class="keyword">struct </span><a class="code" href="g_i_l_0601.html" title="Determines if a given pixel reference is basic Basic references must use gil::pixel&amp;amp;...">pixel_reference_is_basic</a>&lt;      <a class="code" href="g_i_l_0599.html" title="Represents a pixel value (a container of channels). Models: HomogeneousColorBaseValueConcept...">pixel</a>&lt;T,L&gt;&amp;&gt;  : <span class="keyword">public</span> mpl::true_ {};
 94<a name="l00078"></a>00078 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T,  <span class="keyword">typename</span> L&gt;  <span class="keyword">struct </span>pixel_reference_is_basic&lt;const pixel&lt;T,L&gt;&amp;&gt;  : <span class="keyword">public</span> mpl::true_ {};
 95<a name="l00079"></a>00079 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TR, <span class="keyword">typename</span> Cs&gt; <span class="keyword">struct </span>pixel_reference_is_basic&lt;planar_pixel_reference&lt;TR,Cs&gt; &gt; : <span class="keyword">public</span> mpl::true_ {};
 96<a name="l00080"></a>00080 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TR, <span class="keyword">typename</span> Cs&gt; <span class="keyword">struct </span>pixel_reference_is_basic&lt;const planar_pixel_reference&lt;TR,Cs&gt; &gt; : <span class="keyword">public</span> mpl::true_ {};
 97<a name="l00081"></a>00081 
 98<a name="l00082"></a>00082 
 99<a name="l00086"></a>00086 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Iterator&gt;
100<a name="l00087"></a><a class="code" href="g_i_l_0549.html">00087</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0549.html" title="Determines if a given pixel iterator is basic Basic iterators must use gil::pixel...">iterator_is_basic</a> : <span class="keyword">public</span> mpl::false_ {};
101<a name="l00088"></a>00088 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L&gt;  <span class="comment">// mutable   interleaved</span>
102<a name="l00089"></a>00089 <span class="keyword">struct </span><a class="code" href="g_i_l_0549.html" title="Determines if a given pixel iterator is basic Basic iterators must use gil::pixel...">iterator_is_basic</a>&lt;      <a class="code" href="g_i_l_0599.html" title="Represents a pixel value (a container of channels). Models: HomogeneousColorBaseValueConcept...">pixel</a>&lt;T,L&gt;*      &gt; : <span class="keyword">public</span> mpl::true_ {};
103<a name="l00090"></a>00090 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L&gt;  <span class="comment">// immutable interleaved</span>
104<a name="l00091"></a>00091 <span class="keyword">struct </span>iterator_is_basic&lt;const pixel&lt;T,L&gt;*      &gt; : <span class="keyword">public</span> mpl::true_ {};
105<a name="l00092"></a>00092 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> Cs&gt;  <span class="comment">// mutable   planar</span>
106<a name="l00093"></a>00093 <span class="keyword">struct </span>iterator_is_basic&lt;planar_pixel_iterator&lt;      T*,Cs&gt; &gt; : <span class="keyword">public</span> mpl::true_ {};
107<a name="l00094"></a>00094 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> Cs&gt;    <span class="comment">// immutable planar</span>
108<a name="l00095"></a>00095 <span class="keyword">struct </span>iterator_is_basic&lt;planar_pixel_iterator&lt;const T*,Cs&gt; &gt; : <span class="keyword">public</span> mpl::true_ {};
109<a name="l00096"></a>00096 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L&gt;  <span class="comment">// mutable   interleaved step</span>
110<a name="l00097"></a>00097 <span class="keyword">struct </span>iterator_is_basic&lt;memory_based_step_iterator&lt;      pixel&lt;T,L&gt;*&gt; &gt; : <span class="keyword">public</span> mpl::true_ {};
111<a name="l00098"></a>00098 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L&gt;  <span class="comment">// immutable interleaved step</span>
112<a name="l00099"></a>00099 <span class="keyword">struct </span>iterator_is_basic&lt;memory_based_step_iterator&lt;const pixel&lt;T,L&gt;*&gt; &gt; : <span class="keyword">public</span> mpl::true_ {};
113<a name="l00100"></a>00100 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> Cs&gt;  <span class="comment">// mutable   planar step</span>
114<a name="l00101"></a>00101 <span class="keyword">struct </span>iterator_is_basic&lt;memory_based_step_iterator&lt;planar_pixel_iterator&lt;      T*,Cs&gt; &gt; &gt; : <span class="keyword">public</span> mpl::true_ {};
115<a name="l00102"></a>00102 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> Cs&gt;    <span class="comment">// immutable planar step</span>
116<a name="l00103"></a>00103 <span class="keyword">struct </span>iterator_is_basic&lt;memory_based_step_iterator&lt;planar_pixel_iterator&lt;const T*,Cs&gt; &gt; &gt; : <span class="keyword">public</span> mpl::true_ {};
117<a name="l00104"></a>00104 
118<a name="l00105"></a>00105 
119<a name="l00108"></a><a class="code" href="g_i_l_0568.html">00108</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Loc&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0568.html" title="Determines if a given locator is basic. A basic locator is memory-based and has basic...">locator_is_basic</a> : <span class="keyword">public</span> mpl::false_ {};
120<a name="l00109"></a>00109 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Iterator&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0568.html" title="Determines if a given locator is basic. A basic locator is memory-based and has basic...">locator_is_basic</a>&lt;<a class="code" href="g_i_l_0044.html" title="Memory-based pixel locator. Models: PixelLocatorConcept,HasDynamicXStepTypeConcept...">memory_based_2d_locator</a>&lt;<a class="code" href="g_i_l_0046.html" title="Iterator with dynamically specified step in memory units (bytes or bits). Models...">memory_based_step_iterator</a>&lt;Iterator&gt; &gt; &gt; : <span class="keyword">public</span> <a class="code" href="g_i_l_0549.html" title="Determines if a given pixel iterator is basic Basic iterators must use gil::pixel...">iterator_is_basic</a>&lt;Iterator&gt; {};
121<a name="l00110"></a>00110 
122<a name="l00113"></a><a class="code" href="g_i_l_0628.html">00113</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> View&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0628.html" title="Basic views must be over basic locators.">view_is_basic</a> : <span class="keyword">public</span> mpl::false_ {};
123<a name="l00114"></a>00114 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Loc&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0628.html" title="Basic views must be over basic locators.">view_is_basic</a>&lt;<a class="code" href="g_i_l_0040.html" title="A lightweight object that interprets memory as a 2D array of pixels. Models ImageViewConcept...">image_view</a>&lt;Loc&gt; &gt; : <span class="keyword">public</span> <a class="code" href="g_i_l_0568.html" title="Determines if a given locator is basic. A basic locator is memory-based and has basic...">locator_is_basic</a>&lt;Loc&gt; {};
124<a name="l00115"></a>00115 
125<a name="l00118"></a><a class="code" href="g_i_l_0538.html">00118</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Img&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0538.html" title="Basic images must use basic views and std::allocator of char.">image_is_basic</a> : <span class="keyword">public</span> mpl::false_ {};
126<a name="l00119"></a>00119 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Pixel, <span class="keywordtype">bool</span> IsPlanar, <span class="keyword">typename</span> Alloc&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0538.html" title="Basic images must use basic views and std::allocator of char.">image_is_basic</a>&lt;<a class="code" href="g_i_l_0038.html" title="container interface over image view. Models ImageConcept, PixelBasedConcept">image</a>&lt;Pixel,IsPlanar,Alloc&gt; &gt; : <span class="keyword">public</span> mpl::true_ {};
127<a name="l00120"></a>00120 
128<a name="l00121"></a>00121 
129<a name="l00125"></a>00125 
130<a name="l00126"></a>00126 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> I&gt; <span class="keyword">struct </span>iterator_is_step;
131<a name="l00127"></a>00127 <span class="keyword">namespace </span>detail {
132<a name="l00128"></a>00128     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> It, <span class="keywordtype">bool</span> IsBase, <span class="keywordtype">bool</span> EqualsStepType&gt; <span class="keyword">struct </span>iterator_is_step_impl;
133<a name="l00129"></a>00129     <span class="comment">// iterator that has the same type as its dynamic_x_step_type must be a step iterator</span>
134<a name="l00130"></a>00130     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> It, <span class="keywordtype">bool</span> IsBase&gt; <span class="keyword">struct </span>iterator_is_step_impl&lt;It,IsBase,true&gt; : <span class="keyword">public</span> mpl::true_{};
135<a name="l00131"></a>00131 
136<a name="l00132"></a>00132     <span class="comment">// base iterator can never be a step iterator</span>
137<a name="l00133"></a>00133     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> It&gt; <span class="keyword">struct </span>iterator_is_step_impl&lt;It,true,false&gt; : <span class="keyword">public</span> mpl::false_{};
138<a name="l00134"></a>00134 
139<a name="l00135"></a>00135     <span class="comment">// for an iterator adaptor, see if its base is step</span>
140<a name="l00136"></a>00136     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> It&gt; <span class="keyword">struct </span>iterator_is_step_impl&lt;It,false,false&gt; 
141<a name="l00137"></a>00137         : <span class="keyword">public</span> iterator_is_step&lt;typename iterator_adaptor_get_base&lt;It&gt;::type&gt;{};
142<a name="l00138"></a>00138 }
143<a name="l00139"></a>00139 
144<a name="l00142"></a><a class="code" href="g_i_l_0551.html">00142</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> I&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0551.html" title="Determines if the given iterator has a step that could be set dynamically.">iterator_is_step</a> 
145<a name="l00143"></a>00143     : <span class="keyword">public</span> detail::iterator_is_step_impl&lt;I, 
146<a name="l00144"></a>00144         !is_iterator_adaptor&lt;I&gt;::type::value,
147<a name="l00145"></a>00145         is_same&lt;I,typename dynamic_x_step_type&lt;I&gt;::type&gt;::value &gt;{};
148<a name="l00146"></a>00146 
149<a name="l00149"></a><a class="code" href="g_i_l_0570.html">00149</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> L&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0570.html" title="Determines if the given locator has a horizontal step that could be set dynamically...">locator_is_step_in_x</a> : <span class="keyword">public</span> <a class="code" href="g_i_l_0551.html" title="Determines if the given iterator has a step that could be set dynamically.">iterator_is_step</a>&lt;typename L::x_iterator&gt; {}; 
150<a name="l00150"></a>00150 
151<a name="l00153"></a><a class="code" href="g_i_l_0571.html">00153</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> L&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0571.html" title="Determines if the given locator has a vertical step that could be set dynamically...">locator_is_step_in_y</a> : <span class="keyword">public</span> <a class="code" href="g_i_l_0551.html" title="Determines if the given iterator has a step that could be set dynamically.">iterator_is_step</a>&lt;typename L::y_iterator&gt; {}; 
152<a name="l00154"></a>00154 
153<a name="l00157"></a><a class="code" href="g_i_l_0630.html">00157</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0630.html" title="Determines if the given view has a horizontal step that could be set dynamically...">view_is_step_in_x</a> : <span class="keyword">public</span> <a class="code" href="g_i_l_0570.html" title="Determines if the given locator has a horizontal step that could be set dynamically...">locator_is_step_in_x</a>&lt;typename V::xy_locator&gt; {}; 
154<a name="l00158"></a>00158 
155<a name="l00161"></a><a class="code" href="g_i_l_0631.html">00161</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0631.html" title="Determines if the given view has a vertical step that could be set dynamically.">view_is_step_in_y</a> : <span class="keyword">public</span> <a class="code" href="g_i_l_0571.html" title="Determines if the given locator has a vertical step that could be set dynamically...">locator_is_step_in_y</a>&lt;typename V::xy_locator&gt; {}; 
156<a name="l00162"></a>00162 
157<a name="l00165"></a>00165 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> PixelReference&gt;
158<a name="l00166"></a><a class="code" href="g_i_l_0603.html">00166</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0603.html" title="Determines whether the given pixel reference is a proxy class or a native C++ reference...">pixel_reference_is_proxy</a>
159<a name="l00167"></a>00167     : <span class="keyword">public</span> mpl::not_&lt;is_same&lt;typename remove_const_and_reference&lt;PixelReference&gt;::type,
160<a name="l00168"></a>00168                                typename remove_const_and_reference&lt;PixelReference&gt;::type::value_type&gt; &gt; {};
161<a name="l00169"></a>00169 
162<a name="l00172"></a>00172 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Pixel&gt;
163<a name="l00173"></a><a class="code" href="g_i_l_0600.html">00173</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0600.html" title="Given a model of a pixel, determines whether the model represents a pixel reference...">pixel_is_reference</a> : <span class="keyword">public</span> mpl::or_&lt;is_reference&lt;Pixel&gt;, pixel_reference_is_proxy&lt;Pixel&gt; &gt; {};
164<a name="l00174"></a>00174 
165<a name="l00178"></a>00178 
166<a name="l00183"></a><a class="code" href="g_i_l_0602.html">00183</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> R&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0602.html" title="Determines if the given pixel reference is mutable (i.e. its channels can be changed)...">pixel_reference_is_mutable</a> : <span class="keyword">public</span> mpl::bool_&lt;remove_reference&lt;R&gt;::type::is_mutable&gt; {};
167<a name="l00184"></a>00184 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> R&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0602.html" title="Determines if the given pixel reference is mutable (i.e. its channels can be changed)...">pixel_reference_is_mutable</a>&lt;const R&amp;&gt;
168<a name="l00185"></a>00185     : <span class="keyword">public</span> mpl::and_&lt;pixel_reference_is_proxy&lt;R&gt;, <a class="code" href="g_i_l_0602.html" title="Determines if the given pixel reference is mutable (i.e. its channels can be changed)...">pixel_reference_is_mutable&lt;R&gt;</a> &gt; {};
169<a name="l00186"></a>00186 
170<a name="l00189"></a><a class="code" href="g_i_l_0569.html">00189</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> L&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0569.html" title="Determines if the given locator is mutable (i.e. its pixels can be changed).">locator_is_mutable</a> : <span class="keyword">public</span> <a class="code" href="g_i_l_0550.html" title="Metafunction predicate returning whether the given iterator allows for changing its...">iterator_is_mutable</a>&lt;typename L::x_iterator&gt; {};
171<a name="l00192"></a><a class="code" href="g_i_l_0629.html">00192</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> V&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0629.html" title="Determines if the given view is mutable (i.e. its pixels can be changed).">view_is_mutable</a> : <span class="keyword">public</span> <a class="code" href="g_i_l_0550.html" title="Metafunction predicate returning whether the given iterator allows for changing its...">iterator_is_mutable</a>&lt;typename V::x_iterator&gt; {};
172<a name="l00193"></a>00193 
173<a name="l00194"></a>00194 
174<a name="l00201"></a>00201 
175<a name="l00205"></a>00205 
176<a name="l00209"></a>00209 
177<a name="l00213"></a>00213 
178<a name="l00216"></a><a class="code" href="g_i_l_0604.html">00216</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L, <span class="keywordtype">bool</span> IsPlanar=false, <span class="keywordtype">bool</span> IsMutable=true&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0604.html" title="Returns the type of a homogeneous pixel reference given the channel type, layout...">pixel_reference_type</a>{};
179<a name="l00217"></a>00217 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0604.html" title="Returns the type of a homogeneous pixel reference given the channel type, layout...">pixel_reference_type</a>&lt;T,L,false,true &gt; { <span class="keyword">typedef</span> <a class="code" href="g_i_l_0599.html" title="Represents a pixel value (a container of channels). Models: HomogeneousColorBaseValueConcept...">pixel&lt;T,L&gt;</a>&amp; type; };
180<a name="l00218"></a>00218 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L&gt; <span class="keyword">struct </span>pixel_reference_type&lt;T,L,false,false&gt; { <span class="keyword">typedef</span> <span class="keyword">const</span> pixel&lt;T,L&gt;&amp; type; };
181<a name="l00219"></a>00219 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L&gt; <span class="keyword">struct </span>pixel_reference_type&lt;T,L,true,true&gt; { <span class="keyword">typedef</span> <span class="keyword">const</span> planar_pixel_reference&lt;typename channel_traits&lt;T&gt;::reference,<span class="keyword">typename</span> color_space_type&lt;L&gt;::type&gt; type; };       <span class="comment">// TODO: Assert M=identity</span>
182<a name="l00220"></a>00220 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L&gt; <span class="keyword">struct </span>pixel_reference_type&lt;T,L,true,false&gt; { <span class="keyword">typedef</span> <span class="keyword">const</span> planar_pixel_reference&lt;typename channel_traits&lt;T&gt;::const_reference,<span class="keyword">typename</span> color_space_type&lt;L&gt;::type&gt; type; };<span class="comment">// TODO: Assert M=identity</span>
183<a name="l00221"></a>00221 
184<a name="l00224"></a><a class="code" href="g_i_l_0553.html">00224</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Pixel, <span class="keywordtype">bool</span> IsPlanar=false, <span class="keywordtype">bool</span> IsStep=false, <span class="keywordtype">bool</span> IsMutable=true&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0553.html" title="Returns the type of a pixel iterator given the pixel type, whether it operates on...">iterator_type_from_pixel</a>{};
185<a name="l00225"></a>00225 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Pixel&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0553.html" title="Returns the type of a pixel iterator given the pixel type, whether it operates on...">iterator_type_from_pixel</a>&lt;Pixel,false,false,true &gt; { <span class="keyword">typedef</span> Pixel* type; };
186<a name="l00226"></a>00226 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Pixel&gt; <span class="keyword">struct </span>iterator_type_from_pixel&lt;Pixel,false,false,false&gt; { <span class="keyword">typedef</span> <span class="keyword">const</span> Pixel* type; };
187<a name="l00227"></a>00227 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Pixel&gt; <span class="keyword">struct </span>iterator_type_from_pixel&lt;Pixel,true,false,true&gt; { 
188<a name="l00228"></a>00228     <span class="keyword">typedef</span> planar_pixel_iterator&lt;typename channel_traits&lt;typename channel_type&lt;Pixel&gt;::type&gt;::pointer,<span class="keyword">typename</span> color_space_type&lt;Pixel&gt;::type&gt; type; 
189<a name="l00229"></a>00229 };
190<a name="l00230"></a>00230 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Pixel&gt; <span class="keyword">struct </span>iterator_type_from_pixel&lt;Pixel,true,false,false&gt; { 
191<a name="l00231"></a>00231     <span class="keyword">typedef</span> planar_pixel_iterator&lt;typename channel_traits&lt;typename channel_type&lt;Pixel&gt;::type&gt;::const_pointer,<span class="keyword">typename</span> color_space_type&lt;Pixel&gt;::type&gt; type; 
192<a name="l00232"></a>00232 };
193<a name="l00233"></a>00233 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> Pixel, <span class="keywordtype">bool</span> IsPlanar, <span class="keywordtype">bool</span> IsMutable&gt; <span class="keyword">struct </span>iterator_type_from_pixel&lt;Pixel,IsPlanar,true,IsMutable&gt; { 
194<a name="l00234"></a>00234     <span class="keyword">typedef</span> memory_based_step_iterator&lt;typename iterator_type_from_pixel&lt;Pixel,IsPlanar,false,IsMutable&gt;::type&gt; type; 
195<a name="l00235"></a>00235 };
196<a name="l00236"></a>00236 
197<a name="l00239"></a><a class="code" href="g_i_l_0552.html">00239</a> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L, <span class="keywordtype">bool</span> IsPlanar=false, <span class="keywordtype">bool</span> IsStep=false, <span class="keywordtype">bool</span> IsMutable=true&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0552.html" title="Returns the type of a homogeneous iterator given the channel type, layout, whether...">iterator_type</a>{};
198<a name="l00240"></a>00240 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L&gt; <span class="keyword">struct </span><a class="code" href="g_i_l_0552.html" title="Returns the type of a homogeneous iterator given the channel type, layout, whether...">iterator_type</a>&lt;T,L,false,false,true &gt; { <span class="keyword">typedef</span> <a class="code" href="g_i_l_0599.html" title="Represents a pixel value (a container of channels). Models: HomogeneousColorBaseValueConcept...">pixel&lt;T,L&gt;</a>* type; };
199<a name="l00241"></a>00241 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L&gt; <span class="keyword">struct </span>iterator_type&lt;T,L,false,false,false&gt; { <span class="keyword">typedef</span> <span class="keyword">const</span> pixel&lt;T,L&gt;* type; };
200<a name="l00242"></a>00242 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L&gt; <span class="keyword">struct </span>iterator_type&lt;T,L,true,false,true&gt; { <span class="keyword">typedef</span> planar_pixel_iterator&lt;T*,typename L::color_space_t&gt; type; };               <span class="comment">// TODO: Assert M=identity</span>
201<a name="l00243"></a>00243 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L&gt; <span class="keyword">struct </span>iterator_type&lt;T,L,true,false,false&gt; { <span class="keyword">typedef</span> planar_pixel_iterator&lt;const T*,typename L::color_space_t&gt; type; };        <span class="comment">// TODO: Assert M=identity</span>
202<a name="l00244"></a>00244 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T, <span class="keyword">typename</span> L, <span class="keywordtype">bool</span> IsPlanar, <span class="keywordtype">bool</span> IsMutable&gt; <span class="keyword">struct </span>iterator_type&lt;T,L,IsPlanar,true,IsMutable&gt; { 
203<a name="l00245"></a>00245     <span class="keyword">typedef</span> memory_based_step_iterator&lt;typename iterator_type&lt;T,L,IsPlanar,false,IsMutable&gt;::type&gt; type; 
204<a name="l00246"></a>00246 };
205<a name="l00247"></a>00247 
206<a name="l00250"></a>00250 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> XIterator&gt; 
207<a name="l00251"></a><a class="code" href="g_i_l_0627.html">00251</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0627.html" title="Given a pixel iterator defining access to pixels along a row, returns the types of...">type_from_x_iterator</a> {
208<a name="l00252"></a>00252     <span class="keyword">typedef</span> <a class="code" href="g_i_l_0046.html" title="Iterator with dynamically specified step in memory units (bytes or bits). Models...">memory_based_step_iterator&lt;XIterator&gt;</a>    <a class="code" href="g_i_l_0046.html" title="Iterator with dynamically specified step in memory units (bytes or bits). Models...">step_iterator_t</a>;
209<a name="l00253"></a>00253     <span class="keyword">typedef</span> <a class="code" href="g_i_l_0044.html" title="Memory-based pixel locator. Models: PixelLocatorConcept,HasDynamicXStepTypeConcept...">memory_based_2d_locator&lt;step_iterator_t&gt;</a> <a class="code" href="g_i_l_0044.html" title="Memory-based pixel locator. Models: PixelLocatorConcept,HasDynamicXStepTypeConcept...">xy_locator_t</a>;
210<a name="l00254"></a>00254     <span class="keyword">typedef</span> <a class="code" href="g_i_l_0040.html" title="A lightweight object that interprets memory as a 2D array of pixels. Models ImageViewConcept...">image_view&lt;xy_locator_t&gt;</a>                     <a class="code" href="g_i_l_0040.html" title="A lightweight object that interprets memory as a 2D array of pixels. Models ImageViewConcept...">view_t</a>;
211<a name="l00255"></a>00255 };
212<a name="l00256"></a>00256 
213<a name="l00257"></a>00257 <span class="keyword">namespace </span>detail {
214<a name="l00258"></a>00258     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField, <span class="keyword">typename</span> FirstBit, <span class="keyword">typename</span> NumBits&gt;
215<a name="l00259"></a>00259     <span class="keyword">struct </span>packed_channel_reference_type {
216<a name="l00260"></a>00260         <span class="keyword">typedef</span> <span class="keyword">const</span> packed_channel_reference&lt;BitField,FirstBit::value,NumBits::value,true&gt; type;
217<a name="l00261"></a>00261     };
218<a name="l00262"></a>00262 
219<a name="l00263"></a>00263     <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField, <span class="keyword">typename</span> ChannelBitSizesVector&gt;
220<a name="l00264"></a>00264     <span class="keyword">class </span>packed_channel_references_vector_type {
221<a name="l00265"></a>00265         <span class="comment">// If ChannelBitSizesVector is mpl::vector&lt;int,7,7,2&gt;</span>
222<a name="l00266"></a>00266         <span class="comment">// Then first_bits_vector will be mpl::vector&lt;int,0,7,14,16&gt;</span>
223<a name="l00267"></a>00267         <span class="keyword">typedef</span> <span class="keyword">typename</span> mpl::accumulate&lt;ChannelBitSizesVector, mpl::vector1&lt;mpl::int_&lt;0&gt; &gt;, 
224<a name="l00268"></a>00268             mpl::push_back&lt;mpl::_1, mpl::plus&lt;mpl::back&lt;mpl::_1&gt;, mpl::_2&gt; &gt; &gt;::type first_bits_vector;
225<a name="l00269"></a>00269     <span class="keyword">public</span>:
226<a name="l00270"></a>00270         <span class="keyword">typedef</span> <span class="keyword">typename</span> mpl::transform&lt;typename mpl::pop_back&lt;first_bits_vector&gt;::type, ChannelBitSizesVector,
227<a name="l00271"></a>00271                packed_channel_reference_type&lt;BitField, mpl::_1,mpl::_2&gt; &gt;::type type;
228<a name="l00272"></a>00272     };
229<a name="l00273"></a>00273 
230<a name="l00274"></a>00274 }
231<a name="l00275"></a>00275 
232<a name="l00284"></a>00284 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField, <span class="keyword">typename</span> ChannelBitSizeVector, <span class="keyword">typename</span> Layout&gt;
233<a name="l00285"></a><a class="code" href="g_i_l_0597.html">00285</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0597.html" title="Returns the type of a packed pixel given its bitfield type, the bit size of its channels...">packed_pixel_type</a> {
234<a name="l00286"></a>00286     <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&lt;BitField, typename detail::packed_channel_references_vector_type&lt;BitField,ChannelBitSizeVector&gt;::type</a>, Layout&gt; <a class="code" href="g_i_l_0595.html" title="Heterogeneous pixel value whose channel references can be constructed from the pixel...">type</a>;
235<a name="l00287"></a>00287 };
236<a name="l00288"></a>00288 
237<a name="l00297"></a>00297 
238<a name="l00300"></a>00300 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField, <span class="keyword">typename</span> ChannelBitSizeVector, <span class="keyword">typename</span> Layout, <span class="keyword">typename</span> Alloc=std::allocator&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>&gt; &gt;
239<a name="l00301"></a><a class="code" href="g_i_l_0593.html">00301</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0593.html" title="Returns the type of an interleaved packed image: an image whose channels may not...">packed_image_type</a> {
240<a name="l00302"></a>00302     <span class="keyword">typedef</span> <a class="code" href="g_i_l_0038.html" title="container interface over image view. Models ImageConcept, PixelBasedConcept">image&lt;typename packed_pixel_type&lt;BitField,ChannelBitSizeVector,Layout&gt;::type</a>,<span class="keyword">false</span>,Alloc&gt; <a class="code" href="g_i_l_0038.html" title="container interface over image view. Models ImageConcept, PixelBasedConcept">type</a>;
241<a name="l00303"></a>00303 };
242<a name="l00304"></a>00304 
243<a name="l00307"></a>00307 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField, <span class="keywordtype">unsigned</span> Size1, <span class="keyword">typename</span> Layout, <span class="keyword">typename</span> Alloc=std::allocator&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>&gt; &gt;
244<a name="l00308"></a><a class="code" href="g_i_l_0583.html">00308</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0583.html" title="Returns the type of a single-channel image given its bitfield type, the bit size...">packed_image1_type</a> : <span class="keyword">public</span> <a class="code" href="g_i_l_0593.html" title="Returns the type of an interleaved packed image: an image whose channels may not...">packed_image_type</a>&lt;BitField, mpl::vector1_c&lt;unsigned, Size1&gt;, Layout, Alloc&gt; {};
245<a name="l00309"></a>00309 
246<a name="l00312"></a>00312 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField, <span class="keywordtype">unsigned</span> Size1, <span class="keywordtype">unsigned</span> Size2, <span class="keyword">typename</span> Layout, <span class="keyword">typename</span> Alloc=std::allocator&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>&gt; &gt;
247<a name="l00313"></a><a class="code" href="g_i_l_0585.html">00313</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0585.html" title="Returns the type of a two channel image given its bitfield type, the bit size of...">packed_image2_type</a> : <span class="keyword">public</span> <a class="code" href="g_i_l_0593.html" title="Returns the type of an interleaved packed image: an image whose channels may not...">packed_image_type</a>&lt;BitField, mpl::vector2_c&lt;unsigned, Size1, Size2&gt;, Layout, Alloc&gt; {};
248<a name="l00314"></a>00314 
249<a name="l00317"></a>00317 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField, <span class="keywordtype">unsigned</span> Size1, <span class="keywordtype">unsigned</span> Size2, <span class="keywordtype">unsigned</span> Size3, <span class="keyword">typename</span> Layout, <span class="keyword">typename</span> Alloc=std::allocator&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>&gt; &gt;
250<a name="l00318"></a><a class="code" href="g_i_l_0587.html">00318</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0587.html" title="Returns the type of a three channel image given its bitfield type, the bit size of...">packed_image3_type</a> : <span class="keyword">public</span> <a class="code" href="g_i_l_0593.html" title="Returns the type of an interleaved packed image: an image whose channels may not...">packed_image_type</a>&lt;BitField, mpl::vector3_c&lt;unsigned, Size1, Size2, Size3&gt;, Layout, Alloc&gt; {};
251<a name="l00319"></a>00319 
252<a name="l00322"></a>00322 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField, <span class="keywordtype">unsigned</span> Size1, <span class="keywordtype">unsigned</span> Size2, <span class="keywordtype">unsigned</span> Size3, <span class="keywordtype">unsigned</span> Size4, <span class="keyword">typename</span> Layout, <span class="keyword">typename</span> Alloc=std::allocator&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>&gt; &gt;
253<a name="l00323"></a><a class="code" href="g_i_l_0589.html">00323</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0589.html" title="Returns the type of a four channel image given its bitfield type, the bit size of...">packed_image4_type</a> : <span class="keyword">public</span> <a class="code" href="g_i_l_0593.html" title="Returns the type of an interleaved packed image: an image whose channels may not...">packed_image_type</a>&lt;BitField, mpl::vector4_c&lt;unsigned, Size1, Size2, Size3, Size4&gt;, Layout, Alloc&gt; {};
254<a name="l00324"></a>00324 
255<a name="l00327"></a>00327 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> BitField, <span class="keywordtype">unsigned</span> Size1, <span class="keywordtype">unsigned</span> Size2, <span class="keywordtype">unsigned</span> Size3, <span class="keywordtype">unsigned</span> Size4, <span class="keywordtype">unsigned</span> Size5, <span class="keyword">typename</span> Layout, <span class="keyword">typename</span> Alloc=std::allocator&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>&gt; &gt;
256<a name="l00328"></a><a class="code" href="g_i_l_0591.html">00328</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0591.html" title="Returns the type of a five channel image given its bitfield type, the bit size of...">packed_image5_type</a> : <span class="keyword">public</span> <a class="code" href="g_i_l_0593.html" title="Returns the type of an interleaved packed image: an image whose channels may not...">packed_image_type</a>&lt;BitField, mpl::vector5_c&lt;unsigned, Size1, Size2, Size3, Size4, Size5&gt;, Layout, Alloc&gt; {};
257<a name="l00329"></a>00329 
258<a name="l00330"></a>00330 
259<a name="l00336"></a>00336 
260<a name="l00337"></a>00337 <span class="keyword">template</span> &lt;<span class="keyword">typename</span> ChannelBitSizeVector, <span class="keyword">typename</span> Layout, <span class="keyword">typename</span> Alloc=std::allocator&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>&gt; &gt;
261<a name="l00338"></a><a class="code" href="g_i_l_0399.html">00338</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0399.html" title="Returns the type of a packed image whose pixels may not be byte aligned. For example...">bit_aligned_image_type</a> {
262<a name="l00339"></a>00339 <span class="keyword">private</span>:
263<a name="l00340"></a>00340     BOOST_STATIC_CONSTANT(<span class="keywordtype">int</span>, bit_size = (mpl::accumulate&lt;ChannelBitSizeVector, mpl::int_&lt;0&gt;, mpl::plus&lt;mpl::_1, mpl::_2&gt; &gt;::type::value));
264<a name="l00341"></a>00341     <span class="keyword">typedef</span> <span class="keyword">typename</span> detail::min_fast_uint&lt;bit_size+7&gt;::type                        bitfield_t;  
265<a name="l00342"></a>00342     <span class="keyword">typedef</span> <span class="keyword">const</span> <a class="code" href="g_i_l_0403.html" title="Heterogeneous pixel reference corresponding to non-byte-aligned bit range. Models...">bit_aligned_pixel_reference&lt;bitfield_t, ChannelBitSizeVector, Layout, true&gt;</a> <a class="code" href="g_i_l_0403.html" title="Heterogeneous pixel reference corresponding to non-byte-aligned bit range. Models...">bit_alignedref_t</a>;
266<a name="l00343"></a>00343 <span class="keyword">public</span>:
267<a name="l00344"></a>00344     <span class="keyword">typedef</span> <a class="code" href="g_i_l_0038.html" title="container interface over image view. Models ImageConcept, PixelBasedConcept">image&lt;bit_alignedref_t,false,Alloc&gt;</a> <a class="code" href="g_i_l_0038.html" title="container interface over image view. Models ImageConcept, PixelBasedConcept">type</a>;
268<a name="l00345"></a>00345 };
269<a name="l00346"></a>00346 
270<a name="l00349"></a>00349 <span class="keyword">template</span> &lt;<span class="keywordtype">unsigned</span> Size1, <span class="keyword">typename</span> Layout, <span class="keyword">typename</span> Alloc=std::allocator&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>&gt; &gt;
271<a name="l00350"></a><a class="code" href="g_i_l_0389.html">00350</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0389.html" title="Returns the type of a single-channel bit-aligned image given the bit size of its...">bit_aligned_image1_type</a> : <span class="keyword">public</span> <a class="code" href="g_i_l_0399.html" title="Returns the type of a packed image whose pixels may not be byte aligned. For example...">bit_aligned_image_type</a>&lt;mpl::vector1_c&lt;unsigned, Size1&gt;, Layout, Alloc&gt; {};
272<a name="l00351"></a>00351 
273<a name="l00354"></a>00354 <span class="keyword">template</span> &lt;<span class="keywordtype">unsigned</span> Size1, <span class="keywordtype">unsigned</span> Size2, <span class="keyword">typename</span> Layout, <span class="keyword">typename</span> Alloc=std::allocator&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>&gt; &gt;
274<a name="l00355"></a><a class="code" href="g_i_l_0391.html">00355</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0391.html" title="Returns the type of a two channel bit-aligned image given the bit size of its channels...">bit_aligned_image2_type</a> : <span class="keyword">public</span> <a class="code" href="g_i_l_0399.html" title="Returns the type of a packed image whose pixels may not be byte aligned. For example...">bit_aligned_image_type</a>&lt;mpl::vector2_c&lt;unsigned, Size1, Size2&gt;, Layout, Alloc&gt; {};
275<a name="l00356"></a>00356 
276<a name="l00359"></a>00359 <span class="keyword">template</span> &lt;<span class="keywordtype">unsigned</span> Size1, <span class="keywordtype">unsigned</span> Size2, <span class="keywordtype">unsigned</span> Size3, <span class="keyword">typename</span> Layout, <span class="keyword">typename</span> Alloc=std::allocator&lt;<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>&gt; &gt;
277<a name="l00360"></a><a class="code" href="g_i_l_0393.html">00360</a> <span class="keyword">struct </span><a class="code" href="g_i_l_0393.html" title="Returns the type of a three channel bit-aligned image given the bit size of its channels...">bit_aligned_image3_type</a> : <span class="keyword">public</span> <a class="codeā€¦

Large files files are truncated, but you can click here to view the full file