API Documentation
Loading...
Searching...
No Matches
BitReference Class Reference

#include <BitReference.hpp>

Public Member Functions

constexpr BitReference (BitFlag &flag, uint01 bit)
 
constexpr BitReference (const BitReference &reference)
 
constexpr bool get () const
 
constexpr void set (const bool &value)
 
constexpr BitReferenceoperator= (const bool &b)
 
constexpr BitReferenceoperator= (const BitReference &b)
 
constexpr BitReferenceoperator|= (const bool &b)
 
constexpr BitReferenceoperator|= (const BitReference &b)
 
constexpr bool operator== (const bool &b) const
 
constexpr bool operator!= (const bool &b) const
 
constexpr operator bool () const
 
constexpr bool operator! () const
 

Constructor & Destructor Documentation

◆ BitReference() [1/2]

BitReference ( BitFlag & flag,
uint01 bit )
inlineconstexpr

◆ BitReference() [2/2]

BitReference ( const BitReference & reference)
inlineconstexpr

Member Function Documentation

◆ get()

bool get ( ) const
inlinenodiscardconstexpr

◆ operator bool()

operator bool ( ) const
inlineconstexpr

◆ operator!()

bool operator! ( ) const
inlineconstexpr

◆ operator!=()

bool operator!= ( const bool & b) const
inlineconstexpr

◆ operator=() [1/2]

BitReference & operator= ( const BitReference & b)
inlineconstexpr

◆ operator=() [2/2]

BitReference & operator= ( const bool & b)
inlineconstexpr

◆ operator==()

bool operator== ( const bool & b) const
inlineconstexpr

◆ operator|=() [1/2]

BitReference & operator|= ( const BitReference & b)
inlineconstexpr

◆ operator|=() [2/2]

BitReference & operator|= ( const bool & b)
inlineconstexpr

◆ set()

void set ( const bool & value)
inlineconstexpr

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