#include <bitset.hpp>
Classes | |
| class | Reference |
Public Member Functions | |
| bool | any () const |
| BitSet () | |
| std::size_t | count () const |
| bool | operator!= (const BitSet< NumBits > &rhs) const |
| BitSet< NumBits > & | operator= (const BitSet< NumBits > &rhs) |
| bool | operator== (const BitSet< NumBits > &rhs) const |
| bool | operator[] (std::size_t pos) const |
| Reference | operator[] (std::size_t pos) |
| BitSet< NumBits > & | reset () |
| BitSet< NumBits > & | set () |
| BitSet< NumBits > & | set (std::size_t pos, bool val=true) |
| std::size_t | size () const |
| bool | test (std::size_t pos) const |
Private Types | |
| enum | { NumBytes = (NumBits + 7) / 8 } |
Static Private Member Functions | |
| static std::size_t | getBitNum (const std::size_t bit_num) |
| static std::size_t | getByteNum (std::size_t bit_num) |
| static void | validatePos (std::size_t &inout_pos) |
Private Attributes | |
| char | data_ [NumBytes] |
STL-like bitset
Definition at line 19 of file bitset.hpp.
|
private |
| Enumerator | |
|---|---|
| NumBytes | |
Definition at line 21 of file bitset.hpp.
|
inline |
Definition at line 75 of file bitset.hpp.
|
inline |
Definition at line 112 of file bitset.hpp.
|
inline |
Definition at line 124 of file bitset.hpp.
|
inlinestaticprivate |
Definition at line 25 of file bitset.hpp.
|
inlinestaticprivate |
Definition at line 23 of file bitset.hpp.
|
inline |
Definition at line 160 of file bitset.hpp.
|
inline |
Definition at line 147 of file bitset.hpp.
|
inline |
Definition at line 161 of file bitset.hpp.
|
inline |
Definition at line 136 of file bitset.hpp.
|
inline |
Definition at line 141 of file bitset.hpp.
|
inline |
Definition at line 81 of file bitset.hpp.
|
inline |
Definition at line 87 of file bitset.hpp.
|
inline |
Definition at line 93 of file bitset.hpp.
|
inline |
Definition at line 134 of file bitset.hpp.
|
inline |
Definition at line 107 of file bitset.hpp.
|
inlinestaticprivate |
Definition at line 27 of file bitset.hpp.
|
private |
Definition at line 36 of file bitset.hpp.