planar_ptr_base Struct Template Reference
[Planar Pointers]

#include <planar_ptr.hpp>

List of all members.


Detailed Description

template<typename IC, typename C>
struct planar_ptr_base< IC, C >

base class for the the representation of a pointer to a planar pixel


Public Types

typedef boost::iterator_facade<
planar_ptr< IC, C >, pixel<
typename std::iterator_traits<
IC >::value_type, C >, boost::random_access_traversal_tag,
planar_ref< typename std::iterator_traits<
IC >::reference, C > > 
parent_t
typedef std::random_access_iterator_tag iterator_category
typedef detail::color_base<
IC, C > 
color_base_parent_t
typedef pixel< typename std::iterator_traits<
IC >::value_type, C > 
pixel_t
typedef parent_t::reference reference
typedef parent_t::difference_type difference_type
typedef C color_space_t
typedef std::iterator_traits<
IC >::value_type 
channel_t

Public Member Functions

 planar_ptr_base (const IC &v0, const IC &v1)
 planar_ptr_base (const IC &v0, const IC &v1, const IC &v2)
 planar_ptr_base (const IC &v0, const IC &v1, const IC &v2, const IC &v3)
 planar_ptr_base (const IC &v0, const IC &v1, const IC &v2, const IC &v3, const IC &v4)
template<typename IC1, typename C1>
 planar_ptr_base (const planar_ptr_base< IC1, C1 > &ptr)
reference operator[] (difference_type d) const
IC & channel_ptr (std::size_t i)
const IC & channel_ptr (std::size_t i) const
template<int N>
IC & channel ()
template<int N>
IC const & channel () const
template<int N>
IC & semantic_channel ()
template<int N>
IC const & semantic_channel () const
reference operator-> () const
bool operator< (const planar_ptr_base &ptr) const
bool operator!= (const planar_ptr_base &ptr) const

Static Public Attributes

static const int num_channels = color_space_t::num_channels

Friends

class boost::iterator_core_access

Member Function Documentation

reference operator[] difference_type  d  )  const [inline]
 

For some reason operator[] provided by boost::iterator_facade returns a custom class that is convertible to reference We require our own reference because it is registered in iterator_traits


The documentation for this struct was generated from the following file:

Copyright © 2006 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google