Isle
Loading...
Searching...
No Matches
MxBitset< N >::Reference Class Reference

Proxy class to reference a single bit within the MxBitset. More...

#include <mxbitset.h>

Public Member Functions

ReferenceFlip ()
 Flips the referenced bit (inverts its value). More...
 
bool operator~ () const
 Returns true if the referenced bit is not set. More...
 
 operator bool () const
 Implicit conversion to bool representing the referenced bit. More...
 

Friends

class MxBitset< N >
 

Detailed Description

template<size_t N>
class MxBitset< N >::Reference

Proxy class to reference a single bit within the MxBitset.

[AI]

[AI] Provides a reference-like object returned from operator[] to allow mutation and inspection of individual bits. [AI]

Definition at line 31 of file mxbitset.h.

Member Function Documentation

◆ Flip()

template<size_t N>
Reference & MxBitset< N >::Reference::Flip ( )
inline

Flips the referenced bit (inverts its value).

[AI]

Returns
Reference& Reference to this proxy (facilitates chaining). [AI]

Definition at line 39 of file mxbitset.h.

◆ operator bool()

template<size_t N>
MxBitset< N >::Reference::operator bool ( ) const
inline

Implicit conversion to bool representing the referenced bit.

[AI]

Returns
bool TRUE if the bit is set, FALSE otherwise. [AI]

Definition at line 55 of file mxbitset.h.

◆ operator~()

template<size_t N>
bool MxBitset< N >::Reference::operator~ ( ) const
inline

Returns true if the referenced bit is not set.

[AI]

Returns
bool TRUE if the bit is 0, FALSE if 1. [AI]

Definition at line 49 of file mxbitset.h.

Friends And Related Function Documentation

◆ MxBitset< N >

template<size_t N>
friend class MxBitset< N >
friend

Definition at line 167 of file mxbitset.h.


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