SsBitMatD - a bit array.
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);
};
SsBitMatD is used to store true/ false values
in an array.
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.