libHSPlasma
Public Member Functions | List of all members
hsBitVector::Bit Class Reference

References an individual bit within an hsBitVector. More...

#include <hsBitVector.h>

Public Member Functions

 Bit (hsBitVector *vec, unsigned int off)
 operator bool () const
bool operator! () const
bool operator== (bool value) const
Bitoperator= (bool value)

Detailed Description

References an individual bit within an hsBitVector.

This class is used internally by hsBitVector to enable easier access to individual bits. It allows you to assign bool values to subscripts of the Bit Vector directly, instead of needing the set() method.

Constructor & Destructor Documentation

hsBitVector::Bit::Bit ( hsBitVector vec,
unsigned int  off 
)

Constructs the Bit class

Member Function Documentation

hsBitVector::Bit::operator bool ( ) const

Behave like a bool rvalue

bool hsBitVector::Bit::operator! ( ) const

Negation operator

Bit& hsBitVector::Bit::operator= ( bool  value)

Assignment operator – modifies the hsBitVector

bool hsBitVector::Bit::operator== ( bool  value) const

Comparison operator


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