|
paludis Version 3.0.2
The one true package mangler
|
#include <options.hh>
Basic operations | |
| OptionsStore (const OptionsStore &)=default | |
| OptionsStore & | operator= (const OptionsStore &)=default |
Modifications | |
| void | add (const unsigned) |
| void | remove (const unsigned) |
| void | combine (const OptionsStore &) |
| void | subtract (const OptionsStore &) |
| void | intersect (const OptionsStore &) |
Tests | |
| bool | test (const unsigned) const |
| bool | any () const |
| unsigned | highest_bit () const |
Used by Options<> for underlying storage.
Holds a collection of bits, similar to std::bitset<>, but with no fixed underlying size.
| void paludis::OptionsStore::add | ( | const unsigned | ) |
Set the specified bit.
Referenced by paludis::Options< FetchPart >::operator+().
| bool paludis::OptionsStore::any | ( | ) | const |
Is any bit set?
| void paludis::OptionsStore::combine | ( | const OptionsStore & | ) |
Set any bit that is set in the parameter.
Referenced by paludis::Options< FetchPart >::operator|().
| unsigned paludis::OptionsStore::highest_bit | ( | ) | const |
The highest bit that might be set.
| void paludis::OptionsStore::intersect | ( | const OptionsStore & | ) |
Unset any bit that is not set in the parameter.
Referenced by paludis::Options< FetchPart >::operator&().
| void paludis::OptionsStore::remove | ( | const unsigned | ) |
Unset the specified bit.
Referenced by paludis::Options< FetchPart >::operator-().
| void paludis::OptionsStore::subtract | ( | const OptionsStore & | ) |
Unset any bit that is set in the parameter.
| bool paludis::OptionsStore::test | ( | const unsigned | ) | const |
Is a particular bit set?