paludis Version 3.0.2
The one true package mangler
paludis::Options< E_ > Class Template Reference

#include <options.hh>

Public Member Functions

 Options (const Options &)=default
Options & operator= (const Options &)=default
 Options (std::initializer_list< E_ > e)
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 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

Detailed Description

template<typename E_>
class paludis::Options< E_ >

Holds a series of true/false values mapped on an enum type, like a std::bitset<> without the static size requirement.

Member Function Documentation

◆ any()

template<typename E_>
bool paludis::Options< E_ >::any ( ) const
inline

Returns whether any bit is enabled.

◆ highest_bit()

template<typename E_>
E_ paludis::Options< E_ >::highest_bit ( ) const
inline

Return the value of the highest bit that might be enabled.

Since
0.40.1

◆ none()

template<typename E_>
bool paludis::Options< E_ >::none ( ) const
inline

Returns whether all bits are disabled.

◆ operator&()

template<typename E_>
Options paludis::Options< E_ >::operator& ( const Options< E_ > & e) const
inline

Return a copy of ourself, bitwise 'and'ed with another Options set.

◆ operator&=()

template<typename E_>
Options & paludis::Options< E_ >::operator&= ( const Options< E_ > & e)
inline

Disable any bits that are not enabled in the parameter.

◆ operator+()

template<typename E_>
Options paludis::Options< E_ >::operator+ ( const E_ & e) const
inline

Return a copy of ourself with the specified bit enabled.

◆ operator+=()

template<typename E_>
Options & paludis::Options< E_ >::operator+= ( const E_ & e)
inline

Enable the specified bit.

◆ operator-()

template<typename E_>
Options paludis::Options< E_ >::operator- ( const E_ & e) const
inline

Return a copy of ourself with the specified bit disabled.

◆ operator-=()

template<typename E_>
Options & paludis::Options< E_ >::operator-= ( const E_ & e)
inline

Disable the specified bit.

◆ operator[]()

template<typename E_>
bool paludis::Options< E_ >::operator[] ( const E_ & e) const
inline

Returns whether the specified bit is enabled.

◆ operator|()

template<typename E_>
Options paludis::Options< E_ >::operator| ( const Options< E_ > & e) const
inline

Return a copy of ourself, bitwise 'or'ed with another Options set.

◆ operator|=()

template<typename E_>
Options & paludis::Options< E_ >::operator|= ( const Options< E_ > & e)
inline

Enable any bits that are enabled in the parameter.

◆ subtract()

template<typename E_>
Options & paludis::Options< E_ >::subtract ( const Options< E_ > & e)
inline

Disable any bits that are enabled in the parameter.

Referenced by paludis::Options< FetchPart >::subtract().


The documentation for this class was generated from the following files: