paludis::OptionsStore Class Reference
[Data Structures]

#include <options.hh>

Inheritance diagram for paludis::OptionsStore:

paludis::PrivateImplementationPattern< C_ >

List of all members.

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 &)

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  ) 

Set the specified bit.

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

Unset the specified bit.

void paludis::OptionsStore::combine ( const OptionsStore  ) 

Set any bit that is set in the parameter.

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?

bool paludis::OptionsStore::any (  )  const

Is any bit set?

unsigned paludis::OptionsStore::highest_bit (  )  const

The highest bit that might be set.

Since:
0.40.1


The documentation for this class was generated from the following file:
Generated on Mon Sep 21 10:36:11 2009 for paludis by  doxygen 1.5.4