paludis  Version 2.6.0
List of all members
paludis::OptionsStore Class Reference

#include <options.hh>

Basic operations

 OptionsStore ()
 
 OptionsStore (const OptionsStore &)
 
const OptionsStoreoperator= (const OptionsStore &)
 
 ~OptionsStore ()
 

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
 

Detailed Description

Used by Options<> for underlying storage.

Holds a collection of bits, similar to std::bitset<>, but with no fixed underlying size.

See also
Options<>

Member Function Documentation

void paludis::OptionsStore::add ( const unsigned  )
bool paludis::OptionsStore::any ( ) const
void paludis::OptionsStore::combine ( const OptionsStore )

Set any bit that is set in the parameter.

Referenced by paludis::Options< E_ >::operator|(), and paludis::Options< E_ >::operator|=().

unsigned paludis::OptionsStore::highest_bit ( ) const

The highest bit that might be set.

Since
0.40.1

Referenced by paludis::Options< E_ >::highest_bit().

void paludis::OptionsStore::intersect ( const OptionsStore )

Unset any bit that is not set in the parameter.

Referenced by paludis::Options< E_ >::operator&(), and paludis::Options< E_ >::operator&=().

void paludis::OptionsStore::remove ( const unsigned  )

Unset the specified bit.

Referenced by paludis::Options< E_ >::operator-(), and paludis::Options< E_ >::operator-=().

void paludis::OptionsStore::subtract ( const OptionsStore )

Unset any bit that is set in the parameter.

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

bool paludis::OptionsStore::test ( const unsigned  ) const

Is a particular bit set?

Referenced by paludis::Options< E_ >::operator[]().


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