17#include <zypp/base/PtrTypes.h>
101 {
return test( idx_r ); }
105 std::string asString(
const char on_r =
'1',
const char off_r =
'0' )
const;
124 {
return !( lhs == rhs ); }
Libsolv (bit)Map wrapper.
std::string asString(const char on_r='1', const char off_r='0') const
String representation.
void clear(size_type idx_r)
Clear bit idx_r.
size_type size() const
Size of the Map.
void grow(size_type size_r)
Grow the Map if necessary.
bool operator[](size_type idx_r) const
Test bit idx_r.
void assign(size_type idx_r, bool val_r)
Assign val_r to bit idx_r.
void clearAll()
Clear all bits.
static constexpr PoolSizeType poolSize
An object indicating the bitmap should match the current pools capacity.
std::ostream & operator<<(std::ostream &str, const Map &obj)
Stream output.
Map()
Default ctor: empty Map.
bool test(size_type idx_r) const
Test bit idx_r.
void set(size_type idx_r)
Set bit idx_r.
RWCOW_pointer< detail::CMap > _pimpl
Pointer to implementation.
void assignAll(bool val_r)
Assign val_r to all bits.
bool empty() const
Whether Map is empty.
bool operator!=(const Map &lhs, const Map &rhs)
void setAll()
Set all bits.
String related utilities and Regular expression matching.
::s_Map CMap
Wrapped libsolv C data type exposed as backdoor.
bool operator==(const Map &lhs, const Map &rhs)
Easy-to use interface to the ZYPP dependency resolver.
sat::detail::CMap * rwcowClone< sat::detail::CMap >(const sat::detail::CMap *rhs)
RW_pointer supporting 'copy on write' functionality.
Type to indicate the bitmap should match the current pools capacity.