libzypp 17.38.6
bit.h File Reference
#include <zypp/Bit.h>
Include dependency graph for bit.h:

Go to the source code of this file.

Classes

struct  zyppng::bit::MaxBits< TInt >
 Number of bits available in TInt. More...
struct  zyppng::bit::Mask< TInt, _begin, _size >
 A bitmaks of _size 1-bits starting at bit _begin. More...
struct  zyppng::bit::Range< TInt, _begin, _size >
 Range of bits starting at bit _begin with length _size. More...
struct  zyppng::bit::RangeValue< TRange, _value >
 A value with in a Range. More...
struct  zyppng::bit::RangeBit< TRange, _pos >
 A single 1-bit within a Range. More...
class  zyppng::bit::BitField< TInt >
 An integral type used as BitField. More...

Namespaces

namespace  zyppng
namespace  zyppng::bit

Functions

template<class TInt>
std::string zyppng::bit::asString (TInt val, char zero='0', char one='1')
 For printing bits.
template<class TInt>
bool zyppng::bit::operator== (const BitField< TInt > &lhs, const BitField< TInt > &rhs)
 relates: BitField
template<class TInt>
bool zyppng::bit::operator!= (const BitField< TInt > &lhs, const BitField< TInt > &rhs)
 relates: BitField
template<class TInt>
BitField< TInt > zyppng::bit::operator& (const BitField< TInt > &lhs, const BitField< TInt > &rhs)
 relates: BitField
template<class TInt>
BitField< TInt > zyppng::bit::operator| (const BitField< TInt > &lhs, const BitField< TInt > &rhs)
 relates: BitField
template<class TInt>
BitField< TInt > zyppng::bit::operator^ (const BitField< TInt > &lhs, const BitField< TInt > &rhs)
 relates: BitField
template<class TInt>
BitField< TInt > zyppng::bit::operator>> (const BitField< TInt > &lhs, unsigned num)
 relates: BitField