dune-common
2.7.0
|
A proxy class that acts as a mutable reference to a single bitset in a BitSetVector. More...
#include <dune/common/bitsetvector.hh>
Public Types | |
typedef std::bitset< block_size > | bitset |
typedef size_t | size_type |
size_type typedef (an unsigned integral type) More... | |
typedef std::vector< bool, Alloc >::reference | reference |
typedef std::vector< bool, Alloc >::const_reference | const_reference |
A proxy class that acts as a const reference to a single bit. More... | |
Protected Types | |
typedef Dune::BitSetVector< block_size, Alloc > | BitSetVector |
typedef Dune::BitSetVectorConstReference< block_size, Alloc > | BitSetVectorConstReference |
Protected Member Functions | |
BitSetVectorReference (BitSetVector &blockBitField_, int block_number_) | |
reference | getBit (size_type i) |
const_reference | getBit (size_type i) const |
Protected Attributes | |
BitSetVector & | blockBitField |
A proxy class that acts as a mutable reference to a single bitset in a BitSetVector.
It contains an assignment operator from std::bitset. It inherits the const std::bitset interface provided by BitSetVectorConstReference and adds most of the non-const methods of std::bitset.
typedef std::bitset<block_size> Dune::BitSetVectorReference< block_size, Alloc >::bitset |
|
protected |
|
protected |
typedef std::vector<bool, Alloc>::const_reference Dune::BitSetVectorReference< block_size, Alloc >::const_reference |
A proxy class that acts as a const reference to a single bit.
typedef std::vector<bool, Alloc>::reference Dune::BitSetVectorReference< block_size, Alloc >::reference |
bitset interface typedefs
A proxy class that acts as a reference to a single bit.
typedef size_t Dune::BitSetVectorReference< block_size, Alloc >::size_type |
size_type typedef (an unsigned integral type)
|
inlineprotected |
|
inline |
Flips the value of every bit.
|
inline |
Flips bit n.
|
inlineprotected |
|
inlineprotected |
|
inline |
Bitwise and (for bitset).
|
inline |
Bitwise and (for BitSetVectorConstReference and BitSetVectorReference)
|
inline |
Left shift.
|
inline |
Assignment from bool, sets each bit in the bitset to b.
|
inline |
Assignment from bitset.
|
inline |
Assignment from BitSetVectorConstReference.
|
inline |
Assignment from BitSetVectorReference.
|
inline |
Right shift.
|
inline |
Return reference to the i
-th bit.
|
inline |
Bitwise exclusive or (for bitset).
|
inline |
Bitwise exclusive or (for BitSetVectorConstReference and BitSetVectorReference)
|
inline |
Bitwise inclusive or (for bitset)
|
inline |
Bitwise inclusive or (for BitSetVectorConstReference and BitSetVectorReference)
|
inline |
Clears every bit.
|
inline |
Clears bit n.
|
inline |
Sets every bit.
|
inline |
Sets bit n if val is nonzero, and clears bit n if val is zero.
|
inline |
Returns true if bit n is set.
|
protected |