mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Private Types | Private Attributes
m::SmallBitset::Proxy< C > Struct Template Reference

A proxy to access single elements in SmallBitset. More...

#include <ADT.hpp>

Collaboration diagram for m::SmallBitset::Proxy< C >:
[legend]

Public Member Functions

 Proxy (reference_type S, std::size_t offset)
 
 operator bool () const
 
template<bool C_ = Is_Const>
requires (not C_)
Proxyoperator= (bool val)
 
Proxyoperator= (const Proxy &other)
 

Static Public Attributes

static constexpr bool Is_Const = C
 

Private Types

using reference_type = std::conditional_t< Is_Const, const SmallBitset &, SmallBitset & >
 

Private Attributes

reference_type S_
 
std::size_t offset_
 

Detailed Description

template<bool C>
struct m::SmallBitset::Proxy< C >

A proxy to access single elements in SmallBitset.

Definition at line 31 of file ADT.hpp.

Member Typedef Documentation

◆ reference_type

template<bool C>
using m::SmallBitset::Proxy< C >::reference_type = std::conditional_t<Is_Const, const SmallBitset&, SmallBitset&>
private

Definition at line 36 of file ADT.hpp.

Constructor & Destructor Documentation

◆ Proxy()

template<bool C>
m::SmallBitset::Proxy< C >::Proxy ( reference_type  S,
std::size_t  offset 
)
inline

Definition at line 42 of file ADT.hpp.

References m::SmallBitset::CAPACITY, M_insist, and m::SmallBitset::Proxy< C >::offset_.

Member Function Documentation

◆ operator bool()

template<bool C>
m::SmallBitset::Proxy< C >::operator bool ( ) const
inline

Definition at line 44 of file ADT.hpp.

References m::SmallBitset::Proxy< C >::offset_, and m::SmallBitset::Proxy< C >::S_.

◆ operator=() [1/2]

template<bool C>
template<bool C_ = Is_Const>
requires (not C_)
Proxy & m::SmallBitset::Proxy< C >::operator= ( bool  val)
inline

◆ operator=() [2/2]

template<bool C>
Proxy & m::SmallBitset::Proxy< C >::operator= ( const Proxy< C > &  other)
inline

Field Documentation

◆ Is_Const

template<bool C>
constexpr bool m::SmallBitset::Proxy< C >::Is_Const = C
staticconstexpr

Definition at line 33 of file ADT.hpp.

Referenced by m::SmallBitset::Proxy< C >::operator=().

◆ offset_

template<bool C>
std::size_t m::SmallBitset::Proxy< C >::offset_
private

◆ S_

template<bool C>
reference_type m::SmallBitset::Proxy< C >::S_
private

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