home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 March / ENTER.ISO / files / fwp-0.0.6-win32-installer.exe / BitSet.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-12-06  |  336 b   |  22 lines

  1. #ifndef __BitSet_h__
  2. #define __BitSet_h__
  3.  
  4. class BitSet{
  5. public:
  6.     BitSet(unsigned int size);
  7.     ~BitSet();
  8.  
  9.     void clear(unsigned int n);
  10.     void clearAll();
  11.     void set(unsigned int n);
  12.     void setAll();
  13.     bool isSet(unsigned int n);
  14.  
  15. protected:
  16.     unsigned char* bytes;
  17.     unsigned int numBytes;
  18. };
  19.  
  20. #endif    /* __BitSet_h__ */
  21.  
  22.