Skip to content
Snippets Groups Projects
Commit 91dd2823 authored by Christian Engwer's avatar Christian Engwer
Browse files

* hide operator= for ConstReference

* add operator= for Reference

[[Imported from SVN: r5364]]
parent 34127832
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,9 @@ namespace Dune {
block_number(block_number)
{};
//! hide assignment operator
BitSetVectorConstReference& operator=(const BitSetVectorConstReference & b);
public:
typedef std::bitset<block_size> bitset;
......@@ -252,6 +255,15 @@ namespace Dune {
return (*this);
}
//! Assignment from BitSetVectorReference
BitSetVectorReference& operator=(const BitSetVectorReference & b)
{
for(int i=0; i<block_size; ++i)
getBit(i) = b.getBit(i);
return (*this);
}
//! Bitwise and.
BitSetVectorReference& operator&=(const BitSetVectorConstReference& x)
{
......@@ -341,6 +353,8 @@ namespace Dune {
protected:
BitSetVector& blockBitField;
using BitSetVectorConstReference::getBit;
reference getBit(size_type i)
{
return blockBitField.getBit(this->block_number,i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment