Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::Bitset< N >::reference Class Reference

Reference to a single bit in the bitset. More...

#include <Bitset.hh>

Public Member Functions

CELER_CONSTEXPR_FUNCTION reference (Bitset &b, size_type pos) noexcept
 
CELER_CONSTEXPR_FUNCTION reference (reference const &)=default
 
CELER_CONSTEXPR_FUNCTION referenceoperator= (bool x) noexcept
 Assignment for b[i] = x;.
 
CELER_CONSTEXPR_FUNCTION referenceoperator= (reference const &j) noexcept
 Assignment for b[i] = b[j];.
 
CELER_CONSTEXPR_FUNCTION bool operator~ () const noexcept
 Flips the bit.
 
CELER_CONSTEXPR_FUNCTION operator bool () const noexcept
 Conversion for bool x = b[i];.
 
CELER_CONSTEXPR_FUNCTION referenceflip () noexcept
 To support b[i].flip();.
 

Detailed Description

template<size_type N>
class celeritas::Bitset< N >::reference

Reference to a single bit in the bitset.

This is used to implement the mutable operator[].


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