Generic Image Library: packed_channel_value

###  | #  |

- Main Page
- Modules
- Namespaces
- Classes
- Files

Classes
packed_channel_value
Models

Represents the value of an unsigned integral channel operating over a bit range. Models: ChannelValueConcept Example: More...

## Classes
class | packed_channel_value< NumBits >
| The value of a subbyte channel. Models: ChannelValueConcept. More...

## Detailed Description

Represents the value of an unsigned integral channel operating over a bit range. Models: ChannelValueConcept Example:

// A 4-bit unsigned integral channel.
typedef packed_channel_value<4> bits4;
assert(channel_traits<bits4>::min_value()==0);
assert(channel_traits<bits4>::max_value()==15);
assert(sizeof(bits4)==1);
BOOST_STATIC_ASSERT((boost::is_integral<bits4>::value));