Main Page | Class Hierarchy | Class List | File List | Class Members

BitFlags Class Reference

#include <BitFlags.h>

List of all members.

Public Types

typedef unsigned int Flags

Public Member Functions

 BitFlags ()
 Constructor. Turns off all the flags.
 BitFlags (const Flags flags)
void set (const Flags flags)
Flags get () const
bool all (const Flags flags) const
bool any (const Flags flags) const


Detailed Description

Class implementing bit flags.


Constructor & Destructor Documentation

BitFlags::BitFlags const Flags  flags  )  [inline]
 

Constructor. Flags are set according to the given parameter.

Parameters:
flags the flags to initialize the object with.


Member Function Documentation

bool BitFlags::all const Flags  flags  )  const [inline]
 

Check whether all the flags in a set are turned on.

Parameters:
flags the set of flags to be checked.
Returns:
`true' if all the given flags are set, `false' otherwise.

bool BitFlags::any const Flags  flags  )  const [inline]
 

Check whether any of the flags in a set are turned on.

Parameters:
flags the set of flags to be checked.
Returns:
`true' if any of the given flags is set, `false' otherwise.

Flags BitFlags::get  )  const [inline]
 

Get the current value of all the statistics-related flags.

Returns:
the current flags.

void BitFlags::set const Flags  flags  )  [inline]
 

Set the flags to a certain set of values. Best used in conjunction with get().

Parameters:
flags the new value of the flags.


The documentation for this class was generated from the following file:
Generated on Wed May 25 12:21:16 2005 for csp.kdevelop by  doxygen 1.3.9.1