QBitArray Class Reference
#include <qbitarray.h>
Definition at line 54 of file qbitarray.h.
Definition at line 65 of file qbitarray.h.
65 { d = other.d;
return *
this; }
Definition at line 71 of file qbitarray.h.
71 {
qSwap(d, other.d); }
Q_INLINE_TEMPLATE void qSwap(QScopedPointer< T, Cleanup > &p1, QScopedPointer< T, Cleanup > &p2)
Definition at line 73 of file qbitarray.h.
const char * constData() const
Definition at line 74 of file qbitarray.h.
const char * constData() const
bool isDetached |
( |
| ) |
const |
|
inline |
bool testBit |
( |
int |
i | ) |
const |
|
inline |
Definition at line 124 of file qbitarray.h.
125 { Q_ASSERT(uint(i) < uint(
size()));
126 return (*(reinterpret_cast<const uchar*>(d.
constData())+1+(i>>3)) & (1 << (i & 7))) != 0; }
const char * constData() const
Definition at line 128 of file qbitarray.h.
129 { Q_ASSERT(uint(i) < uint(
size()));
130 *(
reinterpret_cast<uchar*
>(d.
data())+1+(i>>3)) |= uchar(1 << (i & 7)); }
Definition at line 132 of file qbitarray.h.
133 { Q_ASSERT(uint(i) < uint(
size()));
134 *(
reinterpret_cast<uchar*
>(d.
data())+1+(i>>3)) &= ~uchar(1 << (i & 7)); }
Definition at line 139 of file qbitarray.h.
140 { Q_ASSERT(uint(i) < uint(
size()));
141 uchar
b = uchar(1<<(i&7)); uchar*
p =
reinterpret_cast<uchar*
>(d.
data())+1+(i>>3);
142 uchar
c = uchar(*p&b); *p^=
b;
return c!=0; }
bool operator[] |
( |
int |
i | ) |
const |
|
inline |
bool operator[] |
( |
uint |
i | ) |
const |
|
inline |
bool fill |
( |
bool |
val, |
|
|
int |
size = -1 |
|
) |
| |
|
inline |
Q_CORE_EXPORT uint qHash |
( |
const QBitArray & |
key | ) |
|
|
friend |
The documentation for this class was generated from the following file: