libzypp  11.13.5
zypp::bit Namespace Reference

Namespaces

namespace  bit_detail

Classes

struct  MaxBits
 Number of bits available in _IntT. More...
struct  Mask
 A bitmaks of _size 1-bits starting at bit _begin. More...
struct  Range
 Range of bits starting at bit _begin with length _size. More...
struct  Range< _IntT, _begin, 0 >
 Range specialisation for (illegal) zero _size. More...
struct  RangeValue
 A value with in a Range. More...
struct  RangeBit
 A single 1-bit within a Range. More...
class  BitField
 An integral type used as BitField. More...

Functions

template<class _IntT >
std::string asString (_IntT val, char zero= '0', char one= '1')
 For printing bits.

Detailed Description

Todo:
Use boost::mpl library to assert constraints at compiletime! There various like (_IntT is an integral type) (begin+size < maxbits) or ( field dependent constants must be within the range defined by size ).

Function Documentation

template<class _IntT >
std::string zypp::bit::asString ( _IntT  val,
char  zero = '0',
char  one = '1' 
)
inline

For printing bits.

Definition at line 59 of file Bit.h.