blob: e541578a0a73eb04f250ac2ecf9230ff3df7f171 [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: bit_aligned_pixel_iterator 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>::<a class="el" href="g_i_l_0401.html">bit_aligned_pixel_iterator</a>
</div>
<div class="contents">
<h1>bit_aligned_pixel_iterator Struct Template Reference<br>
<small>
[<a class="el" href="g_i_l_0201.html">bit_aligned_pixel_iterator</a>,&nbsp;<a class="el" href="g_i_l_0182.html">Models</a>]</small>
</h1><!-- doxytag: class="boost::gil::bit_aligned_pixel_iterator" --><code>#include &lt;<a class="el" href="g_i_l_0010.html">bit_aligned_pixel_iterator.hpp</a>&gt;</code>
<p>
<p>
<a href="g_i_l_0400.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;typename NonAlignedPixelReference&gt;<br>
struct boost::gil::bit_aligned_pixel_iterator&lt; NonAlignedPixelReference &gt;</h3>
An iterator over non-byte-aligned pixels. Models <a class="el" href="g_i_l_0352.html" title="An STL random access traversal iterator over a model of PixelConcept.">PixelIteratorConcept</a>, <a class="el" href="g_i_l_0344.html" title="Concept for all pixel-based GIL constructs, such as pixels, iterators, locators,...">PixelBasedConcept</a>, <a class="el" href="g_i_l_0312.html" title="Concept of a random-access iterator that can be advanced in memory units (bytes or...">MemoryBasedIteratorConcept</a>, <a class="el" href="g_i_l_0290.html" title="Concept for iterators, locators and views that can define a type just like the given...">HasDynamicXStepTypeConcept</a>.
<p>
An iterator over pixels that correspond to non-byte-aligned bit ranges. Examples of such pixels are single bit grayscale <a class="el" href="g_i_l_0599.html" title="Represents a pixel value (a container of channels). Models: HomogeneousColorBaseValueConcept...">pixel</a>, or a 6-bit RGB 222 <a class="el" href="g_i_l_0599.html" title="Represents a pixel value (a container of channels). Models: HomogeneousColorBaseValueConcept...">pixel</a>. <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="af1864eda36a1748894be741b3d64bde"></a><!-- doxytag: member="boost::gil::bit_aligned_pixel_iterator::difference_type" ref="af1864eda36a1748894be741b3d64bde" args="" -->
typedef parent_t::difference_type&nbsp;</td><td class="memItemRight" valign="bottom"><b>difference_type</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6c80bdd4dcae459dd371e3d941b83468"></a><!-- doxytag: member="boost::gil::bit_aligned_pixel_iterator::reference" ref="6c80bdd4dcae459dd371e3d941b83468" args="" -->
typedef parent_t::reference&nbsp;</td><td class="memItemRight" valign="bottom"><b>reference</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="97cc267cffad3d7413aa13c11d9172bb"></a><!-- doxytag: member="boost::gil::bit_aligned_pixel_iterator::bit_aligned_pixel_iterator" ref="97cc267cffad3d7413aa13c11d9172bb" args="(const bit_aligned_pixel_iterator &amp;p)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>bit_aligned_pixel_iterator</b> (const <a class="el" href="g_i_l_0401.html">bit_aligned_pixel_iterator</a> &amp;p)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="31fe24d00d718ba4c265224c2f058eff"></a><!-- doxytag: member="boost::gil::bit_aligned_pixel_iterator::operator=" ref="31fe24d00d718ba4c265224c2f058eff" args="(const bit_aligned_pixel_iterator &amp;p)" -->
<a class="el" href="g_i_l_0401.html">bit_aligned_pixel_iterator</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="g_i_l_0401.html">bit_aligned_pixel_iterator</a> &amp;p)</td></tr>
<tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="04c27063da7f37fafae126a4ea274d8a"></a><!-- doxytag: member="boost::gil::bit_aligned_pixel_iterator::bit_aligned_pixel_iterator" ref="04c27063da7f37fafae126a4ea274d8a" args="(const bit_aligned_pixel_iterator&lt; Ref &gt; &amp;p)" -->
template&lt;typename Ref&gt; </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memTemplItemRight" valign="bottom"><b>bit_aligned_pixel_iterator</b> (const <a class="el" href="g_i_l_0401.html">bit_aligned_pixel_iterator</a>&lt; Ref &gt; &amp;p)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26e6dc7fc834136b6a8955287f65f685"></a><!-- doxytag: member="boost::gil::bit_aligned_pixel_iterator::bit_aligned_pixel_iterator" ref="26e6dc7fc834136b6a8955287f65f685" args="(reference *ref)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>bit_aligned_pixel_iterator</b> (reference *ref)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bd45ffa88b7303eec204718824892cee"></a><!-- doxytag: member="boost::gil::bit_aligned_pixel_iterator::bit_aligned_pixel_iterator" ref="bd45ffa88b7303eec204718824892cee" args="(typename bit_range_t::byte_t *data, int bit_offset=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>bit_aligned_pixel_iterator</b> (typename bit_range_t::byte_t *data, int bit_offset=0)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">reference&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_i_l_0401.html#de1279c4ed222b6efb0867c038765ea1">operator[]</a> (difference_type d) const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ab60bdc7f960c3cc5d9529912de62dfd"></a><!-- doxytag: member="boost::gil::bit_aligned_pixel_iterator::operator-&gt;" ref="ab60bdc7f960c3cc5d9529912de62dfd" args="() const " -->
reference&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator-&gt;</b> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4930ce6d0686634aa4695f47e0e9e64e"></a><!-- doxytag: member="boost::gil::bit_aligned_pixel_iterator::bit_range" ref="4930ce6d0686634aa4695f47e0e9e64e" args="() const " -->
const bit_range_t &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>bit_range</b> () const </td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b9aa87c78490cd8bc74b338c81490730"></a><!-- doxytag: member="boost::gil::bit_aligned_pixel_iterator::bit_range" ref="b9aa87c78490cd8bc74b338c81490730" args="()" -->
bit_range_t &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>bit_range</b> ()</td></tr>
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c3addb4416a1998f5d3e810b0d753a41"></a><!-- doxytag: member="boost::gil::bit_aligned_pixel_iterator::bit_aligned_pixel_iterator" ref="c3addb4416a1998f5d3e810b0d753a41" args="" -->
struct&nbsp;</td><td class="memItemRight" valign="bottom"><b>bit_aligned_pixel_iterator</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c09f73e325921cc50ebcd96bed0f8096"></a><!-- doxytag: member="boost::gil::bit_aligned_pixel_iterator::boost::iterator_core_access" ref="c09f73e325921cc50ebcd96bed0f8096" args="" -->
class&nbsp;</td><td class="memItemRight" valign="bottom"><b>boost::iterator_core_access</b></td></tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="de1279c4ed222b6efb0867c038765ea1"></a><!-- doxytag: member="boost::gil::bit_aligned_pixel_iterator::operator[]" ref="de1279c4ed222b6efb0867c038765ea1" args="(difference_type d) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">reference operator[] </td>
<td>(</td>
<td class="paramtype">difference_type&nbsp;</td>
<td class="paramname"> <em>d</em> </td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
For some reason operator[] provided by iterator_adaptor returns a custom class that is convertible to reference We require our own reference because it is registered in iterator_traits
</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="g_i_l_0010.html">bit_aligned_pixel_iterator.hpp</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sat May 2 13:50:17 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>