| 49 |
|
|
| 50 |
|
/** |
| 51 |
|
* @class OpenMDBitSet OpenMDBitSet.hpp "OpenMDBitSet.hpp" |
| 52 |
< |
* @brief OpenMDBitSet is a wrapper class of std::vector<char> to act as a growable std::bitset |
| 52 |
> |
* @brief OpenMDBitSet is a wrapper class of std::vector<bool> to act as a growable std::bitset |
| 53 |
|
*/ |
| 54 |
|
class OpenMDBitSet { |
| 55 |
|
public: |
| 128 |
|
*this &= tmp; |
| 129 |
|
return *this; |
| 130 |
|
} |
| 131 |
+ |
|
| 132 |
+ |
OpenMDBitSet parallelReduce(); |
| 133 |
|
|
| 134 |
|
bool operator[] (int bitIndex) const { return bitset_[bitIndex]; } |
| 135 |
|
friend OpenMDBitSet operator| (const OpenMDBitSet& bs1, const OpenMDBitSet& bs2); |
| 150 |
|
/** Sets the bits from the specified fromIndex(inclusive) to the specified toIndex(exclusive) to the specified value. */ |
| 151 |
|
void setBits(int fromIndex, int toIndex, bool value); |
| 152 |
|
|
| 153 |
< |
std::vector<char> bitset_; |
| 153 |
> |
std::vector<bool> bitset_; |
| 154 |
|
}; |
| 155 |
|
|
| 156 |
|
|