| libzypp 17.36.7
    | 
An integral type used as BitField. More...
#include <zypp/Bit.h>
 
  
| Public Member Functions | |
| BitField () | |
| Default ctor: zero. | |
| BitField (const TInt &value_r) | |
| Ctor taking an TInt. | |
| operator bool () const | |
| Validate in a boolean context. | |
| template<class TRange> | |
| TInt | value () const | 
| Return the value. | |
| TInt | value () const | 
| template<class TRange> | |
| std::string | asString () const | 
| Value as bit string. | |
| std::string | asString () const | 
| template<class TRange> | |
| BitField & | assign (TInt rhs) | 
| Assign Range in rhs to this. | |
| BitField & | assign (TInt rhs) | 
| template<class TRange> | |
| bool | isEqual (TInt rhs) const | 
| Test for equal value within a Range. | |
| bool | isEqual (TInt rhs) const | 
| template<class TRange> | |
| BitField & | set (TInt rhs, bool doset_r) | 
| Set or unset bits of rhs. | |
| BitField & | set (TInt rhs, bool doset_r) | 
| template<class TRange> | |
| BitField & | set (TInt rhs) | 
| Set bits of rhs. | |
| BitField & | set (TInt rhs) | 
| template<class TRange> | |
| BitField & | unset (TInt rhs) | 
| Unset bits of rhs. | |
| BitField & | unset (TInt rhs) | 
| template<class TRange> | |
| bool | test (TInt rhs) | 
| Test whether all bits of rhs are set. | |
| bool | test (TInt rhs) const | 
| template<class TRange> | |
| bool | testAnyOf (TInt rhs) | 
| Test whether at least one bit of rhs is set. | |
| bool | testAnyOf (TInt 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 Attributes | |
| TInt | _value | 
| Related Symbols | |
| (Note that these are not member symbols.) | |
| template<class TInt> | |
| std::ostream & | operator<< (std::ostream &str, const BitField< TInt > &obj) | 
| Stream output. | |
| template<class TInt> | |
| bool | operator== (const BitField< TInt > &lhs, const BitField< TInt > &rhs) | 
| template<class TInt> | |
| bool | operator!= (const BitField< TInt > &lhs, const BitField< TInt > &rhs) | 
| template<class TInt> | |
| BitField< TInt > | operator& (const BitField< TInt > &lhs, const BitField< TInt > &rhs) | 
| template<class TInt> | |
| BitField< TInt > | operator| (const BitField< TInt > &lhs, const BitField< TInt > &rhs) | 
| template<class TInt> | |
| BitField< TInt > | operator^ (const BitField< TInt > &lhs, const BitField< TInt > &rhs) | 
| template<class TInt> | |
| BitField< TInt > | operator<< (const BitField< TInt > &lhs, unsigned num) | 
| template<class TInt> | |
| BitField< TInt > | operator>> (const BitField< TInt > &lhs, unsigned num) | 
| Additional Inherited Members | |
|  Public Types inherited from zypp::bit::Range< TInt, 0, MaxBits< TInt >::value > | |
| using | IntT | 
| using | MaxBits | 
| using | Mask | 
|  Static Public Attributes inherited from zypp::bit::Range< TInt, 0, MaxBits< TInt >::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.
| 
 | inline | 
| 
 | inline | 
| 
 | inlineexplicit | 
| 
 | 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 |