Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

base::BitArray Class Reference

Collaboration diagram for base::BitArray:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BitArray (unsigned size)
 BitArray (const BitArray &that)
virtual ~BitArray ()
BitArrayoperator= (const BitArray &that)
BitProxy operator[] (unsigned pos)
const BitProxy operator[] (unsigned pos) const
bool operator== (const BitArray &that) const
bool operator!= (const BitArray &that) const
BitArrayoperator &= (const BitArray &that)
BitArray operator|= (const BitArray &that)
BitArray operator^= (const BitArray &that)
BitArray operator~ () const
void Clear ()
void SetBit (unsigned pos)
void ClearBit (unsigned pos)
void FlipBit (unsigned pos)
void Set (unsigned pos, bool val)
bool IsBitSet (unsigned pos) const
bool AllBitsFalse () const
BitArrayFlipAllBits ()

Friends

class BitProxy
BitArray operator & (const BitArray &a1, const BitArray &a2)
BitArray operator| (const BitArray &a1, const BitArray &a2)
BitArray operator^ (const BitArray &a1, const BitArray &a2)

Constructor & Destructor Documentation

base::BitArray::BitArray unsigned  size  )  [inline, explicit]
 

Definition at line 23 of file BitArray.

Referenced by operator~().

base::BitArray::BitArray const BitArray that  )  [inline]
 

Definition at line 31 of file BitArray.

virtual base::BitArray::~BitArray  )  [inline, virtual]
 

Definition at line 37 of file BitArray.


Member Function Documentation

bool base::BitArray::AllBitsFalse  )  const [inline]
 

Definition at line 180 of file BitArray.

void base::BitArray::Clear  )  [inline]
 

Definition at line 140 of file BitArray.

Referenced by demeter::Terrain::Tessellate().

void base::BitArray::ClearBit unsigned  pos  )  [inline]
 

Definition at line 153 of file BitArray.

References Assert.

Referenced by Set().

BitArray& base::BitArray::FlipAllBits  )  [inline]
 

Definition at line 189 of file BitArray.

void base::BitArray::FlipBit unsigned  pos  )  [inline]
 

Definition at line 160 of file BitArray.

References Assert.

Referenced by base::BitArray::BitProxy::Flip().

bool base::BitArray::IsBitSet unsigned  pos  )  const [inline]
 

Definition at line 173 of file BitArray.

References Assert.

Referenced by base::BitArray::BitProxy::Flip(), base::BitArray::BitProxy::operator bool(), and base::BitArray::BitProxy::operator=().

BitArray& base::BitArray::operator &= const BitArray that  )  [inline]
 

Definition at line 91 of file BitArray.

References Assert, mNumBits, and mpStore.

bool base::BitArray::operator!= const BitArray that  )  const [inline]
 

Definition at line 86 of file BitArray.

BitArray& base::BitArray::operator= const BitArray that  )  [inline]
 

Definition at line 49 of file BitArray.

References mNumBits, and mpStore.

bool base::BitArray::operator== const BitArray that  )  const [inline]
 

Definition at line 75 of file BitArray.

References mNumBits, and mpStore.

const BitProxy base::BitArray::operator[] unsigned  pos  )  const [inline]
 

Definition at line 69 of file BitArray.

References Assert, and BitProxy.

BitProxy base::BitArray::operator[] unsigned  pos  )  [inline]
 

Definition at line 63 of file BitArray.

References Assert, and BitProxy.

BitArray base::BitArray::operator^= const BitArray that  )  [inline]
 

Definition at line 107 of file BitArray.

References Assert, mNumBits, and mpStore.

BitArray base::BitArray::operator|= const BitArray that  )  [inline]
 

Definition at line 99 of file BitArray.

References Assert, mNumBits, and mpStore.

BitArray base::BitArray::operator~  )  const [inline]
 

Definition at line 115 of file BitArray.

References BitArray().

void base::BitArray::Set unsigned  pos,
bool  val
[inline]
 

Definition at line 167 of file BitArray.

References ClearBit(), and SetBit().

Referenced by base::BitArray::BitProxy::operator=().

void base::BitArray::SetBit unsigned  pos  )  [inline]
 

Definition at line 146 of file BitArray.

References Assert.

Referenced by Set().


Friends And Related Function Documentation

friend class BitProxy [friend]
 

Definition at line 202 of file BitArray.

Referenced by operator[]().

BitArray operator & const BitArray a1,
const BitArray a2
[friend]
 

Definition at line 120 of file BitArray.

BitArray operator^ const BitArray a1,
const BitArray a2
[friend]
 

Definition at line 130 of file BitArray.

BitArray operator| const BitArray a1,
const BitArray a2
[friend]
 

Definition at line 125 of file BitArray.


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:38:26 2004 for OpenSim by doxygen 1.3.6