Adobe Systems, Inc.

planar_ptr_base< IC, C > Struct Template Reference
[Planar Pointers]

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

#include <planar_ptr.hpp>

Inherits detail::color_base< IC, C >.

List of all members.


Public Types

typedef std::iterator_traits<
IC >::value_type 
channel_t
typedef detail::color_base<
IC, C > 
color_base_parent_t
typedef C color_space_t
typedef parent_t::difference_type difference_type
typedef std::random_access_iterator_tag iterator_category
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 pixel< typename std::iterator_traits<
IC >::value_type, C > 
pixel_t
typedef parent_t::reference reference

Public Member Functions

template<int N>
IC const & channel () const
template<int N>
IC & channel ()
const IC & channel_ptr (std::size_t i) const
IC & channel_ptr (std::size_t i)
bool operator!= (const planar_ptr_base &ptr) const
reference operator-> () const
bool operator< (const planar_ptr_base &ptr) const
reference operator[] (difference_type d) const
template<typename IC1, typename C1>
 planar_ptr_base (const planar_ptr_base< IC1, C1 > &ptr)
 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)
 planar_ptr_base ()
template<int N>
IC const & semantic_channel () const
template<int N>
IC & semantic_channel ()

Static Public Attributes

static const int num_channels

Friends

class boost::iterator_core_access

Detailed Description

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

Definition at line 46 of file planar_ptr.hpp.


Member Function Documentation

template<typename IC, typename C>
reference planar_ptr_base< IC, C >::operator[] difference_type  d  )  const
 

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

Definition at line 73 of file planar_ptr.hpp.

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