Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

TNL::BitSet32 Class Reference

Represents a word of bits. More...

#include <tnlBitSet.h>

List of all members.

Public Methods

 BitSet32 ()
 Default constructor initializes this bit set to all zeros.

 BitSet32 (const BitSet32 &in_rCopy)
 Copy constructor.

 BitSet32 (const U32 in_mask)
 Construct from an input U32.

Accessors
 operator U32 () const
 Returns the U32 representation of the bit set.

U32 getMask () const
 Returns the U32 representation of the bit set.

Mutators
Most of these methods take a word (ie, a BitSet32) of bits to operate with.

void set ()
 Sets all the bits in the bit set to 1.

void set (const U32 m)
 Sets all the bits in the bit set that are set in m.

void set (BitSet32 s, bool b)
 For each bit set in s, sets or clears that bit in this, depending on whether b is true or false.

void clear ()
 Clears all the bits in the bit set to 0.

void clear (const U32 m)
 Clears all the bits in the bit set that are set in m.

void toggle (const U32 m)
 Flips all the bits in the bit set that are set in m.

bool test (const U32 m) const
 Test if the passed bits are set.

bool testStrict (const U32 m) const
 Test if the passed bits and only the passed bits are set.

BitSet32 & operator= (const U32 m)
BitSet32 & operator|= (const U32 m)
BitSet32 & operator &= (const U32 m)
BitSet32 & operator^= (const U32 m)
BitSet32 operator| (const U32 m) const
BitSet32 operator & (const U32 m) const
BitSet32 operator^ (const U32 m) const


Detailed Description

Represents a word of bits.

A helper class to perform operations on a set of 32 bits.

Definition at line 40 of file tnlBitSet.h.


The documentation for this class was generated from the following file:
Generated on Thu Aug 18 16:03:36 2005 for Robin Hood: Thieves & Knights by doxygen1.2.18