21 #include "copyright.h" 46 void Mark (
int which);
49 void Clear (
int which);
52 bool Test (
int which);
void WriteBack(OpenFile *file)
write contents to disk
Definition: bitmap.cc:169
bool Test(int which)
Is the "nth" bit set?
Definition: bitmap.cc:82
void FetchFrom(OpenFile *file)
fetch contents from disk
Definition: bitmap.cc:156
void Mark(int which)
Set the "nth" bit.
Definition: bitmap.cc:54
void Print()
Print contents of bitmap.
Definition: bitmap.cc:139
~BitMap()
initially, all bits are cleared.
Definition: bitmap.cc:38
Data structures for opening, closing, reading and writing.
void Clear(int which)
Clear the "nth" bit.
Definition: bitmap.cc:68
int NumClear()
Return the number of clear bits.
Definition: bitmap.cc:120
The following class defines a "bitmap" – an array of bits, each of which can be independently set...
Definition: bitmap.h:36
Definition: openfile.h:77
Miscellaneous useful definitions, including debugging routines.
BitMap(int nitems)
Initialize a bitmap, with "nitems" bits.
Definition: bitmap.cc:24
int Find()
Return the # of a clear bit, and as a side.
Definition: bitmap.cc:102