Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::gil::packed_pixel< BitField, ChannelRefVec, Layout > Struct Template Reference

Heterogeneous pixel value whose channel references can be constructed from the pixel bitfield and their index. More...

#include <packed_pixel.hpp>

Public Types

typedef Layout layout_t
 
typedef packed_pixel value_type
 
typedef value_typereference
 
typedef const value_typeconst_reference
 

Public Member Functions

 BOOST_STATIC_CONSTANT (bool, is_mutable=channel_traits< typename mpl::front< ChannelRefVec >::type >::is_mutable)
 
 packed_pixel ()
 
 packed_pixel (const BitField &bitfield)
 
 packed_pixel (const packed_pixel &p)
 
template<typename P >
 packed_pixel (const P &p, typename enable_if_c< is_pixel< P >::value >::type *d=0)
 
 packed_pixel (int chan0, int chan1)
 
 packed_pixel (int chan0, int chan1, int chan2)
 
 packed_pixel (int chan0, int chan1, int chan2, int chan3)
 
 packed_pixel (int chan0, int chan1, int chan2, int chan3, int chan4)
 
packed_pixeloperator= (const packed_pixel &p)
 
template<typename P >
packed_pixeloperator= (const P &p)
 
template<typename P >
bool operator== (const P &p) const
 
template<typename P >
bool operator!= (const P &p) const
 
packed_pixeloperator= (int chan)
 
bool operator== (int chan) const
 

Public Attributes

BitField _bitfield
 

Detailed Description

template<typename BitField, typename ChannelRefVec, typename Layout>
struct boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >

Heterogeneous pixel value whose channel references can be constructed from the pixel bitfield and their index.

Models ColorBaseValueConcept, PixelValueConcept, PixelBasedConcept Typical use for this is a model of a packed pixel (like 565 RGB)

Member Typedef Documentation

template<typename BitField, typename ChannelRefVec, typename Layout>
typedef const value_type& boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::const_reference
template<typename BitField, typename ChannelRefVec, typename Layout>
typedef Layout boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::layout_t
template<typename BitField, typename ChannelRefVec, typename Layout>
typedef value_type& boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::reference
template<typename BitField, typename ChannelRefVec, typename Layout>
typedef packed_pixel boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::value_type

Constructor & Destructor Documentation

template<typename BitField, typename ChannelRefVec, typename Layout>
boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::packed_pixel ( )
inline
template<typename BitField, typename ChannelRefVec, typename Layout>
boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::packed_pixel ( const BitField &  bitfield)
inlineexplicit
template<typename BitField, typename ChannelRefVec, typename Layout>
boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::packed_pixel ( const packed_pixel< BitField, ChannelRefVec, Layout > &  p)
inline
template<typename BitField, typename ChannelRefVec, typename Layout>
template<typename P >
boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::packed_pixel ( const P &  p,
typename enable_if_c< is_pixel< P >::value >::type d = 0 
)
inline
template<typename BitField, typename ChannelRefVec, typename Layout>
boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::packed_pixel ( int  chan0,
int  chan1 
)
inline
template<typename BitField, typename ChannelRefVec, typename Layout>
boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::packed_pixel ( int  chan0,
int  chan1,
int  chan2 
)
inline
template<typename BitField, typename ChannelRefVec, typename Layout>
boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::packed_pixel ( int  chan0,
int  chan1,
int  chan2,
int  chan3 
)
inline
template<typename BitField, typename ChannelRefVec, typename Layout>
boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::packed_pixel ( int  chan0,
int  chan1,
int  chan2,
int  chan3,
int  chan4 
)
inline

Member Function Documentation

template<typename BitField, typename ChannelRefVec, typename Layout>
boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::BOOST_STATIC_CONSTANT ( bool  ,
is_mutable  = channel_traits< typename mpl::front< ChannelRefVec >::type >::is_mutable 
)
template<typename BitField, typename ChannelRefVec, typename Layout>
template<typename P >
bool boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::operator!= ( const P &  p) const
inline
template<typename BitField, typename ChannelRefVec, typename Layout>
packed_pixel& boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::operator= ( const packed_pixel< BitField, ChannelRefVec, Layout > &  p)
inline
template<typename BitField, typename ChannelRefVec, typename Layout>
template<typename P >
packed_pixel& boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::operator= ( const P &  p)
inline
template<typename BitField, typename ChannelRefVec, typename Layout>
packed_pixel& boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::operator= ( int  chan)
inline
template<typename BitField, typename ChannelRefVec, typename Layout>
template<typename P >
bool boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::operator== ( const P &  p) const
inline
template<typename BitField, typename ChannelRefVec, typename Layout>
bool boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::operator== ( int  chan) const
inline

Member Data Documentation

template<typename BitField, typename ChannelRefVec, typename Layout>
BitField boost::gil::packed_pixel< BitField, ChannelRefVec, Layout >::_bitfield

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