KMIME Library
#include <boolflags.h>
Public Member Functions | |
| BoolFlags () | |
| ~BoolFlags () | |
| void | clear () | 
| unsigned char * | data () | 
| bool | get (unsigned int i) | 
| void | set (unsigned int i, bool b=true) | 
Detailed Description
Provides a class for storing boolean values in single bytes.
This class provides functionality similar to QBitArray but requires much less memory. Only 16-bits (or 2-bytes) can be stored.
Definition at line 44 of file boolflags.h.
Constructor & Destructor Documentation
      
  | 
  inline | 
Constructs an empty 2-byte flag storage.
Definition at line 50 of file boolflags.h.
      
  | 
  inline | 
Destroys the flag storage.
Definition at line 55 of file boolflags.h.
Member Function Documentation
      
  | 
  inline | 
Sets all bits to false.
Definition at line 79 of file boolflags.h.
      
  | 
  inline | 
Returns a pointer to the data structure used to store the bits.
Definition at line 84 of file boolflags.h.
| bool BoolFlags::get | ( | unsigned int | i | ) | 
Get bit number i. 
- Parameters
 - 
  
i is the bit number. Valid values are 0 through 15. Higher values all return false. 
- Returns
 - Value of the single bit 
i. Invalid bit numbers returnfalse. 
Definition at line 59 of file boolflags.cpp.
| void BoolFlags::set | ( | unsigned int | i, | 
| bool | b = true  | 
        ||
| ) | 
Sets bit number i to the value b. 
- Parameters
 - 
  
i is the bit number. Valid values are 0 through 15. Higher values will be silently ignored. b is the value to set for bit i. 
Definition at line 35 of file boolflags.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
    KDE API Reference