next up previous contents index
Next: 6.3 SsBitSetD Up: 6 Bit arrays and Previous: 6.1 SsBitSet(SsBSLength) - Boolean

6.2 SsBitMatD

   

Name

SsBitMatD - a bit array.

Syntax

class SsBitMatD : public virtual HandleId
{
  int noX;
  int noY;

  Handle(SsBitSetD) bitSet;          // The bit set.

public:
  SsBitMatD();
  SsBitMatD(const int noX_, const int noY_);
  SsBitMatD(const SsBitMatD& bm);
  ~SsBitMatD();

  inline const SsBitMatD& operator= (const SsBitMatD& bm);

  int            getNoX(){return noX;}
  int            getNoY(){return noY;}

  void           reset();
  inline void    set(unsigned int i, unsigned int j);
  inline void    unset(unsigned int i, unsigned int j);
  inline SsBool  isSet(unsigned int i, unsigned int j) const;

  // input and output

  void print (Os os) const;
  void scan  (Is is);

  friend Os& operator << (Os& os, const SsBitMatD& x);
  friend Is& operator >> (Is& is, SsBitMatD& x);
};

Keywords

boolean array , bit set 

Description

SsBitMatD is used to store true/ false values in an array.

Member functions

The member functions set and unset turns the bits on and off respectively. The member reset turns all bits off (default). The member isset returns SsTRUE if the bit was set by set.



next up previous contents index
Next: 6.3 SsBitSetD Up: 6 Bit arrays and Previous: 6.1 SsBitSet(SsBSLength) - Boolean



$addr