Compile-time fixed-size bitset. More...
#include <cl_Bitset.hpp>
Public Member Functions | |
| Bitset ()=default | |
| trivial constructor | |
| Bitset (const Bitset< N > &aBitset) | |
| copy constructor | |
| Bitset (Bitset< N > &&aBitset) | |
| move constructor | |
| ~Bitset ()=default | |
| tivial destructor | |
| index_t | size () const |
| the size of the bitset | |
| void | set (const index_t aIndex) |
| set a bit to true | |
| void | reset (const index_t aIndex) |
| set a bit to false | |
| void | reset () |
| set all bits to false | |
| void | flip (const index_t aIndex) |
| invert a bit | |
| bool | test (const index_t aIndex) const |
| test if a bit is set | |
| index_t | count () const |
| count the number of true bits | |
| std::bitset< N > & | data () |
| expose data container | |
| const std::bitset< N > & | data () const |
| expose data container (const) | |
| Bitset< N > & | operator= (const Bitset< N > &aBitset) |
| copy assignment operator | |
| Bitset< N > & | operator= (Bitset< N > &&aBitset) |
| move assignment operator | |
| bool | operator== (const Bitset< N > &aBitset) const |
| equality operator | |
| bool | operator!= (const Bitset< N > &aBitset) const |
| inequality operator | |
Compile-time fixed-size bitset.
|
default |
trivial constructor
|
inline |
copy constructor
|
inline |
move constructor
|
default |
tivial destructor
|
inline |
count the number of true bits
|
inline |
expose data container
|
inline |
expose data container (const)
|
inline |
invert a bit
|
inline |
inequality operator
|
inline |
move assignment operator
|
inline |
copy assignment operator
|
inline |
equality operator
|
inline |
set all bits to false
|
inline |
set a bit to false
|
inline |
set a bit to true
|
inline |
the size of the bitset
|
inline |
test if a bit is set