Dune::BitField Class Reference
[Common]
#include <bitfield.hh>
Inheritance diagram for Dune::BitField:

Detailed Description
A dynamic array of booleans.This class is basically std::vector<bool>, but with a few added methods.
Public Member Functions | |
BitField () | |
Default constructor. | |
BitField (int n) | |
Constructor with a given length. | |
BitField (int n, bool v) | |
Constructor which initializes the field. | |
void | setAll () |
Sets all entries to true . | |
void | unsetAll () |
Sets all entries to false . | |
int | nSetBits () const |
Returns the number of set bits. | |
Friends | |
std::ostream & | operator<< (std::ostream &s, const BitField &v) |
Send bitfield to an output stream. |
The documentation for this class was generated from the following file: