|
dune-common 2.10
|
A dynamic array of blocks of booleans. More...
#include <dune/common/bitsetvector.hh>

Public Types | |
| typedef std::bitset< block_size > | value_type |
| Type of the values stored by the container. | |
| typedef BitSetVectorReference< block_size, Allocator > | reference |
| Reference to a small block of bits. | |
| typedef BitSetVectorConstReference< block_size, Allocator > | const_reference |
| Const reference to a small block of bits. | |
| typedef BitSetVectorReference< block_size, Allocator > * | pointer |
| Pointer to a small block of bits. | |
| typedef BitSetVectorConstReference< block_size, Allocator > * | const_pointer |
| Const pointer to a small block of bits. | |
| typedef std::vector< bool, Allocator >::size_type | size_type |
| size type | |
| typedef Allocator | allocator_type |
| The type of the allocator. | |
| typedef Dune::GenericIterator< BitSetVector< block_size, Allocator >, value_type, reference, std::ptrdiff_t, ForwardIteratorFacade > | iterator |
| typedef Dune::GenericIterator< const BitSetVector< block_size, Allocator >, const value_type, const_reference, std::ptrdiff_t, ForwardIteratorFacade > | const_iterator |
Public Member Functions | |
| iterator | begin () |
| Returns a iterator pointing to the beginning of the vector. | |
| const_iterator | begin () const |
| Returns a const_iterator pointing to the beginning of the vector. | |
| iterator | end () |
| Returns an iterator pointing to the end of the vector. | |
| const_iterator | end () const |
| Returns a const_iterator pointing to the end of the vector. | |
| BitSetVector () | |
| Default constructor. | |
| BitSetVector (const BlocklessBaseClass &blocklessBitField) | |
| Construction from an unblocked bitfield. | |
| BitSetVector (int n) | |
| BitSetVector (int n, bool v) | |
| Constructor which initializes the field with true or false. | |
| void | clear () |
| Erases all of the elements. | |
| void | resize (int n, bool v=bool()) |
| Resize field. | |
| size_type | size () const |
| Return the number of blocks. | |
| void | setAll () |
| Sets all entries to true . | |
| void | unsetAll () |
| Sets all entries to false . | |
| reference | operator[] (int i) |
| Return reference to i-th block. | |
| const_reference | operator[] (int i) const |
| Return const reference to i-th block. | |
| reference | back () |
| Return reference to last block. | |
| const_reference | back () const |
| Return const reference to last block. | |
| size_type | count () const |
| Returns the number of bits that are set. | |
| size_type | countmasked (int j) const |
| Returns the number of set bits, while each block is masked with 1<<i. | |
A dynamic array of blocks of booleans.
| typedef Allocator Dune::BitSetVector< block_size, Allocator >::allocator_type |
The type of the allocator.
| typedef Dune::GenericIterator<const BitSetVector<block_size,Allocator>, const value_type, const_reference, std::ptrdiff_t, ForwardIteratorFacade> Dune::BitSetVector< block_size, Allocator >::const_iterator |
| typedef BitSetVectorConstReference<block_size,Allocator>* Dune::BitSetVector< block_size, Allocator >::const_pointer |
Const pointer to a small block of bits.
| typedef BitSetVectorConstReference<block_size,Allocator> Dune::BitSetVector< block_size, Allocator >::const_reference |
Const reference to a small block of bits.
| typedef Dune::GenericIterator<BitSetVector<block_size,Allocator>, value_type, reference, std::ptrdiff_t, ForwardIteratorFacade> Dune::BitSetVector< block_size, Allocator >::iterator |
iterators
| typedef BitSetVectorReference<block_size,Allocator>* Dune::BitSetVector< block_size, Allocator >::pointer |
Pointer to a small block of bits.
| typedef BitSetVectorReference<block_size,Allocator> Dune::BitSetVector< block_size, Allocator >::reference |
Reference to a small block of bits.
| typedef std::vector<bool,Allocator>::size_type Dune::BitSetVector< block_size, Allocator >::size_type |
size type
| typedef std::bitset<block_size> Dune::BitSetVector< block_size, Allocator >::value_type |
Type of the values stored by the container.
container interface typedefs
|
inline |
Default constructor.
|
inline |
Construction from an unblocked bitfield.
|
inlineexplicit |
Constructor with a given length
| n | Number of blocks |
|
inline |
Constructor which initializes the field with true or false.
|
inline |
Return reference to last block.
|
inline |
Return const reference to last block.
|
inline |
Returns a iterator pointing to the beginning of the vector.
|
inline |
Returns a const_iterator pointing to the beginning of the vector.
|
inline |
Erases all of the elements.
|
inline |
Returns the number of bits that are set.
|
inline |
Returns the number of set bits, while each block is masked with 1<<i.
|
inline |
Returns an iterator pointing to the end of the vector.
|
inline |
Returns a const_iterator pointing to the end of the vector.
|
inline |
Return reference to i-th block.
|
inline |
Return const reference to i-th block.
|
inline |
Resize field.
|
inline |
Sets all entries to true .
|
inline |
Return the number of blocks.
|
inline |
Sets all entries to false .