ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/src/utils/BitSet.cpp
(Generate patch)

Comparing trunk/OOPSE-3.0/src/utils/BitSet.cpp (file contents):
Revision 1962 by tim, Tue Feb 1 22:49:23 2005 UTC vs.
Revision 1970 by tim, Fri Feb 4 05:42:30 2005 UTC

# Line 125 | Line 125 | BitSet operator| (const BitSet& bs1, const BitSet& bs2
125      std::fill(first, last, value);
126   }
127  
128 + void BitSet::resize(int nbits) {
129 +    int oldSize = size();
130 +    bitset_.resize(nbits);
131 +    if (nbits > oldSize) {
132 +        std::fill(bitset_.begin()+oldSize, bitset_.begin()+nbits+1, false);
133 +    }
134 + }
135 +
136   BitSet operator| (const BitSet& bs1, const BitSet& bs2) {
137      assert(bs1.size() == bs2.size());
138  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines