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

Comparing trunk/OOPSE-4/src/utils/BitSet.hpp (file contents):
Revision 1980 by tim, Mon Feb 7 19:13:43 2005 UTC vs.
Revision 1996 by tim, Fri Feb 11 22:35:05 2005 UTC

# Line 81 | Line 81 | class BitSet {
81  
82          /** Returns true if no bits are set to true */
83          bool none();
84 +
85 +        int firstOffBit() { return !bitset_[0] ? 0 : nextOffBit(0); }
86          
87          /** Returns the index of the first bit that is set to false that occurs on or after the specified starting index.*/
88          int nextOffBit(int fromIndex) const;
89 <        
89 >
90 >        int firstOnBit() { return bitset_[0] ? 0 : nextOnBit(0); }
91 >        
92          /** Returns the index of the first bit that is set to true that occurs on or after the specified starting index. */
93          int nextOnBit(int fromIndex) const;
94          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines