11 #ifndef ZYPP_SAT_MAP_H
12 #define ZYPP_SAT_MAP_H
86 {
return test( idx_r ); }
90 std::string
asString(
const char on_r =
'1',
const char off_r =
'0' )
const;
93 operator struct ::_Map *();
94 operator const struct ::_Map *()
const
109 {
return !( lhs == rhs ); }
115 template<> struct ::_Map * rwcowClone<struct ::_Map>(
const struct ::_Map * rhs );
119 #endif // ZYPP_SAT_MAP_H
RWCOW_pointer< struct::_Map > _pimpl
Pointer to implementation.
void clear(size_type idx_r)
Clear bit idx_r.
bool operator!=(const Map &lhs, const Map &rhs)
size_type size() const
Size of the Map.
bool operator==(const Map &lhs, const Map &rhs)
std::ostream & operator<<(std::ostream &str, const Map &obj)
void set(size_type idx_r)
Set bit idx_r.
bool test(size_type idx_r) const
Test bit idx_r.
bool operator[](size_type idx_r) const
Test bit idx_r.
Map()
Default ctor: empty Map.
void clearAll()
Clear all bits.
void setAll()
Set all bits.
void assign(size_type idx_r, bool val_r)
Assign val_r to bit idx_r.
std::string asString(const char on_r= '1', const char off_r= '0') const
String representation.
void grow(size_type size_r)
Grow the Map if necessary.
bool empty() const
Whether Map is empty.
Libsolv (bit)Map wrapper.
void assignAll(bool val_r)
Assign val_r to all bits.