--- trunk/src/utils/OpenMDBitSet.hpp 2009/11/25 20:02:06 1390 +++ branches/development/src/utils/OpenMDBitSet.hpp 2012/10/03 14:20:07 1803 @@ -36,7 +36,8 @@ * [1] Meineke, et al., J. Comp. Chem. 26, 252-271 (2005). * [2] Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006). * [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008). - * [4] Vardeman & Gezelter, in progress (2009). + * [4] Kuang & Gezelter, J. Chem. Phys. 133, 164101 (2010). + * [5] Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). */ #ifndef UTILS_OPENMDBITSET_HPP @@ -48,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: @@ -127,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); @@ -147,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_; };