sparrow 0.3.0
Loading...
Searching...
No Matches
sparrow::bitset_reference< B > Class Template Reference

Reference proxy used by the bitset_iterator class to make it possible to assign a bit of a bitset as a regular reference. More...

#include <bitset_reference.hpp>

Public Types

using self_type = bitset_reference<B>
 

Public Member Functions

constexpr bitset_reference (const bitset_reference &) noexcept=default
 
constexpr bitset_reference (bitset_reference &&) noexcept=default
 
constexpr self_typeoperator= (const self_type &) noexcept
 
constexpr self_typeoperator= (self_type &&) noexcept
 
constexpr self_typeoperator= (bool) noexcept
 
constexpr operator bool () const noexcept
 
constexpr bool operator~ () const noexcept
 
constexpr self_typeoperator&= (bool) noexcept
 
constexpr self_typeoperator|= (bool) noexcept
 
constexpr self_typeoperator^= (bool) noexcept
 

Friends

class bitset_iterator< B, false >
 
template<typename RAR>
class dynamic_bitset_base
 

Detailed Description

template<class B>
class sparrow::bitset_reference< B >

Reference proxy used by the bitset_iterator class to make it possible to assign a bit of a bitset as a regular reference.

Template Parameters
Bthe dynamic_bitset containing the bit this class refers to.

Definition at line 32 of file bitset_reference.hpp.

Member Typedef Documentation

◆ self_type

template<class B>
using sparrow::bitset_reference< B >::self_type = bitset_reference<B>

Definition at line 36 of file bitset_reference.hpp.

Constructor & Destructor Documentation

◆ bitset_reference() [1/2]

template<class B>
sparrow::bitset_reference< B >::bitset_reference ( const bitset_reference< B > & )
constexprdefaultnoexcept
Here is the caller graph for this function:

◆ bitset_reference() [2/2]

template<class B>
sparrow::bitset_reference< B >::bitset_reference ( bitset_reference< B > && )
constexprdefaultnoexcept

Member Function Documentation

◆ operator bool()

template<class B>
sparrow::bitset_reference< B >::operator bool ( ) const
constexprnoexcept

Definition at line 102 of file bitset_reference.hpp.

Here is the call graph for this function:

◆ operator&=()

template<class B>
auto sparrow::bitset_reference< B >::operator&= ( bool rhs)
constexprnoexcept

Definition at line 118 of file bitset_reference.hpp.

◆ operator=() [1/3]

template<class B>
auto sparrow::bitset_reference< B >::operator= ( bool rhs)
constexprnoexcept

Definition at line 95 of file bitset_reference.hpp.

◆ operator=() [2/3]

template<class B>
auto sparrow::bitset_reference< B >::operator= ( const self_type & rhs)
constexprnoexcept

Definition at line 81 of file bitset_reference.hpp.

Here is the call graph for this function:

◆ operator=() [3/3]

template<class B>
auto sparrow::bitset_reference< B >::operator= ( self_type && rhs)
constexprnoexcept

Definition at line 88 of file bitset_reference.hpp.

◆ operator^=()

template<class B>
auto sparrow::bitset_reference< B >::operator^= ( bool rhs)
constexprnoexcept

Definition at line 138 of file bitset_reference.hpp.

◆ operator|=()

template<class B>
auto sparrow::bitset_reference< B >::operator|= ( bool rhs)
constexprnoexcept

Definition at line 128 of file bitset_reference.hpp.

◆ operator~()

template<class B>
bool sparrow::bitset_reference< B >::operator~ ( ) const
constexprnoexcept

Definition at line 112 of file bitset_reference.hpp.

Friends And Related Symbol Documentation

◆ bitset_iterator< B, false >

template<class B>
friend class bitset_iterator< B, false >
friend

Definition at line 66 of file bitset_reference.hpp.

◆ dynamic_bitset_base

template<class B>
template<typename RAR>
friend class dynamic_bitset_base
friend

Definition at line 71 of file bitset_reference.hpp.


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