w_bitmap_t Class Reference
[Unused code]

Inherits w_base_t.

Inheritance diagram for w_bitmap_t:

Inheritance graph
[legend]
Collaboration diagram for w_bitmap_t:

Collaboration graph
[legend]
List of all members.

Detailed Description

Bitmaps of arbitrary sizes (in bits). NOT USED by the storage manager.

Definition at line 46 of file w_bitmap.h.

Public Member Functions

NORET w_bitmap_t (uint4_t size)
 construct for size bits
NORET w_bitmap_t (uint1_t *p, uint4_t size)
 construct for size bits, using given pointer to storage
NORET ~w_bitmap_t ()
void zero ()
 clear all bits
void fill ()
 set all bits
void resetPtr (uint1_t *p, uint4_t size)
void set (uint4_t offset)
 set bit at offset
int4_t first_set (uint4_t start) const
 return first set bit after bit at start
uint4_t num_set () const
 return # bits set
bool is_set (uint4_t offset) const
 return true iff bit at offset is set
void clr (uint4_t offset)
 clear bit at offset
int4_t first_clr (uint4_t start) const
 return first clear bit after bit at start
uint4_t num_clr () const
 return # bits clear
bool is_clr (uint4_t offset) const
 return true iff bit at offset is clear
uint4_t size () const
 return size in bits
uint1_taddr ()
 return pointer to the storage area
const uint1_taddr () const
 return const pointer to the storage area

Static Public Member Functions

static int bytesForBits (uint4_t numBits)
 return size in bytes needed for numBits

Friends

ostream & operator<< (ostream &, const w_bitmap_t &)


The documentation for this class was generated from the following files:
Generated on Wed Jul 7 17:22:43 2010 for Shore Storage Manager by  doxygen 1.4.7