Logo Search packages:      
Sourcecode: qt-x11-free version File versions

void QBitArray::setBit ( uint  index  ) 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the bit at position index to 1.

See also:
clearBit() toggleBit()

Definition at line 311 of file qbitarray.cpp.

References size().

Referenced by QBitVal::operator=(), and setBit().

#if defined(QT_CHECK_RANGE)
    if ( index >= size() ) {
      qWarning( "QBitArray::setBit: Index %d out of range", index );
    *(data()+(index>>3)) |= (1 << (index & 7));

Generated by  Doxygen 1.6.0   Back to index