Detailed Description
Definition at line 54 of file qbitarray.h.
#include <qbitarray.h>
List of all
members.
Member Typedef Documentation
Constructor & Destructor Documentation
| QBitArray |
( |
int |
size, |
|
|
bool |
val = false |
|
) |
|
[explicit] |
Member Function Documentation
Definition at line 65 of file qbitarray.h.
{ d = other.d; return *this; }
| int size |
( |
|
) |
const [inline] |
| int count |
( |
|
) |
const [inline] |
| int count |
( |
bool |
on |
) |
const |
| bool isEmpty |
( |
|
) |
const [inline] |
| bool isNull |
( |
|
) |
const [inline] |
| bool isDetached |
( |
|
) |
const [inline] |
| bool testBit |
( |
int |
i |
) |
const [inline] |
Definition at line 118 of file qbitarray.h.
{ Q_ASSERT(i >= 0 && i < size());
return (*(reinterpret_cast<const uchar*>(d.constData())+1+(i>>3)) & (1 << (i & 7))) != 0; }
| void setBit |
( |
int |
i |
) |
[inline] |
Definition at line 122 of file qbitarray.h.
{ Q_ASSERT(i >= 0 && i < size());
*(reinterpret_cast<uchar*>(d.data())+1+(i>>3)) |= uchar(1 << (i & 7)); }
| void setBit |
( |
int |
i, |
|
|
bool |
val |
|
) |
|
[inline] |
| void clearBit |
( |
int |
i |
) |
[inline] |
Definition at line 126 of file qbitarray.h.
{ Q_ASSERT(i >= 0 && i < size());
*(reinterpret_cast<uchar*>(d.data())+1+(i>>3)) &= ~uchar(1 << (i & 7)); }
| bool toggleBit |
( |
int |
i |
) |
[inline] |
Definition at line 133 of file qbitarray.h.
{ Q_ASSERT(i >= 0 && i < size());
uchar b = uchar(1<<(i&7)); uchar* p = reinterpret_cast<uchar*>(d.data())+1+(i>>3);
uchar c = uchar(*p&b); *p^=b; return c!=0; }
| bool at |
( |
int |
i |
) |
const [inline] |
| QBitRef operator[] |
( |
int |
i |
) |
[inline] |
| bool operator[] |
( |
int |
i |
) |
const [inline] |
| QBitRef operator[] |
( |
uint |
i |
) |
[inline] |
| bool operator[] |
( |
uint |
i |
) |
const [inline] |
| bool operator== |
( |
const QBitArray & |
a |
) |
const [inline] |
| bool operator!= |
( |
const QBitArray & |
a |
) |
const [inline] |
| bool fill |
( |
bool |
val, |
|
|
int |
size = -1 |
|
) |
|
[inline] |
| void fill |
( |
bool |
val, |
|
|
int |
first, |
|
|
int |
last |
|
) |
|
|
| void truncate |
( |
int |
pos |
) |
[inline] |
Friends And Related Function Documentation
| Q_CORE_EXPORT uint qHash |
( |
const QBitArray & |
key |
) |
[friend] |
The documentation for this class was generated from the following
file:
QBitArray QBitArray QBitArray QBitArray
QBitArray QBitArray QBitArray QBitArray QBitArray QBitArray
QBitArray QBitArray QBitArray QBitArray
QBitArray QBitArray QBitArray QBitArray QBitArray QBitArray