#include <bitmap7.h>
◆ bitmap7()
bitmap7::bitmap7 |
( |
int |
inputmapsize = 0 , |
|
|
int |
recable = 0 |
|
) |
| |
Constructor
- Parameters
-
inputmapsize | size of the bitmap being created |
recable | recoverable flag (RVM persistent) |
◆ ~bitmap7()
◆ CopyRange()
void bitmap7::CopyRange |
( |
int |
start, |
|
|
int |
len, |
|
|
bitmap7 & |
b |
|
) |
| |
Copy a range from one bitmap to another
- Parameters
-
start | start of the range |
len | length of the range |
b | output bitmap |
◆ Count()
Count the number of 1's in the bitmap
- Returns
- number of bits set to 1
◆ FreeIndex()
void bitmap7::FreeIndex |
( |
int |
index | ) |
|
Unset the bit at a particular index
- Parameters
-
index | index of the bit to be unset |
◆ FreeRange()
void bitmap7::FreeRange |
( |
int |
start, |
|
|
int |
len |
|
) |
| |
Unset all the bits at a particular range
- Parameters
-
start | start of the range |
len | length of the range |
◆ GetFreeIndex()
int bitmap7::GetFreeIndex |
( |
| ) |
|
Get an index that is not in use and mark it
- Returns
- index obtained
◆ Grow()
void bitmap7::Grow |
( |
int |
newsize | ) |
|
Grow the bitmap to a new size
- Parameters
-
◆ operator delete()
void bitmap7::operator delete |
( |
void * |
ptr | ) |
|
Delete operator overloading
- Parameters
-
ptr | Pointer of the object to be deleted |
◆ operator new()
void * bitmap7::operator new |
( |
size_t |
size, |
|
|
int |
recable = 0 |
|
) |
| |
New operator overloading
- Parameters
-
size | memory size in bytes |
recable | recoverable flag (RVM persistent) |
- Returns
- pointer to the new allocated object
◆ operator!=()
int bitmap7::operator!= |
( |
bitmap7 & |
b | ) |
|
Test for inequality
- Parameters
-
- Returns
- 0 if both bitmaps are unequal and 1 otherwise
◆ operator=()
void bitmap7::operator= |
( |
bitmap7 & |
b | ) |
|
Deep copy the entire bitmap
- Parameters
-
◆ print() [1/3]
void bitmap7::print |
( |
void |
| ) |
|
Print the bitmap's content to stderr
◆ print() [2/3]
void bitmap7::print |
( |
FILE * |
fp | ) |
|
Print the bitmap's content to a file
- Parameters
-
fp | pointer to the file struct of the file to be written to |
◆ print() [3/3]
void bitmap7::print |
( |
int |
fd | ) |
|
Print the bitmap's content to a file given a file descriptor
- Parameters
-
fd | file descriptor of the file to be written to |
◆ purge()
◆ Resize()
void bitmap7::Resize |
( |
int |
newsize | ) |
|
Resize the bitmap to a new size
- Parameters
-
◆ SetIndex()
void bitmap7::SetIndex |
( |
int |
index | ) |
|
Set the bit at a particular index
- Parameters
-
index | index of the bit to be set |
◆ SetRange()
void bitmap7::SetRange |
( |
int |
start, |
|
|
int |
len |
|
) |
| |
Set all the bits at a particular range
- Parameters
-
start | start of the range |
len | length of the range |
◆ Size()
Obtain the size of the bitmap
- Returns
- size of the bitmap
◆ Value()
int bitmap7::Value |
( |
int |
index | ) |
|
Get the bit's value at a particular index
- Parameters
-
index | index of the bit to be read |
- Returns
- bit's value
The documentation for this class was generated from the following files: