/Src/Dependencies/Boost/libs/gil/doc/html/g_i_l_0046.html
http://hadesmem.googlecode.com/ · HTML · 133 lines · 100 code · 17 blank · 16 comment · 0 complexity · 4e5b38fa3450e108435883cc68a65201 MD5 · raw file
- <!-- 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: memory_based_step_iterator Class 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_0046.html">memory_based_step_iterator</a>
- </div>
- <div class="contents">
- <h1>memory_based_step_iterator Class Template Reference<br>
- <small>
- [<a class="el" href="g_i_l_0199.html">step iterators</a>, <a class="el" href="g_i_l_0182.html">Models</a>]</small>
- </h1><!-- doxytag: class="boost::gil::memory_based_step_iterator" --><!-- doxytag: inherits="boost::gil::detail::step_iterator_adaptor" --><code>#include <<a class="el" href="g_i_l_0259.html">step_iterator.hpp</a>></code>
- <p>
- <div class="dynheader">
- Inheritance diagram for memory_based_step_iterator:</div>
- <div class="dynsection">
- <p><center><img src="g_i_l_0007.png" usemap="#memory_based_step_iterator_map" border="0" alt=""></center>
- <map name="memory_based_step_iterator_map">
- <area href="g_i_l_0036.html" alt="step_iterator_adaptor" shape="rect" coords="0,0,707,24">
- </map>
- </div>
- <p>
- <a href="g_i_l_0045.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
- <h3>template<typename Iterator><br>
- class boost::gil::memory_based_step_iterator< Iterator ></h3>
- Iterator with dynamically specified step in memory units (bytes or bits). Models <a class="el" href="g_i_l_0380.html" title="Step iterator concept.">StepIteratorConcept</a>, <a class="el" href="g_i_l_0310.html" title="Iterator adaptor is a forward iterator adapting another forward iterator.">IteratorAdaptorConcept</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_0352.html" title="An STL random access traversal iterator over a model of PixelConcept.">PixelIteratorConcept</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>
- MEMORY-BASED STEP ITERATOR<p>
- A refinement of step_iterator_adaptor that uses a dynamic parameter for the step which is specified in memory units, such as bytes or bits<p>
- Pixel step iterators are used to provide iteration over non-adjacent pixels. Common use is a vertical traversal, where the step is the row stride.<p>
- Another application is as a sub-channel view. For example, a red intensity <a class="el" href="g_i_l_0038.html" title="container interface over image view. Models ImageConcept, PixelBasedConcept">image</a> over interleaved RGB data would use a step iterator adaptor with step sizeof(channel_t)*3 In the latter example the step <a class="el" href="g_i_l_0621.html" title="Returns an MPL integral type specifying the number of elements in a color base.">size</a> could be fixed at compile time for efficiency. Compile-time fixed step can be implemented by providing a step function object that takes the step as a template <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="bc15672c336b287b81a4bd69f0986753"></a><!-- doxytag: member="boost::gil::memory_based_step_iterator::parent_t" ref="bc15672c336b287b81a4bd69f0986753" args="" -->
- typedef <br>
- <a class="el" href="g_i_l_0036.html">detail::step_iterator_adaptor</a><br>
- < <a class="el" href="g_i_l_0046.html">memory_based_step_iterator</a><br>
- < Iterator >, Iterator, <br>
- <a class="el" href="g_i_l_0576.html">memunit_step_fn</a>< Iterator > > </td><td class="memItemRight" valign="bottom"><b>parent_t</b></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6c80bdd4dcae459dd371e3d941b83468"></a><!-- doxytag: member="boost::gil::memory_based_step_iterator::reference" ref="6c80bdd4dcae459dd371e3d941b83468" args="" -->
- typedef parent_t::reference </td><td class="memItemRight" valign="bottom"><b>reference</b></td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af1864eda36a1748894be741b3d64bde"></a><!-- doxytag: member="boost::gil::memory_based_step_iterator::difference_type" ref="af1864eda36a1748894be741b3d64bde" args="" -->
- typedef parent_t::difference_type </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="6c92dba2feb25a3b182a2a78de4cddb5"></a><!-- doxytag: member="boost::gil::memory_based_step_iterator::x_iterator" ref="6c92dba2feb25a3b182a2a78de4cddb5" args="" -->
- typedef Iterator </td><td class="memItemRight" valign="bottom"><b>x_iterator</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="1c335f11e1be5ae1444d6556e5c4c59f"></a><!-- doxytag: member="boost::gil::memory_based_step_iterator::memory_based_step_iterator" ref="1c335f11e1be5ae1444d6556e5c4c59f" args="(Iterator it, std::ptrdiff_t memunit_step)" -->
- </td><td class="memItemRight" valign="bottom"><b>memory_based_step_iterator</b> (Iterator it, std::ptrdiff_t memunit_step)</td></tr>
- <tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="c9aedc29ca8f724bd7e3c56ca6d779cd"></a><!-- doxytag: member="boost::gil::memory_based_step_iterator::memory_based_step_iterator" ref="c9aedc29ca8f724bd7e3c56ca6d779cd" args="(const memory_based_step_iterator< I2 > &it)" -->
- template<typename I2> </td></tr>
- <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><b>memory_based_step_iterator</b> (const <a class="el" href="g_i_l_0046.html">memory_based_step_iterator</a>< I2 > &it)</td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top">reference </td><td class="memItemRight" valign="bottom"><a class="el" href="g_i_l_0046.html#de1279c4ed222b6efb0867c038765ea1">operator[]</a> (difference_type d) const </td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2db2a1eeeaff81d48e6c3ae3fb21cdd9"></a><!-- doxytag: member="boost::gil::memory_based_step_iterator::set_step" ref="2db2a1eeeaff81d48e6c3ae3fb21cdd9" args="(std::ptrdiff_t memunit_step)" -->
- void </td><td class="memItemRight" valign="bottom"><b>set_step</b> (std::ptrdiff_t memunit_step)</td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2d6722b54419923ecb1282a142fcd494"></a><!-- doxytag: member="boost::gil::memory_based_step_iterator::base" ref="2d6722b54419923ecb1282a142fcd494" args="()" -->
- x_iterator & </td><td class="memItemRight" valign="bottom"><b>base</b> ()</td></tr>
- <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2d972dcaff90f5726d754dd8613c8095"></a><!-- doxytag: member="boost::gil::memory_based_step_iterator::base" ref="2d972dcaff90f5726d754dd8613c8095" args="() const " -->
- x_iterator const & </td><td class="memItemRight" valign="bottom"><b>base</b> () const </td></tr>
- </table>
- <hr><h2>Member Function Documentation</h2>
- <a class="anchor" name="de1279c4ed222b6efb0867c038765ea1"></a><!-- doxytag: member="boost::gil::memory_based_step_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 </td>
- <td class="paramname"> <em>d</em> </td>
- <td> ) </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 class was generated from the following file:<ul>
- <li><a class="el" href="g_i_l_0259.html">step_iterator.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
- <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>