Base class, general case. More...
#include <BenzeneBitset.hpp>
Public Types | |
typedef unsigned long | _WordT |
Public Member Functions | |
_Base_bitset () | |
_Base_bitset (unsigned long __val) | |
_WordT & | _M_getword (size_t __pos) |
_WordT | _M_getword (size_t __pos) const |
_WordT & | _M_hiword () |
_WordT | _M_hiword () const |
void | _M_do_and (const _Base_bitset< _Nw > &__x) |
void | _M_do_or (const _Base_bitset< _Nw > &__x) |
void | _M_do_xor (const _Base_bitset< _Nw > &__x) |
void | _M_do_left_shift (size_t __shift) |
void | _M_do_right_shift (size_t __shift) |
void | _M_do_flip () |
void | _M_do_set () |
void | _M_do_reset () |
bool | _M_is_equal (const _Base_bitset< _Nw > &__x) const |
bool | _M_is_subset_of (const _Base_bitset< _Nw > &__x) const |
bool | _M_is_less_than (const _Base_bitset< _Nw > &__x) const |
size_t | _M_are_all_aux () const |
bool | _M_is_any () const |
size_t | _M_do_count () const |
unsigned long | _M_do_to_ulong () const |
size_t | _M_do_find_first (size_t __not_found) const |
size_t | _M_do_find_next (size_t __prev, size_t __not_found) const |
Static Public Member Functions | |
static size_t | _S_whichword (size_t __pos) |
static size_t | _S_whichbyte (size_t __pos) |
static size_t | _S_whichbit (size_t __pos) |
static _WordT | _S_maskbit (size_t __pos) |
Public Attributes | |
_WordT | _M_w [_Nw] |
0 is the least significant word. |
Base class, general case.
It is a class invariant that _Nw will be nonnegative.
See documentation for bitset.
Definition at line 35 of file BenzeneBitset.hpp.
typedef unsigned long _Base_bitset< _Nw >::_WordT |
Reimplemented in benzene_bitset< _Nb >, and benzene_bitset< BITSETSIZE >.
Definition at line 37 of file BenzeneBitset.hpp.
_Base_bitset< _Nw >::_Base_bitset | ( | ) | [inline] |
Definition at line 42 of file BenzeneBitset.hpp.
_Base_bitset< _Nw >::_Base_bitset | ( | unsigned long | __val | ) | [inline] |
Definition at line 45 of file BenzeneBitset.hpp.
size_t _Base_bitset< _Nw >::_M_are_all_aux | ( | ) | const [inline] |
Definition at line 160 of file BenzeneBitset.hpp.
void _Base_bitset< _Nw >::_M_do_and | ( | const _Base_bitset< _Nw > & | __x | ) | [inline] |
Definition at line 84 of file BenzeneBitset.hpp.
size_t _Base_bitset< _Nw >::_M_do_count | ( | ) | const [inline] |
Definition at line 179 of file BenzeneBitset.hpp.
size_t _Base_bitset< _Nw >::_M_do_find_first | ( | size_t | __not_found | ) | const [inline] |
Definition at line 255 of file BenzeneBitset.hpp.
References _GLIBCXX_BITSET_BITS_PER_WORD, and _Base_bitset< _Nw >::_M_w.
size_t _Base_bitset< _Nw >::_M_do_find_next | ( | size_t | __prev, | |
size_t | __not_found | |||
) | const [inline] |
Definition at line 270 of file BenzeneBitset.hpp.
References _GLIBCXX_BITSET_BITS_PER_WORD, _Base_bitset< _Nw >::_M_w, _Base_bitset< _Nw >::_S_whichbit(), and _Base_bitset< _Nw >::_S_whichword().
void _Base_bitset< _Nw >::_M_do_flip | ( | ) | [inline] |
Definition at line 111 of file BenzeneBitset.hpp.
void _Base_bitset< _Nw >::_M_do_left_shift | ( | size_t | __shift | ) | [inline] |
Definition at line 202 of file BenzeneBitset.hpp.
References _GLIBCXX_BITSET_BITS_PER_WORD, and _Base_bitset< _Nw >::_M_w.
void _Base_bitset< _Nw >::_M_do_or | ( | const _Base_bitset< _Nw > & | __x | ) | [inline] |
Definition at line 91 of file BenzeneBitset.hpp.
void _Base_bitset< _Nw >::_M_do_reset | ( | ) | [inline] |
Definition at line 125 of file BenzeneBitset.hpp.
Referenced by _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_Base_bitset().
void _Base_bitset< _Nw >::_M_do_right_shift | ( | size_t | __shift | ) | [inline] |
Definition at line 228 of file BenzeneBitset.hpp.
References _GLIBCXX_BITSET_BITS_PER_WORD, and _Base_bitset< _Nw >::_M_w.
void _Base_bitset< _Nw >::_M_do_set | ( | ) | [inline] |
Definition at line 118 of file BenzeneBitset.hpp.
unsigned long _Base_bitset< _Nw >::_M_do_to_ulong | ( | ) | const |
void _Base_bitset< _Nw >::_M_do_xor | ( | const _Base_bitset< _Nw > & | __x | ) | [inline] |
Definition at line 98 of file BenzeneBitset.hpp.
_WordT _Base_bitset< _Nw >::_M_getword | ( | size_t | __pos | ) | const [inline] |
Definition at line 72 of file BenzeneBitset.hpp.
_WordT& _Base_bitset< _Nw >::_M_getword | ( | size_t | __pos | ) | [inline] |
Definition at line 68 of file BenzeneBitset.hpp.
Referenced by benzene_bitset< _Nb >::reference::reference().
_WordT _Base_bitset< _Nw >::_M_hiword | ( | ) | const [inline] |
Definition at line 80 of file BenzeneBitset.hpp.
_WordT& _Base_bitset< _Nw >::_M_hiword | ( | ) | [inline] |
Definition at line 76 of file BenzeneBitset.hpp.
Referenced by _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_are_all_aux().
bool _Base_bitset< _Nw >::_M_is_any | ( | ) | const [inline] |
Definition at line 170 of file BenzeneBitset.hpp.
bool _Base_bitset< _Nw >::_M_is_equal | ( | const _Base_bitset< _Nw > & | __x | ) | const [inline] |
Definition at line 129 of file BenzeneBitset.hpp.
bool _Base_bitset< _Nw >::_M_is_less_than | ( | const _Base_bitset< _Nw > & | __x | ) | const [inline] |
Definition at line 149 of file BenzeneBitset.hpp.
bool _Base_bitset< _Nw >::_M_is_subset_of | ( | const _Base_bitset< _Nw > & | __x | ) | const [inline] |
Definition at line 140 of file BenzeneBitset.hpp.
static _WordT _Base_bitset< _Nw >::_S_maskbit | ( | size_t | __pos | ) | [inline, static] |
Definition at line 64 of file BenzeneBitset.hpp.
static size_t _Base_bitset< _Nw >::_S_whichbit | ( | size_t | __pos | ) | [inline, static] |
Definition at line 60 of file BenzeneBitset.hpp.
Referenced by _Base_bitset< _Nw >::_M_do_find_next(), _Base_bitset< 0 >::_S_maskbit(), _Base_bitset< 1 >::_S_maskbit(), and _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_S_maskbit().
static size_t _Base_bitset< _Nw >::_S_whichbyte | ( | size_t | __pos | ) | [inline, static] |
Definition at line 56 of file BenzeneBitset.hpp.
static size_t _Base_bitset< _Nw >::_S_whichword | ( | size_t | __pos | ) | [inline, static] |
Definition at line 52 of file BenzeneBitset.hpp.
Referenced by _Base_bitset< _Nw >::_M_do_find_next(), and _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_getword().
_WordT _Base_bitset< _Nw >::_M_w[_Nw] |
0 is the least significant word.
Definition at line 40 of file BenzeneBitset.hpp.
Referenced by _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_Base_bitset(), _Base_bitset< 1 >::_M_are_all_aux(), _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_are_all_aux(), _Base_bitset< 1 >::_M_do_and(), _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_do_and(), _Base_bitset< 1 >::_M_do_count(), _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_do_count(), _Base_bitset< 1 >::_M_do_find_first(), _Base_bitset< _Nw >::_M_do_find_first(), _Base_bitset< 1 >::_M_do_find_next(), _Base_bitset< _Nw >::_M_do_find_next(), _Base_bitset< 1 >::_M_do_flip(), _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_do_flip(), _Base_bitset< 1 >::_M_do_left_shift(), _Base_bitset< _Nw >::_M_do_left_shift(), _Base_bitset< 1 >::_M_do_or(), _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_do_or(), _Base_bitset< 1 >::_M_do_reset(), _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_do_reset(), _Base_bitset< 1 >::_M_do_right_shift(), _Base_bitset< _Nw >::_M_do_right_shift(), _Base_bitset< 1 >::_M_do_set(), _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_do_set(), _Base_bitset< 1 >::_M_do_xor(), _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_do_xor(), _Base_bitset< 1 >::_M_getword(), _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_getword(), _Base_bitset< 1 >::_M_hiword(), _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_hiword(), _Base_bitset< 1 >::_M_is_any(), _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_is_any(), _Base_bitset< 1 >::_M_is_equal(), _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_is_equal(), _Base_bitset< 1 >::_M_is_less_than(), _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_is_less_than(), _Base_bitset< 1 >::_M_is_subset_of(), and _Base_bitset< _GLIBCXX_BITSET_WORDS(_Nb)>::_M_is_subset_of().