Tools.h++ Class Reference

Table Of Contents
bounds checking is performed. The following two lines are equivalent, although
setBit(size_t) is slightly smaller and faster than using operator()(size_t)
a(i) = TRUE;
a.setBit(i);
RWBoolean
testBit(size_t i) const;
Tests the bit with index i. The index i must be between 0 and size-1. No bounds checking
is performed. The following are equivalent, although testBit(size_t) is slightly smaller and
faster than using operator()(size_t):
if( a(i) ) doSomething();
if( a.testBit(i) ) doSomething();
Related Global Functions
RWTBitVec operator&(const RWTBitVec& v1, const RWTBitVec& v2);
RWTBitVec operator^(const RWTBitVec& v1, const RWTBitVec& v2);
RWTBitVec operator|(const RWTBitVec& v1, const RWTBitVec& v2);
Return the logical AND, XOR, and OR, respectively, of vectors v1 and v2.