ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/utils/OpenMDBitSet.hpp
(Generate patch)

Comparing:
trunk/src/utils/OpenMDBitSet.hpp (file contents), Revision 1442 by gezelter, Mon May 10 17:28:26 2010 UTC vs.
branches/development/src/utils/OpenMDBitSet.hpp (file contents), Revision 1850 by gezelter, Wed Feb 20 15:39:39 2013 UTC

# Line 35 | Line 35
35   *                                                                      
36   * [1]  Meineke, et al., J. Comp. Chem. 26, 252-271 (2005).            
37   * [2]  Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006).          
38 < * [3]  Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008).          
39 < * [4]  Vardeman & Gezelter, in progress (2009).                        
38 > * [3]  Sun, Lin & Gezelter, J. Chem. Phys. 128, 234107 (2008).          
39 > * [4]  Kuang & Gezelter,  J. Chem. Phys. 133, 164101 (2010).
40 > * [5]  Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011).
41   */
42  
43   #ifndef UTILS_OPENMDBITSET_HPP
# Line 48 | Line 49 | namespace OpenMD {
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:
# Line 127 | Line 128 | namespace OpenMD {
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);
# Line 147 | Line 150 | namespace OpenMD {
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines