--- branches/development/src/utils/OpenMDBitSet.hpp 2011/11/22 20:38:56 1665 +++ branches/development/src/utils/OpenMDBitSet.hpp 2012/10/03 14:20:07 1803 @@ -49,7 +49,7 @@ namespace OpenMD { /** * @class OpenMDBitSet OpenMDBitSet.hpp "OpenMDBitSet.hpp" - * @brief OpenMDBitSet is a wrapper class of std::vector to act as a growable std::bitset + * @brief OpenMDBitSet is a wrapper class of std::vector to act as a growable std::bitset */ class OpenMDBitSet { public: @@ -128,6 +128,8 @@ namespace OpenMD { *this &= tmp; return *this; } + + OpenMDBitSet parallelReduce(); bool operator[] (int bitIndex) const { return bitset_[bitIndex]; } friend OpenMDBitSet operator| (const OpenMDBitSet& bs1, const OpenMDBitSet& bs2); @@ -148,7 +150,7 @@ namespace OpenMD { /** Sets the bits from the specified fromIndex(inclusive) to the specified toIndex(exclusive) to the specified value. */ void setBits(int fromIndex, int toIndex, bool value); - std::vector bitset_; + std::vector bitset_; };