CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

csFlags Class Reference

Set of flags which can be accessed through masks. More...

#include <flags.h>

List of all members.

Public Methods

 csFlags (int Value=0)
 Constructor. More...

void SetAll (unsigned value)
 Initialize all flags to the given mask. More...

void Set (unsigned mask)
 Set all given flags. More...

void Reset (unsigned mask)
 Reset all given flags. More...

void Set (unsigned mask, unsigned value)
 Set all flags with the given mask. More...

void SetBool (unsigned mask, bool value)
 Set all flags with the given value. More...

unsigned Get () const
 Get flags. More...

bool Check (unsigned mask) const
 Check if any of the given flags are set. More...

bool CheckAll (unsigned mask) const
 Check if all the given flags are set. More...


Detailed Description

Set of flags which can be accessed through masks.

Definition at line 25 of file flags.h.


Constructor & Destructor Documentation

csFlags::csFlags int    Value = 0 [inline]
 

Constructor.

Definition at line 33 of file flags.h.


Member Function Documentation

bool csFlags::Check unsigned    mask const [inline]
 

Check if any of the given flags are set.

Definition at line 63 of file flags.h.

bool csFlags::CheckAll unsigned    mask const [inline]
 

Check if all the given flags are set.

Definition at line 67 of file flags.h.

unsigned csFlags::Get   const [inline]
 

Get flags.

Definition at line 59 of file flags.h.

void csFlags::Reset unsigned    mask [inline]
 

Reset all given flags.

Definition at line 44 of file flags.h.

void csFlags::Set unsigned    mask,
unsigned    value
[inline]
 

Set all flags with the given mask.

Definition at line 48 of file flags.h.

void csFlags::Set unsigned    mask [inline]
 

Set all given flags.

Definition at line 40 of file flags.h.

void csFlags::SetAll unsigned    value [inline]
 

Initialize all flags to the given mask.

Definition at line 36 of file flags.h.

void csFlags::SetBool unsigned    mask,
bool    value
[inline]
 

Set all flags with the given value.

Definition at line 52 of file flags.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14