7#include <QtCore/qbytearray.h>
14#ifndef QT_NO_DATASTREAM
27 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(
QBitArray)
35 inline bool isEmpty()
const {
return d.isEmpty(); }
36 inline bool isNull()
const {
return d.isNull(); }
67 const char *
bits()
const {
return isEmpty() ?
nullptr :
d.constData() + 1; }
78{ *
this =
QBitArray((asize < 0 ? this->
size() : asize), aval);
return true; }
86 return (*(
reinterpret_cast<const uchar*
>(
d.constData())+1+(
i>>3)) & (1 << (
i & 7))) != 0; }
90 *(
reinterpret_cast<uchar*
>(
d.data())+1+(
i>>3)) |=
uchar(1 << (
i & 7)); }
94 *(
reinterpret_cast<uchar*
>(
d.data())+1+(
i>>3)) &= ~
uchar(1 << (
i & 7)); }
125#ifndef QT_NO_DATASTREAM
130#ifndef QT_NO_DEBUG_STREAM
void truncate(qsizetype pos)
Truncates the bit array at index position pos.
void clear()
Clears the contents of the bit array and makes it empty.
bool testBit(qsizetype i) const
Returns true if the bit at index position i is 1; otherwise returns false.
const char * bits() const
bool at(qsizetype i) const
Returns the value of the bit at index position i.
QBitArray & operator=(const QBitArray &other) noexcept
Assigns other to this bit array and returns a reference to this bit array.
QBitArray(QBitArray &&other) noexcept
Move-constructs a QBitArray instance, making it point at the same object that other was pointing to.
bool operator==(const QBitArray &other) const
Returns true if other is equal to this bit array; otherwise returns false.
bool operator!=(const QBitArray &other) const
Returns true if other is not equal to this bit array; otherwise returns false.
qsizetype count() const
Same as size().
bool isEmpty() const
Returns true if this bit array has size 0; otherwise returns false.
void setBit(qsizetype i)
Sets the bit at index position i to 1.
QBitArray(const QBitArray &other) noexcept
Constructs a copy of other.
void clearBit(qsizetype i)
Sets the bit at index position i to 0.
bool fill(bool val, qsizetype size=-1)
Sets every bit in the bit array to value, returning true if successful; otherwise returns false.
bool toggleBit(qsizetype i)
Inverts the value of the bit at index position i, returning the previous value of that bit as either ...
qsizetype size() const
Returns the number of bits stored in the bit array.
bool isNull() const
Returns true if this bit array is null; otherwise returns false.
QBitRef operator[](qsizetype i)
Returns the bit at index position i as a modifiable reference.
QBitArray() noexcept
Constructs an empty bit array.
\inmodule QtCore \reentrant
QBitRef & operator=(const QBitRef &val)
Sets the value referenced by the QBitRef to that referenced by QBitRef v.
QBitRef & operator=(bool val)
This is an overloaded member function, provided for convenience. It differs from the above function o...
\inmodule QtCore\reentrant
Endian
\value BigEndian Big-endian byte order (also called Network byte order) \value LittleEndian Little-en...
Combined button and popup list for selecting options.
Q_CORE_EXPORT QBitArray operator&(const QBitArray &, const QBitArray &)
Q_CORE_EXPORT QDataStream & operator>>(QDataStream &, QBitArray &)
Q_CORE_EXPORT QBitArray operator^(const QBitArray &, const QBitArray &)
Q_CORE_EXPORT QBitArray operator|(const QBitArray &, const QBitArray &)
Q_CORE_EXPORT QDataStream & operator<<(QDataStream &, const QBitArray &)
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
static bool testBit(long bit, const long *field)
size_t qHash(const QFileSystemWatcherPathKey &key, size_t seed=0)
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei count
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
const void * data_ptr(const QTransform &t)
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
QUrl::FormattingOptions & operator|=(QUrl::FormattingOptions &i, QUrl::ComponentFormattingOptions f)