libzypp
13.10.6
|
Libsolv (bit)Map wrapper. More...
#include <Map.h>
Public Types | |
typedef unsigned long | size_type |
Public Member Functions | |
Map () | |
Default ctor: empty Map. More... | |
Map (size_type size_r) | |
Ctor taking the Map size. More... | |
~Map () | |
Dtor. More... | |
bool | empty () const |
Whether Map is empty. More... | |
size_type | size () const |
Size of the Map. More... | |
void | grow (size_type size_r) |
Grow the Map if necessary. More... | |
void | setAll () |
Set all bits. More... | |
void | clearAll () |
Clear all bits. More... | |
void | assignAll (bool val_r) |
Assign val_r to all bits. More... | |
void | set (size_type idx_r) |
Set bit idx_r . More... | |
void | clear (size_type idx_r) |
Clear bit idx_r . More... | |
void | assign (size_type idx_r, bool val_r) |
Assign val_r to bit idx_r . More... | |
bool | test (size_type idx_r) const |
Test bit idx_r . More... | |
bool | operator[] (size_type idx_r) const |
Test bit idx_r . More... | |
std::string | asString (const char on_r= '1', const char off_r= '0') const |
String representation. More... | |
operator struct::_Map * () | |
libsolv backdoor More... | |
operator const struct::_Map * () const | |
< libsolv backdoor More... | |
Private Attributes | |
RWCOW_pointer< struct::_Map > | _pimpl |
Pointer to implementation. More... | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const Map &obj) |
bool | operator== (const Map &lhs, const Map &rhs) |
bool | operator!= (const Map &lhs, const Map &rhs) |
Libsolv (bit)Map wrapper.
Requested sizes are filled up to the next multiple of eight. Libsolv bitmaps are not shrinkable.
typedef unsigned long zypp::sat::Map::size_type |
|
explicit |
Map::size_type zypp::sat::Map::size | ( | ) | const |
void zypp::sat::Map::grow | ( | size_type | size_r | ) |
void zypp::sat::Map::assignAll | ( | bool | val_r | ) |
void zypp::sat::Map::clear | ( | size_type | idx_r | ) |
void zypp::sat::Map::assign | ( | size_type | idx_r, |
bool | val_r | ||
) |
bool zypp::sat::Map::test | ( | size_type | idx_r | ) | const |
|
inline |
std::string zypp::sat::Map::asString | ( | const char | on_r = '1' , |
const char | off_r = '0' |
||
) | const |
|
inline |
|
related |
|
private |