dune-common
2.6-git
|
A proxy class that acts as a const reference to a single bitset in a BitSetVector. More...
#include <dune/common/bitsetvector.hh>
Public Types | |
typedef std::bitset< block_size > | bitset |
typedef std::vector< bool, Alloc >::const_reference | reference |
typedef std::vector< bool, Alloc >::const_reference | const_reference |
typedef size_t | size_type |
Public Member Functions | |
bitset | operator<< (size_type n) const |
Returns a copy of *this shifted left by n bits. More... | |
bitset | operator>> (size_type n) const |
Returns a copy of *this shifted right by n bits. More... | |
bitset | operator~ () const |
Returns a copy of *this with all of its bits flipped. More... | |
size_type | size () const |
Returns block_size. More... | |
size_type | count () const |
Returns the number of bits that are set. More... | |
bool | any () const |
Returns true if any bits are set. More... | |
bool | none () const |
Returns true if no bits are set. More... | |
bool | all () const |
Returns true if all bits are set. More... | |
bool | test (size_type n) const |
Returns true if bit n is set. More... | |
const_reference | operator[] (size_type i) const |
operator bitset () const | |
cast to bitset More... | |
bool | operator== (const bitset &bs) const |
Equality of reference and std::bitset. More... | |
bool | operator== (const BitSetVectorConstReference &bs) const |
Equality of reference and other reference. More... | |
bool | operator!= (const bitset &bs) const |
Inequality of reference and std::bitset. More... | |
bool | operator!= (const BitSetVectorConstReference &bs) const |
Inequality of reference and other reference. More... | |
Protected Types | |
typedef Dune::BitSetVector< block_size, Alloc > | BitSetVector |
Protected Member Functions | |
BitSetVectorConstReference (const BitSetVector &blockBitField_, int block_number_) | |
BitSetVectorConstReference & | operator= (const BitSetVectorConstReference &b) |
hide assignment operator More... | |
const_reference | getBit (size_type i) const |
template<class BS > | |
bool | equals (const BS &bs) const |
Protected Attributes | |
const BitSetVector & | blockBitField |
int | block_number |
A proxy class that acts as a const reference to a single bitset in a BitSetVector.
It contains a conversion to std::bitset and most of the interface of const std::bitset.
typedef std::bitset<block_size> Dune::BitSetVectorConstReference< block_size, Alloc >::bitset |
|
protected |
typedef std::vector<bool, Alloc>::const_reference Dune::BitSetVectorConstReference< block_size, Alloc >::const_reference |
typedef std::vector<bool, Alloc>::const_reference Dune::BitSetVectorConstReference< block_size, Alloc >::reference |
typedef size_t Dune::BitSetVectorConstReference< block_size, Alloc >::size_type |
|
inlineprotected |
|
inline |
Returns true if all bits are set.
|
inline |
Returns true if any bits are set.
|
inline |
Returns the number of bits that are set.
|
inlineprotected |
|
inlineprotected |
|
inline |
Returns true if no bits are set.
|
inline |
cast to bitset
|
inline |
Inequality of reference and std::bitset.
|
inline |
Inequality of reference and other reference.
|
inline |
Returns a copy of *this shifted left by n bits.
|
protected |
hide assignment operator
|
inline |
Equality of reference and std::bitset.
|
inline |
Equality of reference and other reference.
|
inline |
Returns a copy of *this shifted right by n bits.
|
inline |
|
inline |
Returns a copy of *this with all of its bits flipped.
|
inline |
Returns block_size.
|
inline |
Returns true if bit n is set.
|
protected |
|
protected |