paludis::Options< E_ > Class Template Reference
[Data Structures]

#include <options.hh>

List of all members.

Public Member Functions

Options operator+ (const E_ &e) const
Optionsoperator+= (const E_ &e)
Options operator- (const E_ &e) const
Optionsoperator-= (const E_ &e)
Options operator| (const Options< E_ > &e) const
Optionsoperator|= (const Options< E_ > &e)
Optionssubtract (const Options< E_ > &e)
bool operator[] (const E_ &e) const
bool any () const
bool none () 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.
Examples:

example_action.cc, example_contents.cc, example_dep_spec.cc, example_formatter.cc, example_mask.cc, example_match_package.cc, example_metadata_key.cc, example_package_id.cc, example_selection.cc, and example_stringify_formatter.cc.


Member Function Documentation

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

Returns whether any bit is enabled.

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

Returns whether all bits are disabled.

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

Return a copy of ourself with the specified bit enabled.

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

Enable the specified bit.

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

Return a copy of ourself with the specified bit disabled.

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

Disable the specified bit.

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

Returns whether the specified bit is enabled.

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.

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

Enable any bits that are enabled in the parameter.

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

Disable any bits that are enabled in the parameter.


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

Generated on Mon Dec 22 19:43:56 2008 for paludis by  doxygen 1.5.7.1