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

Comparing trunk/OOPSE-2.0/src/utils/BitSet.hpp (file contents):
Revision 2037 by tim, Wed Feb 16 19:36:30 2005 UTC vs.
Revision 2043 by tim, Thu Feb 17 15:23:56 2005 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines