17#include <QtCore/QBitArray>
18#include <QtCore/private/qglobal_p.h>
26#if !defined(BROKEN_STD_VECTOR_BOOL_OR_BROKEN_STD_FIND)
30 std::vector<bool>
bits;
38 {
bits = std::vector<bool>(
bits.size(),
false); }
46 return static_cast<int>(
bits.size());
50 {
bits.resize(newSize); }
52 void resize(
int newSize,
bool newValue)
53 {
bits.resize(newSize, newValue); }
70 size_t pos = std::distance(
bits.begin(),
72 if (wrapAround &&
pos >=
static_cast<size_t>(
size()))
73 pos = std::distance(
bits.begin(),
81 return static_cast<int>(
pos);
84 bool at(
int idx)
const
85 {
return bits.at(idx); }
91 {
bits[idx] =
false; }
99 BitVector(
int size = 0,
bool value =
false)
110 {
return bits.size(); }
113 {
bits.resize(newSize); }
115 void resize(
int newSize,
bool newValue)
117 int oldSize =
bits.size();
118 bits.resize(newSize);
119 bits.fill(newValue, oldSize,
bits.size());
124 bits.resize(newSize);
136 for (
int i = 0, ei =
start;
i < ei; ++
i) {
145 bool at(
int idx)
const
146 {
return bits.at(idx); }
149 {
bits[idx] =
true; }
152 {
bits[idx] =
false; }
void assign(int newSize, bool value)
void resize(int newSize, bool newValue)
BitVector(int size=0, bool value=false)
int findNext(int start, bool value, bool wrapAround) const
Combined button and popup list for selecting options.
\qmltype Particle \inqmlmodule QtQuick.Particles
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
constexpr const T & qMin(const T &a, const T &b)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const void * bits