Public Types | Public Member Functions

avmplus::BitSet Class Reference

Bit vectors are an efficent method of keeping True/False information on a set of items or conditions. More...

#include <avmplus.h>

List of all members.

Public Types

enum  { kUnit = 8*sizeof(long), kDefaultCapacity = 4 }

Public Member Functions

 BitSet ()
 ~BitSet ()
void reset ()
void set (int bitNbr)
void clear (int bitNbr)
bool get (int bitNbr) const

Detailed Description

Bit vectors are an efficent method of keeping True/False information on a set of items or conditions.

Class BitSet provides functions to manipulate individual bits in the vector.

Since most vectors are rather small an array of longs is used by default to house the value of the bits. If more bits are needed then an array is allocated dynamically outside of this object.

This object is not optimized for a fixed sized bit vector it instead allows for dynamically growing the bit vector.


Member Enumeration Documentation

anonymous enum
Enumerator:
kUnit 
kDefaultCapacity 

Constructor & Destructor Documentation

avmplus::BitSet::BitSet (  )  [inline]
avmplus::BitSet::~BitSet (  )  [inline]

Member Function Documentation

void avmplus::BitSet::clear ( int  bitNbr  )  [inline]
bool avmplus::BitSet::get ( int  bitNbr  )  const [inline]
void avmplus::BitSet::reset (  )  [inline]
void avmplus::BitSet::set ( int  bitNbr  )  [inline]

Member Data Documentation

long avmplus::BitSet::ar[kDefaultCapacity]

The documentation for this class was generated from the following file: