libzypp  13.10.6
zypp::bit::RangeBit< _Range, _pos > Struct Template Reference

A single 1-bit within a Range. More...

#include <Bit.h>

Public Types

typedef _Range RangeT
 
typedef _Range::IntT IntT
 

Static Public Attributes

static const IntT value = IntT(1) << (RangeT::begin + _pos)
 

Detailed Description

template<class _Range, unsigned _pos>
struct zypp::bit::RangeBit< _Range, _pos >

A single 1-bit within a Range.

* typedef Range<char,2,3> SubField; // bits 2,3,4 in a char field
* SubField::Mask::value; // 00011100
* RangeBit<SubField,0>::value; // 00000100
* RangeBit<SubField,1>::value; // 00001000
* RangeBit<SubField,2>::value; // 00010000
*

Definition at line 128 of file Bit.h.

Member Typedef Documentation

template<class _Range , unsigned _pos>
typedef _Range zypp::bit::RangeBit< _Range, _pos >::RangeT

Definition at line 130 of file Bit.h.

template<class _Range , unsigned _pos>
typedef _Range::IntT zypp::bit::RangeBit< _Range, _pos >::IntT

Definition at line 131 of file Bit.h.

Member Data Documentation

template<class _Range , unsigned _pos>
const IntT zypp::bit::RangeBit< _Range, _pos >::value = IntT(1) << (RangeT::begin + _pos)
static

Definition at line 133 of file Bit.h.


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