libzypp  17.35.19
zypp::bit::RangeBit< TRange, _pos > Struct Template Reference

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

#include <zypp/Bit.h>

Public Types

using RangeT = TRange
 
using IntT = typename TRange::IntT
 

Static Public Attributes

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

Detailed Description

template<class TRange, unsigned _pos>
struct zypp::bit::RangeBit< TRange, _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

Definition at line 128 of file Bit.h.

Member Typedef Documentation

◆ RangeT

template<class TRange , unsigned _pos>
using zypp::bit::RangeBit< TRange, _pos >::RangeT = TRange

Definition at line 130 of file Bit.h.

◆ IntT

template<class TRange , unsigned _pos>
using zypp::bit::RangeBit< TRange, _pos >::IntT = typename TRange::IntT

Definition at line 131 of file Bit.h.

Member Data Documentation

◆ value

template<class TRange , unsigned _pos>
const IntT zypp::bit::RangeBit< TRange, _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: