NGSolve
5.3
|
A compressed array of bools. More...
#include <bitarray.hpp>
Public Member Functions | |
NGS_DLL_HEADER | BitArray () |
empty array | |
NGS_DLL_HEADER | BitArray (int asize) |
array of asize bits | |
NGS_DLL_HEADER | BitArray (const BitArray &ba2) |
NGS_DLL_HEADER | ~BitArray () |
delete data | |
NGS_DLL_HEADER void | SetSize (int asize) |
Set size, loose values. | |
int | Size () const |
the size | |
NGS_DLL_HEADER void | Set () throw () |
set all bits | |
NGS_DLL_HEADER void | Clear () throw () |
clear all bits | |
void | Set (unsigned int i) |
set bit i | |
void | Clear (unsigned int i) |
clear bit i | |
bool | Test (unsigned int i) const |
check bit i | |
BitArray & | operator= (bool b) |
set all bits to b | |
bool | operator[] (unsigned int i) const |
check bit i | |
NGS_DLL_HEADER void | Invert () |
invert all bits | |
NGS_DLL_HEADER void | And (const BitArray &ba2) |
logical AND with ba2 | |
NGS_DLL_HEADER void | Or (const BitArray &ba2) |
logical OR with ba2 | |
NGS_DLL_HEADER BitArray & | operator= (const BitArray &ba2) |
copy from ba2 | |
int | NumSet () const |
A compressed array of bools.
Provides bit-operations and whole array operations.