Main Page Compound List File List Compound Members File Members
bitmap.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef BITMAP_H
00016 #define BITMAP_H
00017
00018 #include "copyright.h"
00019 #include "utility.h"
00020 #include "openfile.h"
00021
00022
00023 #define BitsInByte 8
00024 #define BitsInWord 32
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 class BitMap {
00035 public:
00036 BitMap(int nitems);
00037
00038 ~BitMap();
00039
00040 void Mark(int which);
00041 void Clear(int which);
00042 bool Test(int which);
00043 int Find();
00044
00045
00046 int NumClear();
00047
00048 void Print();
00049
00050
00051
00052 void FetchFrom(OpenFile *file);
00053 void WriteBack(OpenFile *file);
00054
00055 private:
00056 int numBits;
00057 int numWords;
00058
00059
00060
00061 unsigned int *map;
00062 };
00063
00064 #endif // BITMAP_H
Generated on Mon Feb 10 09:54:44 2003 for nachos by
1.2.14 written by Dimitri van Heesch,
© 1997-2002
The University of Southern California does not screen or control the content on this website and thus does not guarantee the accuracy, integrity, or quality of such content. All content on this website is provided by and is the sole responsibility of the person from which such content originated, and such content does not necessarily reflect the opinions of the University administration or the Board of Trustees