libcommonc++  0.7
BitSet::Bit Class Reference

A "reference" to a bit within a BitSet. More...

#include <BitSet.h++>

Public Member Functions

 Bit (const Bit &other)
 Copy constructor. More...
 
Bitoperator= (const Bit &other)
 Assignment operator. More...
 
Bitoperator= (bool val)
 Assign a value to the bit. More...
 
 ~Bit ()
 Destructor. More...
 
 operator bool () const
 Cast operator. More...
 
Bitflip ()
 Flip the bit. More...
 

Friends

class BitSet
 

Detailed Description

A "reference" to a bit within a BitSet.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ Bit()

Bit ( const Bit other)

Copy constructor.

◆ ~Bit()

~Bit ( )

Destructor.

Member Function Documentation

◆ flip()

BitSet::Bit & flip ( )

Flip the bit.

◆ operator bool()

operator bool ( ) const

Cast operator.

◆ operator=() [1/2]

BitSet::Bit & operator= ( const Bit other)

Assignment operator.

◆ operator=() [2/2]

BitSet::Bit & operator= ( bool  val)

Assign a value to the bit.

Friends And Related Function Documentation

◆ BitSet

friend class BitSet
friend

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