libstdc++
std::_Base_bitset< _Nw > Struct Template Reference

Public Types

typedef unsigned long _WordT
 

Public Member Functions

constexpr _Base_bitset (unsigned long long __val) noexcept
 
template<size_t _Nb>
bool _M_are_all () const noexcept
 
void _M_do_and (const _Base_bitset< _Nw > &__x) noexcept
 
size_t _M_do_count () const noexcept
 
size_t _M_do_find_first (size_t) const noexcept
 
size_t _M_do_find_next (size_t, size_t) const noexcept
 
void _M_do_flip () noexcept
 
void _M_do_left_shift (size_t __shift) noexcept
 
void _M_do_or (const _Base_bitset< _Nw > &__x) noexcept
 
void _M_do_reset () noexcept
 
void _M_do_right_shift (size_t __shift) noexcept
 
void _M_do_set () noexcept
 
unsigned long long _M_do_to_ullong () const
 
unsigned long _M_do_to_ulong () const
 
void _M_do_xor (const _Base_bitset< _Nw > &__x) noexcept
 
const _WordT * _M_getdata () const noexcept
 
constexpr _WordT _M_getword (size_t __pos) const noexcept
 
_WordT & _M_getword (size_t __pos) noexcept
 
constexpr _WordT _M_hiword () const noexcept
 
_WordT & _M_hiword () noexcept
 
bool _M_is_any () const noexcept
 
bool _M_is_equal (const _Base_bitset< _Nw > &__x) const noexcept
 

Static Public Member Functions

static constexpr _WordT _S_maskbit (size_t __pos) noexcept
 
static constexpr size_t _S_whichbit (size_t __pos) noexcept
 
static constexpr size_t _S_whichbyte (size_t __pos) noexcept
 
static constexpr size_t _S_whichword (size_t __pos) noexcept
 

Public Attributes

_WordT _M_w [_Nw]
 

Detailed Description

template<size_t _Nw>
struct std::_Base_bitset< _Nw >

Base class, general case. It is a class invariant that _Nw will be nonnegative.

See documentation for bitset.

Definition at line 75 of file bitset.

Member Typedef Documentation

◆ _WordT

template<size_t _Nw>
typedef unsigned long std::_Base_bitset< _Nw >::_WordT

Definition at line 77 of file bitset.

Constructor & Destructor Documentation

◆ _Base_bitset() [1/2]

template<size_t _Nw>
constexpr std::_Base_bitset< _Nw >::_Base_bitset ( )
inlineconstexprnoexcept

Definition at line 82 of file bitset.

◆ _Base_bitset() [2/2]

template<size_t _Nw>
constexpr std::_Base_bitset< _Nw >::_Base_bitset ( unsigned long long  __val)
inlineconstexprnoexcept

Definition at line 86 of file bitset.

Member Function Documentation

◆ _M_are_all()

template<size_t _Nw>
template<size_t _Nb>
bool std::_Base_bitset< _Nw >::_M_are_all ( ) const
inlinenoexcept

Definition at line 192 of file bitset.

◆ _M_do_and()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_and ( const _Base_bitset< _Nw > &  __x)
inlinenoexcept

Definition at line 137 of file bitset.

◆ _M_do_count()

template<size_t _Nw>
size_t std::_Base_bitset< _Nw >::_M_do_count ( ) const
inlinenoexcept

Definition at line 212 of file bitset.

◆ _M_do_find_first()

template<size_t _Nw>
size_t std::_Base_bitset< _Nw >::_M_do_find_first ( size_t  __not_found) const
noexcept

Definition at line 320 of file bitset.

◆ _M_do_find_next()

template<size_t _Nw>
size_t std::_Base_bitset< _Nw >::_M_do_find_next ( size_t  __prev,
size_t  __not_found 
) const
noexcept

Definition at line 336 of file bitset.

◆ _M_do_flip()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_flip ( )
inlinenoexcept

Definition at line 164 of file bitset.

◆ _M_do_left_shift()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_left_shift ( size_t  __shift)
noexcept

Definition at line 240 of file bitset.

◆ _M_do_or()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_or ( const _Base_bitset< _Nw > &  __x)
inlinenoexcept

Definition at line 144 of file bitset.

◆ _M_do_reset()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_reset ( )
inlinenoexcept

Definition at line 178 of file bitset.

◆ _M_do_right_shift()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_right_shift ( size_t  __shift)
noexcept

Definition at line 266 of file bitset.

◆ _M_do_set()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_set ( )
inlinenoexcept

Definition at line 171 of file bitset.

◆ _M_do_to_ullong()

template<size_t _Nw>
unsigned long long std::_Base_bitset< _Nw >::_M_do_to_ullong

Definition at line 304 of file bitset.

◆ _M_do_to_ulong()

template<size_t _Nw>
unsigned long std::_Base_bitset< _Nw >::_M_do_to_ulong

Definition at line 293 of file bitset.

◆ _M_do_xor()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_xor ( const _Base_bitset< _Nw > &  __x)
inlinenoexcept

Definition at line 151 of file bitset.

◆ _M_getdata()

template<size_t _Nw>
const _WordT * std::_Base_bitset< _Nw >::_M_getdata ( ) const
inlinenoexcept

Definition at line 124 of file bitset.

◆ _M_getword() [1/2]

template<size_t _Nw>
constexpr _WordT std::_Base_bitset< _Nw >::_M_getword ( size_t  __pos) const
inlineconstexprnoexcept

Definition at line 119 of file bitset.

◆ _M_getword() [2/2]

template<size_t _Nw>
_WordT & std::_Base_bitset< _Nw >::_M_getword ( size_t  __pos)
inlinenoexcept

Definition at line 115 of file bitset.

◆ _M_hiword() [1/2]

template<size_t _Nw>
constexpr _WordT std::_Base_bitset< _Nw >::_M_hiword ( ) const
inlineconstexprnoexcept

Definition at line 133 of file bitset.

◆ _M_hiword() [2/2]

template<size_t _Nw>
_WordT & std::_Base_bitset< _Nw >::_M_hiword ( )
inlinenoexcept

Definition at line 129 of file bitset.

◆ _M_is_any()

template<size_t _Nw>
bool std::_Base_bitset< _Nw >::_M_is_any ( ) const
inlinenoexcept

Definition at line 203 of file bitset.

◆ _M_is_equal()

template<size_t _Nw>
bool std::_Base_bitset< _Nw >::_M_is_equal ( const _Base_bitset< _Nw > &  __x) const
inlinenoexcept

Definition at line 182 of file bitset.

◆ _S_maskbit()

template<size_t _Nw>
static constexpr _WordT std::_Base_bitset< _Nw >::_S_maskbit ( size_t  __pos)
inlinestaticconstexprnoexcept

Definition at line 111 of file bitset.

◆ _S_whichbit()

template<size_t _Nw>
static constexpr size_t std::_Base_bitset< _Nw >::_S_whichbit ( size_t  __pos)
inlinestaticconstexprnoexcept

Definition at line 107 of file bitset.

◆ _S_whichbyte()

template<size_t _Nw>
static constexpr size_t std::_Base_bitset< _Nw >::_S_whichbyte ( size_t  __pos)
inlinestaticconstexprnoexcept

Definition at line 103 of file bitset.

◆ _S_whichword()

template<size_t _Nw>
static constexpr size_t std::_Base_bitset< _Nw >::_S_whichword ( size_t  __pos)
inlinestaticconstexprnoexcept

Definition at line 99 of file bitset.

Member Data Documentation

◆ _M_w

template<size_t _Nw>
_WordT std::_Base_bitset< _Nw >::_M_w[_Nw]

0 is the least significant word.

Definition at line 80 of file bitset.


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