libzypp
11.13.5
|
An integral type used as BitField. More...
#include <Bit.h>
Public Member Functions | |
BitField () | |
Default ctor: zero. | |
BitField (const _IntT &value_r) | |
Ctor taking an _IntT. | |
template<class _Range > | |
_IntT | value () const |
Return the value. | |
_IntT | value () const |
template<class _Range > | |
std::string | asString () const |
Value as bit string. | |
std::string | asString () const |
template<class _Range > | |
BitField & | assign (_IntT rhs) |
Assign Range in rhs to this . | |
BitField & | assign (_IntT rhs) |
template<class _Range > | |
bool | isEqual (_IntT rhs) const |
Test for equal value within a Range. | |
bool | isEqual (_IntT rhs) const |
template<class _Range > | |
BitField & | set (_IntT rhs, bool doset_r) |
Set or unset bits of rhs. | |
BitField & | set (_IntT rhs, bool doset_r) |
template<class _Range > | |
BitField & | set (_IntT rhs) |
Set bits of rhs. | |
BitField & | set (_IntT rhs) |
template<class _Range > | |
BitField & | unset (_IntT rhs) |
Unset bits of rhs. | |
BitField & | unset (_IntT rhs) |
template<class _Range > | |
bool | test (_IntT rhs) |
Test whether all bits of rhs are set. | |
bool | test (_IntT rhs) const |
template<class _Range > | |
bool | testAnyOf (_IntT rhs) |
Test whether at least one bit of rhs is set. | |
bool | testAnyOf (_IntT rhs) const |
BitField & | operator= (const BitField &rhs) |
BitField & | operator&= (const BitField &rhs) |
BitField & | operator|= (const BitField &rhs) |
BitField & | operator^= (const BitField &rhs) |
BitField & | operator<<= (unsigned num) |
BitField & | operator>>= (unsigned num) |
BitField | operator~ () const |
Private Types | |
typedef base::SafeBool < BitField< _IntT > >::bool_type | bool_type |
Private Member Functions | |
friend | base::SafeBool () const |
bool | boolTest () const |
base::SafeBool test. | |
Private Member Functions inherited from zypp::base::SafeBool< BitField< _IntT > > | |
operator bool_type () const | |
~SafeBool () |
Private Attributes | |
_IntT | _value |
Related Functions | |
(Note that these are not member functions.) | |
template<class _IntT > | |
std::ostream & | operator<< (std::ostream &str, const BitField< _IntT > &obj) |
template<class _IntT > | |
bool | operator== (const BitField< _IntT > &lhs, const BitField< _IntT > &rhs) |
template<class _IntT > | |
bool | operator!= (const BitField< _IntT > &lhs, const BitField< _IntT > &rhs) |
template<class _IntT > | |
BitField< _IntT > | operator& (const BitField< _IntT > &lhs, const BitField< _IntT > &rhs) |
template<class _IntT > | |
BitField< _IntT > | operator| (const BitField< _IntT > &lhs, const BitField< _IntT > &rhs) |
template<class _IntT > | |
BitField< _IntT > | operator^ (const BitField< _IntT > &lhs, const BitField< _IntT > &rhs) |
template<class _IntT > | |
BitField< _IntT > | operator<< (const BitField< _IntT > &lhs, unsigned num) |
template<class _IntT > | |
BitField< _IntT > | operator>> (const BitField< _IntT > &lhs, unsigned num) |
Additional Inherited Members | |
Public Types inherited from zypp::bit::Range< _IntT, 0, MaxBits< _IntT >::value > | |
typedef _IntT | IntT |
typedef zypp::bit::MaxBits< IntT > | MaxBits |
typedef zypp::bit::Mask< IntT, _begin, _size > | Mask |
Static Public Attributes inherited from zypp::bit::Range< _IntT, 0, MaxBits< _IntT >::value > | |
static const unsigned | begin |
static const unsigned | size |
static const unsigned | end |
An integral type used as BitField.
Most methods exist as templated and nontemplated version. The nontemplated operates on the complete BitField, while the tamplated ones are restricted to the given Range.
|
private |
Reimplemented from zypp::base::safebool_detail::SafeBoolBase.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
inlineprivate |
base::SafeBool test.
|
related |
|
private |