#include <options.hh>
Public Member Functions | |
Options | operator+ (const E_ &e) const |
Options & | operator+= (const E_ &e) |
Options | operator- (const E_ &e) const |
Options & | operator-= (const E_ &e) |
Options | operator| (const Options< E_ > &e) const |
Options & | operator|= (const Options< E_ > &e) |
Options & | subtract (const Options< E_ > &e) |
bool | operator[] (const E_ &e) const |
bool | any () const |
bool | none () const |
E_ | highest_bit () const |
example_dep_spec.cc, example_match_package.cc, and example_selection.cc.
Options paludis::Options< E_ >::operator+ | ( | const E_ & | e | ) | const [inline] |
Return a copy of ourself with the specified bit enabled.
Options& paludis::Options< E_ >::operator+= | ( | const E_ & | e | ) | [inline] |
Enable the specified bit.
Options paludis::Options< E_ >::operator- | ( | const E_ & | e | ) | const [inline] |
Return a copy of ourself with the specified bit disabled.
Options& paludis::Options< E_ >::operator-= | ( | const E_ & | e | ) | [inline] |
Disable the specified bit.
Options paludis::Options< E_ >::operator| | ( | const Options< E_ > & | e | ) | const [inline] |
Return a copy of ourself, bitwise 'or'ed with another Options set.
Options& paludis::Options< E_ >::operator|= | ( | const Options< E_ > & | e | ) | [inline] |
Enable any bits that are enabled in the parameter.
Options& paludis::Options< E_ >::subtract | ( | const Options< E_ > & | e | ) | [inline] |
Disable any bits that are enabled in the parameter.
bool paludis::Options< E_ >::operator[] | ( | const E_ & | e | ) | const [inline] |
Returns whether the specified bit is enabled.
bool paludis::Options< E_ >::any | ( | ) | const [inline] |
Returns whether any bit is enabled.
bool paludis::Options< E_ >::none | ( | ) | const [inline] |
Returns whether all bits are disabled.
E_ paludis::Options< E_ >::highest_bit | ( | ) | const [inline] |
Return the value of the highest bit that might be enabled.