home *** CD-ROM | disk | FTP | other *** search
- // bitstr.h: The C++ bitstring class
-
- class bitstring
- {
- public:
- // Helper class for operator[]
- class bitref
- {
- friend class bitstring;
-
- bitstring &bs;
- size_t bit;
- bitref(bitstring& bs_, size_t bit_);
-
- public:
- int operator=(int);
- operator int();
- };
-
- // Subscripting
- bitref operator[](size_t pos);
-
- // The definition of bitstring continues here...
- // (See "Bit Manipulation in C++, Part 1", CUJ, Dec. 1993)
- };
-
-