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

Comparing branches/development/src/utils/OpenMDBitSet.hpp (file contents):
Revision 1665 by gezelter, Tue Nov 22 20:38:56 2011 UTC vs.
Revision 1803 by gezelter, Wed Oct 3 14:20:07 2012 UTC

# Line 49 | 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 128 | 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 148 | 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