NGSolve  5.3
Public Member Functions
ngstd::BitArray Class Reference

A compressed array of bools. More...

#include <bitarray.hpp>

List of all members.

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
BitArrayoperator= (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 BitArrayoperator= (const BitArray &ba2)
 copy from ba2
int NumSet () const

Detailed Description

A compressed array of bools.

Provides bit-operations and whole array operations.


The documentation for this class was generated from the following file: