| | | | | |

Defining Class BitVector - 1: API

namespace fsu
{
  class BitVector
  {
  public:
    void Set   (size_t index);        // make index bit = 1
    void Set   ();                    // make all bits = 1
    void Unset (size_t index);        // make index bit = 0
    void Unset ();                    // make all bits = 0
    void Flip  (size_t index);        // flip index bit (change value of bit)
    void Flip  ();                    // flip all bits 
    bool Test  (size_t index) const;  // return index bit value
    ...
  };
} // namespace fsu

| | Top of Page | 7. A BitVector Class - 4 of 14