libzypp 17.31.23
|
Libsolv (bit)Map wrapper. More...
#include <sat/Map.h>
Classes | |
struct | PoolSizeType |
Type to indicate the bitmap should match the current pools capacity. More... | |
Public Types | |
typedef unsigned long | size_type |
Public Member Functions | |
Map () | |
Default ctor: empty Map. | |
Map (size_type size_r) | |
Ctor taking the Map size. | |
Map (PoolSizeType) | |
Ctor creating a Map matching the current pools capacity. | |
~Map () | |
Dtor. | |
bool | empty () const |
Whether Map is empty. | |
size_type | size () const |
Size of the Map. | |
void | grow (size_type size_r) |
Grow the Map if necessary. | |
void | setAll () |
Set all bits. | |
void | clearAll () |
Clear all bits. | |
void | assignAll (bool val_r) |
Assign val_r to all bits. | |
void | set (size_type idx_r) |
Set bit idx_r . | |
void | clear (size_type idx_r) |
Clear bit idx_r . | |
void | assign (size_type idx_r, bool val_r) |
Assign val_r to 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 . | |
std::string | asString (const char on_r='1', const char off_r='0') const |
String representation. | |
operator detail::CMap * () | |
libsolv backdoor | |
operator const detail::CMap * () const | |
< libsolv backdoor | |
Static Public Attributes | |
static constexpr PoolSizeType | poolSize = PoolSizeType() |
An object indicating the bitmap should match the current pools capacity. | |
Private Attributes | |
RWCOW_pointer< detail::CMap > | _pimpl |
Pointer to implementation. | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const Map &obj) |
Stream output. | |
bool | operator== (const Map &lhs, const Map &rhs) |
bool | operator!= (const Map &lhs, const Map &rhs) |
Libsolv (bit)Map wrapper.
\Note 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 |
zypp::sat::Map::Map | ( | PoolSizeType | ) |
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::set | ( | size_type | idx_r | ) |
void zypp::sat::Map::clear | ( | size_type | idx_r | ) |
std::string zypp::sat::Map::asString | ( | const char | on_r = '1' , |
const char | off_r = '0' |
||
) | const |
zypp::sat::Map::operator detail::CMap * | ( | ) |
|
inline |
|
related |
|
staticconstexpr |
|
private |