size_type countmasked(int j) const
Returns the number of set bits, while each block is masked with 1<
Definition: bitsetvector.hh:562
std::vector< bool, Alloc >::reference reference
Definition: bitsetvector.hh:226
size_type size() const
Returns block_size.
Definition: bitsetvector.hh:83
const_reference operator[](size_type i) const
Definition: bitsetvector.hh:115
BitSetVectorReference & operator&=(const BitSetVectorConstReference &x)
Bitwise and (for BitSetVectorConstReference and BitSetVectorReference)
Definition: bitsetvector.hh:275
const_reference operator[](int i) const
Return const reference to i-th block.
Definition: bitsetvector.hh:538
reference operator[](size_type i)
Definition: bitsetvector.hh:374
BitSetVectorReference & reset(size_type n)
Clears bit n.
Definition: bitsetvector.hh:358
bitset operator<<(size_type n) const
Returns a copy of *this shifted left by n bits.
Definition: bitsetvector.hh:59
BitSetVectorReference & operator|=(const bitset &x)
Bitwise inclusive or (for bitset)
Definition: bitsetvector.hh:283
BitSetVectorReference & operator^=(const bitset &x)
Bitwise exclusive or (for bitset).
Definition: bitsetvector.hh:299
BitSetVectorReference & operator=(const BitSetVectorConstReference &b)
Assignment from BitSetVectorConstReference.
Definition: bitsetvector.hh:251
Dune::BitSetVector< block_size, Alloc > BitSetVector
Definition: bitsetvector.hh:210
BitSetVectorReference & flip(size_type n)
Flips bit n.
Definition: bitsetvector.hh:365
A proxy class that acts as a mutable reference to a single bitset in a BitSetVector.
Definition: bitsetvector.hh:21
get the 'mutable' version of a reference to a const object
Definition: genericiterator.hh:113
BitSetVectorReference & operator=(bool b)
Assignment from bool, sets each bit in the bitset to b.
Definition: bitsetvector.hh:235
std::bitset< block_size > value_type
Type of the values stored by the container.
Definition: bitsetvector.hh:431
BitSetVector(int n, bool v)
Constructor which initializes the field with true or false.
Definition: bitsetvector.hh:499
BitSetVectorReference(BitSetVector &blockBitField_, int block_number_)
Definition: bitsetvector.hh:215
std::vector< bool, Alloc >::const_reference const_reference
Definition: bitsetvector.hh:55
Dune namespace.
Definition: alignment.hh:9
reference operator[](int i)
Return reference to i-th block.
Definition: bitsetvector.hh:532
BitSetVectorConstReference< block_size, Allocator > * const_pointer
Const pointer to a small block of bits.
Definition: bitsetvector.hh:443
BitSetVectorReference & operator=(const BitSetVectorReference &b)
Assignment from BitSetVectorReference.
Definition: bitsetvector.hh:259
BitSetVectorReference< block_size, Allocator > reference
Reference to a small block of bits.
Definition: bitsetvector.hh:434
const BitSetVector & blockBitField
Definition: bitsetvector.hh:166
const_iterator begin() const
Returns a const_iterator pointing to the beginning of the vector.
Definition: bitsetvector.hh:464
BitSetVectorConstReference< block_size, Alloc > type
Definition: bitsetvector.hh:402
Get the 'const' version of a reference to a mutable object.
Definition: genericiterator.hh:84
Allocator allocator_type
The type of the allocator.
Definition: bitsetvector.hh:449
void resize(int n, bool v=bool())
Resize field.
Definition: bitsetvector.hh:510
A proxy class that acts as a const reference to a single bitset in a BitSetVector.
Definition: bitsetvector.hh:34
BitSetVectorReference & set()
Definition: bitsetvector.hh:331
int block_number
Definition: bitsetvector.hh:167
Dune::BitSetVector< block_size, Alloc > BitSetVector
Definition: bitsetvector.hh:38
Base class for stl conformant forward iterators.
Definition: iteratorfacades.hh:135
friend std::ostream & operator<<(std::ostream &s, const BitSetVector &v)
Send bitfield to an output stream.
Definition: bitsetvector.hh:572
BitSetVectorReference & operator^=(const BitSetVectorConstReference &x)
Bitwise exclusive or (for BitSetVectorConstReference and BitSetVectorReference)
Definition: bitsetvector.hh:307
BitSetVectorReference & operator>>=(size_type n)
Right shift.
Definition: bitsetvector.hh:323
bool operator==(const bitset &bs) const
Equality of reference and std::bitset.
Definition: bitsetvector.hh:127
BitSetVectorReference & reset()
Clears every bit.
Definition: bitsetvector.hh:347
bitset operator>>(size_type n) const
Returns a copy of *this shifted right by n bits.
Definition: bitsetvector.hh:67
BitSetVectorReference< block_size, Alloc > type
Definition: bitsetvector.hh:414
std::vector< bool, Alloc >::const_reference const_reference
A proxy class that acts as a const reference to a single bit.
Definition: bitsetvector.hh:228
void unsetAll()
Sets all entries to false
Definition: bitsetvector.hh:527
BitSetVectorReference & operator&=(const bitset &x)
Bitwise and (for bitset).
Definition: bitsetvector.hh:267
Default exception class for range errors.
Definition: exceptions.hh:279
BitSetVectorReference & operator<<=(size_type n)
Left shift.
Definition: bitsetvector.hh:315
iterator end()
Returns an iterator pointing to the end of the vector.
Definition: bitsetvector.hh:469
bitset operator~() const
Returns a copy of *this with all of its bits flipped.
Definition: bitsetvector.hh:75
BitSetVectorReference< block_size, Alloc > type
Definition: bitsetvector.hh:408
void setAll()
Sets all entries to true
Definition: bitsetvector.hh:522
BitSetVectorReference< block_size, Allocator > * pointer
Pointer to a small block of bits.
Definition: bitsetvector.hh:440
bool any() const
Returns true if any bits are set.
Definition: bitsetvector.hh:98
size_type size() const
Return the number of blocks.
Definition: bitsetvector.hh:516
iterator begin()
Returns a iterator pointing to the beginning of the vector.
Definition: bitsetvector.hh:459
bool test(size_type n) const
Returns true if bit n is set.
Definition: bitsetvector.hh:110
bool operator!=(const bitset &bs) const
Inequality of reference and std::bitset.
Definition: bitsetvector.hh:139
reference back()
Return reference to last block.
Definition: bitsetvector.hh:544
BitSetVectorReference & flip()
Flips the value of every bit.
Definition: bitsetvector.hh:339
Dune::BitSetVectorConstReference< block_size, Alloc > BitSetVectorConstReference
Definition: bitsetvector.hh:213
BitSetVectorReference & operator|=(const BitSetVectorConstReference &x)
Bitwise inclusive or (for BitSetVectorConstReference and BitSetVectorReference)
Definition: bitsetvector.hh:291
std::vector< bool, Alloc >::const_reference reference
Definition: bitsetvector.hh:54
size_type count() const
Returns the number of bits that are set.
Definition: bitsetvector.hh:556
#define DUNE_THROW(E, m)
Definition: exceptions.hh:243
bool equals(const BS &bs) const
Definition: bitsetvector.hh:175
size_t size_type
size_type typedef (an unsigned integral type)
Definition: bitsetvector.hh:232
std::vector< bool, Allocator >::size_type size_type
size type
Definition: bitsetvector.hh:446
bool eq(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
test for equality using epsilon
Definition: float_cmp.cc:118
Implements a generic iterator class for writing stl conformant iterators.
BitSetVector()
Default constructor.
Definition: bitsetvector.hh:479