CppELib 1.7.0
|
The container with bitwise operation like std::bitset. More...
#include <BitPattern.h>
Public Member Functions | |
BitPattern () | |
BitPattern (T pattern) | |
std::size_t | size () const |
BitPattern & | set () |
BitPattern & | set (std::size_t pos) |
BitPattern & | reset () |
BitPattern & | reset (std::size_t pos) |
BitPattern & | flip () |
BitPattern & | flip (std::size_t pos) |
operator const T & () const | |
operator T& () | |
bool | test (std::size_t pos) const |
bool | all () const |
bool | any () const |
bool | none () const |
The container with bitwise operation like std::bitset.
Size of BitPattern<T> is the bit width of type T.
T | Unsigned integer type with any width |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |