Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable > Class Template Reference

#include <channel.hpp>

Inheritance diagram for boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >:
Collaboration diagram for boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >:

Public Types

typedef packed_channel_value
< NumBits > 
value_type
 
typedef const Derived reference
 
typedef value_typepointer
 
typedef const value_typeconst_pointer
 
typedef BitField bitfield_t
 
typedef value_type::integer_t integer_t
 

Public Member Functions

 BOOST_STATIC_CONSTANT (int, num_bits=NumBits)
 
 BOOST_STATIC_CONSTANT (bool, is_mutable=Mutable)
 
 packed_channel_reference_base (data_ptr_t data_ptr)
 
 packed_channel_reference_base (const packed_channel_reference_base &ref)
 
const Derived & operator= (integer_t v) const
 
const Derived & operator++ () const
 
const Derived & operator-- () const
 
Derived operator++ (int) const
 
Derived operator-- (int) const
 
template<typename Scalar2 >
const Derived & operator+= (Scalar2 v) const
 
template<typename Scalar2 >
const Derived & operator-= (Scalar2 v) const
 
template<typename Scalar2 >
const Derived & operator*= (Scalar2 v) const
 
template<typename Scalar2 >
const Derived & operator/= (Scalar2 v) const
 
 operator integer_t () const
 
data_ptr_t operator& () const
 

Static Public Member Functions

static value_type min_value ()
 
static value_type max_value ()
 

Public Attributes

data_ptr_t _data_ptr
 

Protected Types

typedef mpl::if_c< Mutable,
void *, const void * >::type 
data_ptr_t
 
typedef detail::num_value_fn
< NumBits >::type 
num_value_t
 
typedef detail::max_value_fn
< NumBits >::type 
max_value_t
 

Protected Member Functions

const bitfield_tget_data () const
 
void set_data (const bitfield_t &val) const
 

Static Protected Attributes

static const num_value_t num_values = static_cast< num_value_t >( 1 ) << NumBits
 
static const max_value_t max_val = static_cast< max_value_t >( num_values - 1 )
 

Member Typedef Documentation

template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef BitField boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::bitfield_t
template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef const value_type* boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::const_pointer
template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef mpl::if_c<Mutable,void*,const void*>::type boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::data_ptr_t
protected
template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef value_type::integer_t boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::integer_t
template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef detail::max_value_fn< NumBits >::type boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::max_value_t
protected
template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef detail::num_value_fn< NumBits >::type boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::num_value_t
protected
template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef value_type* boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::pointer
template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef const Derived boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::reference
template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef packed_channel_value<NumBits> boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::value_type

Constructor & Destructor Documentation

template<typename Derived, typename BitField, int NumBits, bool Mutable>
boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::packed_channel_reference_base ( data_ptr_t  data_ptr)
inline
template<typename Derived, typename BitField, int NumBits, bool Mutable>
boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::packed_channel_reference_base ( const packed_channel_reference_base< Derived, BitField, NumBits, Mutable > &  ref)
inline

Member Function Documentation

template<typename Derived, typename BitField, int NumBits, bool Mutable>
boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::BOOST_STATIC_CONSTANT ( int  ,
num_bits  = NumBits 
)
template<typename Derived, typename BitField, int NumBits, bool Mutable>
boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::BOOST_STATIC_CONSTANT ( bool  ,
is_mutable  = Mutable 
)
template<typename Derived, typename BitField, int NumBits, bool Mutable>
const bitfield_t& boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::get_data ( ) const
inlineprotected
template<typename Derived, typename BitField, int NumBits, bool Mutable>
static value_type boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::max_value ( )
inlinestatic
template<typename Derived, typename BitField, int NumBits, bool Mutable>
static value_type boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::min_value ( )
inlinestatic
template<typename Derived, typename BitField, int NumBits, bool Mutable>
boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::operator integer_t ( ) const
inline
template<typename Derived, typename BitField, int NumBits, bool Mutable>
data_ptr_t boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::operator& ( ) const
inline
template<typename Derived, typename BitField, int NumBits, bool Mutable>
template<typename Scalar2 >
const Derived& boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::operator*= ( Scalar2  v) const
inline
template<typename Derived, typename BitField, int NumBits, bool Mutable>
const Derived& boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::operator++ ( ) const
inline
template<typename Derived, typename BitField, int NumBits, bool Mutable>
Derived boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::operator++ ( int  ) const
inline
template<typename Derived, typename BitField, int NumBits, bool Mutable>
template<typename Scalar2 >
const Derived& boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::operator+= ( Scalar2  v) const
inline
template<typename Derived, typename BitField, int NumBits, bool Mutable>
const Derived& boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::operator-- ( ) const
inline
template<typename Derived, typename BitField, int NumBits, bool Mutable>
Derived boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::operator-- ( int  ) const
inline
template<typename Derived, typename BitField, int NumBits, bool Mutable>
template<typename Scalar2 >
const Derived& boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::operator-= ( Scalar2  v) const
inline
template<typename Derived, typename BitField, int NumBits, bool Mutable>
template<typename Scalar2 >
const Derived& boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::operator/= ( Scalar2  v) const
inline
template<typename Derived, typename BitField, int NumBits, bool Mutable>
const Derived& boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::operator= ( integer_t  v) const
inline
template<typename Derived, typename BitField, int NumBits, bool Mutable>
void boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::set_data ( const bitfield_t val) const
inlineprotected

Member Data Documentation

template<typename Derived, typename BitField, int NumBits, bool Mutable>
data_ptr_t boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::_data_ptr
template<typename Derived, typename BitField, int NumBits, bool Mutable>
const max_value_t boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::max_val = static_cast< max_value_t >( num_values - 1 )
staticprotected
template<typename Derived, typename BitField, int NumBits, bool Mutable>
const num_value_t boost::gil::detail::packed_channel_reference_base< Derived, BitField, NumBits, Mutable >::num_values = static_cast< num_value_t >( 1 ) << NumBits
staticprotected

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