Dune::BitField Class Reference
[Common]

#include <bitfield.hh>

Inherits std::vector< bool >.

List of all members.


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:

Generated on Sun Nov 15 22:28:16 2009 for dune-common by  doxygen 1.5.6