|
dune-common 2.10
|
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. | |
| bitset | operator>> (size_type n) const |
| Returns a copy of *this shifted right by n bits. | |
| bitset | operator~ () const |
| Returns a copy of *this with all of its bits flipped. | |
| size_type | size () const |
| Returns block_size. | |
| size_type | count () const |
| Returns the number of bits that are set. | |
| bool | any () const |
| Returns true if any bits are set. | |
| bool | none () const |
| Returns true if no bits are set. | |
| bool | all () const |
| Returns true if all bits are set. | |
| bool | test (size_type n) const |
| Returns true if bit n is set. | |
| const_reference | operator[] (size_type i) const |
Return reference to the i-th bit. | |
| operator bitset () const | |
| cast to bitset | |
| bool | operator== (const bitset &bs) const |
| Equality of reference and std::bitset. | |
| bool | operator== (const BitSetVectorConstReference &bs) const |
| Equality of reference and other reference. | |
| bool | operator!= (const bitset &bs) const |
| Inequality of reference and std::bitset. | |
| bool | operator!= (const BitSetVectorConstReference &bs) const |
| Inequality of reference and other reference. | |
Protected Types | |
| typedef Dune::BitSetVector< block_size, Alloc > | BitSetVector |
Protected Member Functions | |
| BitSetVectorConstReference (const BitSetVector &blockBitField_, int block_number_) | |
| BitSetVectorConstReference & | operator= (const BitSetVectorConstReference &b)=delete |
| disable assignment operator | |
| const_reference | getBit (size_type i) const |
| template<class BS > | |
| bool | equals (const BS &bs) const |
Protected Attributes | |
| const BitSetVector & | blockBitField |
| int | block_number |
Detailed Description
class Dune::BitSetVectorConstReference< block_size, Alloc >
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.
- Warning
- As this is only a proxy class, you can not get the address of the bitset.
Member Typedef Documentation
◆ bitset
| typedef std::bitset<block_size> Dune::BitSetVectorConstReference< block_size, Alloc >::bitset |
◆ BitSetVector
|
protected |
◆ const_reference
| typedef std::vector<bool,Alloc>::const_reference Dune::BitSetVectorConstReference< block_size, Alloc >::const_reference |
◆ reference
| typedef std::vector<bool,Alloc>::const_reference Dune::BitSetVectorConstReference< block_size, Alloc >::reference |
◆ size_type
| typedef size_t Dune::BitSetVectorConstReference< block_size, Alloc >::size_type |
Constructor & Destructor Documentation
◆ BitSetVectorConstReference()
|
inlineprotected |
Member Function Documentation
◆ all()
|
inline |
Returns true if all bits are set.
◆ any()
|
inline |
Returns true if any bits are set.
◆ count()
|
inline |
Returns the number of bits that are set.
◆ equals()
|
inlineprotected |
◆ getBit()
|
inlineprotected |
◆ none()
|
inline |
Returns true if no bits are set.
◆ operator bitset()
|
inline |
cast to bitset
◆ operator!=() [1/2]
|
inline |
Inequality of reference and std::bitset.
◆ operator!=() [2/2]
|
inline |
Inequality of reference and other reference.
◆ operator<<()
|
inline |
Returns a copy of *this shifted left by n bits.
◆ operator=()
|
protecteddelete |
disable assignment operator
◆ operator==() [1/2]
|
inline |
Equality of reference and std::bitset.
◆ operator==() [2/2]
|
inline |
Equality of reference and other reference.
◆ operator>>()
|
inline |
Returns a copy of *this shifted right by n bits.
◆ operator[]()
|
inline |
Return reference to the i-th bit.
◆ operator~()
|
inline |
Returns a copy of *this with all of its bits flipped.
◆ size()
|
inline |
Returns block_size.
◆ test()
|
inline |
Returns true if bit n is set.
Member Data Documentation
◆ block_number
|
protected |
◆ blockBitField
|
protected |
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8