Modules | Alphabetical List | Class List | Directories | File List | GIL Home Page

# color_base.hpp File Reference

## Detailed Description

pixel class and related utilities

Author:
  Lubomir Bourdev and Hailin Jin
  Adobe Systems Incorporated

Date:
  2005-2007
  Last updated on May 6, 2007

`#include <cassert>`
`#include <boost/mpl/range_c.hpp>`
`#include <boost/mpl/size.hpp>`
`#include <boost/mpl/vector_c.hpp>`
`#include <boost/type_traits.hpp>`
`#include <boost/utility/enable_if.hpp>`
`#include "gil_config.hpp"`
`#include "utilities.hpp"`
`#include "gil_concept.hpp"`

Go to the source code of this file.

## Namespaces

namespace | boost
namespace | boost::gil
namespace | boost::gil::detail

## Classes

struct | homogeneous_color_base< Element, Layout, 1 >
| A homogeneous color base holding one color element. Models HomogeneousColorBaseConcept or HomogeneousColorBaseValueConcept. More...
struct | homogeneous_color_base< Element, Layout, 2 >
| A homogeneous color base holding two color elements. Models HomogeneousColorBaseConcept or HomogeneousColorBaseValueConcept. More...
struct | homogeneous_color_base< Element, Layout, 3 >
| A homogeneous color base holding three color elements. Models HomogeneousColorBaseConcept or HomogeneousColorBaseValueConcept. More...
struct | homogeneous_color_base< Element, Layout, 4 >
| A homogeneous color base holding four color elements. Models HomogeneousColorBaseConcept or HomogeneousColorBaseValueConcept. More...
struct | homogeneous_color_base< Element, Layout, 5 >
| A homogeneous color base holding five color elements. Models HomogeneousColorBaseConcept or HomogeneousColorBaseValueConcept. More...

## Functions

template<typename P>
P * | memunit_advanced (const P *p, std::ptrdiff_t diff)
template<int K, typename ColorBase>
disable_if< is_const < ColorBase >, typename kth_semantic_element_reference_type < ColorBase, K >::type >::type | semantic_at_c (ColorBase &p)
| A mutable accessor to the K-th semantic element of a color base.
template<int K, typename ColorBase>
kth_semantic_element_const_reference_type < ColorBase, K >::type | semantic_at_c (const ColorBase &p)
| A constant accessor to the K-th semantic element of a color base.
template<typename Element, typename Layout, int K>
element_reference_type < homogeneous_color_base < Element, Layout, K > >::type | dynamic_at_c (homogeneous_color_base< Element, Layout, K > &cb, std::size_t i)
template<typename Element, typename Layout, int K>
element_const_reference_type < homogeneous_color_base < Element, Layout, K > >::type | dynamic_at_c (const homogeneous_color_base< Element, Layout, K > &cb, std::size_t i)
template<typename Element, typename Layout, int K>
element_reference_type < homogeneous_color_base < Element &, Layout, K > >::type | dynamic_at_c (const homogeneous_color_base< Element &, Layout, K > &cb, std::size_t i)
template<typename Element, typename Layout, int K>
element_const_reference_type < homogeneous_color_base < const Element &, Layout, K > >::type | dynamic_at_c (const homogeneous_color_base< const Element &, Layout, K > &cb, std::size_t i)
template<int K, typename E, typename L, int N>
add_reference< E >::type | at_c (detail::homogeneous_color_base< E, L, N > &p)
| Provides mutable access to the K-th element, in physical order.
template<int K, typename E, typename L, int N>
add_reference< typename add_const< E >::type >::type | at_c (const detail::homogeneous_color_base< E, L, N > &p)
| Provides constant access to the K-th element, in physical order.
template<typename E, typename L, int N>
void | swap (detail::homogeneous_color_base< E, L, N > &x, detail::homogeneous_color_base< E, L, N > &y)