Generic Image Library : typedefs.hpp File Reference

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

# typedefs.hpp File Reference

## Detailed Description

Useful typedefs.

Author:
  Lubomir Bourdev and Hailin Jin
  Adobe Systems Incorporated

Date:
  2005-2007
  Last updated on March 8, 2006

`#include "gil_config.hpp"`
`#include <boost/cstdint.hpp>`
`#include "gray.hpp"`
`#include "rgb.hpp"`
`#include "rgba.hpp"`
`#include "cmyk.hpp"`
`#include "device_n.hpp"`
`#include <memory>`

Go to the source code of this file.

## Namespaces

namespace | boost
namespace | boost::gil

## Defines

#define | GIL_DEFINE_BASE_TYPEDEFS_INTERNAL(T, CS, LAYOUT)
#define | GIL_DEFINE_ALL_TYPEDEFS_INTERNAL(T, CS, CS_FULL, LAYOUT)
#define | GIL_DEFINE_BASE_TYPEDEFS(T, CS) GIL_DEFINE_BASE_TYPEDEFS_INTERNAL(T,CS,CS##_layout_t)
#define | GIL_DEFINE_ALL_TYPEDEFS(T, CS) GIL_DEFINE_ALL_TYPEDEFS_INTERNAL(T,CS,CS##_t,CS##_layout_t)

## Define Documentation

#define GIL_DEFINE_ALL_TYPEDEFS_INTERNAL | ( | T,
|  | CS,
|  | CS_FULL,
|  | LAYOUT |  | ) |

Value:

    GIL_DEFINE_BASE_TYPEDEFS_INTERNAL(T,CS,LAYOUT)                                                                    \
        typedef planar_pixel_reference<bits##T&,CS_FULL >                                          CS##T##_planar_ref_t;        \
        typedef planar_pixel_reference<const bits##T&,CS_FULL >                                      CS##T##c_planar_ref_t;        \
        typedef planar_pixel_iterator<bits##T*,CS_FULL >                                          CS##T##_planar_ptr_t;        \
        typedef planar_pixel_iterator<const bits##T*,CS_FULL >                                      CS##T##c_planar_ptr_t;        \
        typedef memory_based_step_iterator<CS##T##_planar_ptr_t>                              CS##T##_planar_step_ptr_t;    \
        typedef memory_based_step_iterator<CS##T##c_planar_ptr_t>                              CS##T##c_planar_step_ptr_t;    \
        typedef memory_based_2d_locator<memory_based_step_iterator<CS##T##_planar_ptr_t> >          CS##T##_planar_loc_t;        \
        typedef memory_based_2d_locator<memory_based_step_iterator<CS##T##c_planar_ptr_t> >      CS##T##c_planar_loc_t;        \
        typedef memory_based_2d_locator<memory_based_step_iterator<CS##T##_planar_step_ptr_t> >  CS##T##_planar_step_loc_t;    \
        typedef memory_based_2d_locator<memory_based_step_iterator<CS##T##c_planar_step_ptr_t> > CS##T##c_planar_step_loc_t;    \
        typedef image_view<CS##T##_planar_loc_t>                                      CS##T##_planar_view_t;        \
        typedef image_view<CS##T##c_planar_loc_t>                                      CS##T##c_planar_view_t;        \
        typedef image_view<CS##T##_planar_step_loc_t>                                  CS##T##_planar_step_view_t;    \
        typedef image_view<CS##T##c_planar_step_loc_t>                                  CS##T##c_planar_step_view_t;\
        typedef image<CS##T##_pixel_t,true,std::allocator<unsigned char> >              CS##T##_planar_image_t;

#define GIL_DEFINE_BASE_TYPEDEFS_INTERNAL | ( | T,
|  | CS,
|  | LAYOUT |  | ) |

Value:

    template <typename, typename>    struct pixel;                                                \
        template <typename, typename>    struct planar_pixel_reference;                                            \
        template <typename, typename>    struct planar_pixel_iterator;                                            \
        template <typename>                class memory_based_step_iterator;                                    \
        template <typename>                class point2;                                                \
        template <typename>                class memory_based_2d_locator;                                    \
        template <typename>                class image_view;                                            \
        template <typename, bool, typename>    class image;                                                \
        typedef pixel<bits##T, LAYOUT >                        CS##T##_pixel_t;        \
        typedef const pixel<bits##T, LAYOUT >                   CS##T##c_pixel_t;        \
        typedef pixel<bits##T, LAYOUT >&                      CS##T##_ref_t;            \
        typedef const pixel<bits##T, LAYOUT >&                CS##T##c_ref_t;            \
        typedef CS##T##_pixel_t*                                               CS##T##_ptr_t;            \
        typedef CS##T##c_pixel_t*                                               CS##T##c_ptr_t;            \
        typedef memory_based_step_iterator<CS##T##_ptr_t>                               CS##T##_step_ptr_t;        \
        typedef memory_based_step_iterator<CS##T##c_ptr_t>                               CS##T##c_step_ptr_t;    \
        typedef memory_based_2d_locator<memory_based_step_iterator<CS##T##_ptr_t> >       CS##T##_loc_t;            \
        typedef memory_based_2d_locator<memory_based_step_iterator<CS##T##c_ptr_t> >       CS##T##c_loc_t;            \
        typedef memory_based_2d_locator<memory_based_step_iterator<CS##T##_step_ptr_t> >  CS##T##_step_loc_t;        \
        typedef memory_based_2d_locator<memory_based_step_iterator<CS##T##c_step_ptr_t> > CS##T##c_step_loc_t;    \
        typedef image_view<CS##T##_loc_t>                                        CS##T##_view_t;            \
        typedef image_view<CS##T##c_loc_t>                                        CS##T##c_view_t;        \
        typedef image_view<CS##T##_step_loc_t>                                    CS##T##_step_view_t;    \
        typedef image_view<CS##T##c_step_loc_t>                                   CS##T##c_step_view_t;    \
        typedef image<CS##T##_pixel_t,false,std::allocator<unsigned char> >           CS##T##_image_t;