85 if (!
id && !
type.isEmpty() &&
type !=
"void")
106 attributes(((int)_access) | (((int)_methodType) << 2)),
175 return ((
flags &
f) != 0);
220 std::vector<QMetaMethodBuilderPrivate>
methods;
259 QMetaObjectBuilder::AddMembers members)
590 property.setStored(prototype.
isStored());
591 property.setUser(prototype.
isUser());
593 property.setEnumOrFlag(prototype.
isEnumType());
595 property.setFinal(prototype.
isFinal());
596 property.setRevision(prototype.
revision());
686 QMetaObjectBuilder::AddMembers members)
714 (members &
Slots) != 0) {
746 while (*objects !=
nullptr) {
876 property.notifySignal = -1;
878 property.notifySignal--;
1065 #define ALIGN(size,type) \
1066 (size) = ((size) + sizeof(type) - 1) & ~(sizeof(type) - 1)
1089 if (
it != m_entries.
end())
1099 return alignof(
uint);
1108 size +=
it.key().size() + 1;
1113 const int offsetOfStringdataMember,
int &stringdataOffset)
1116 int offset = offsetOfStringdataMember + stringdataOffset;
1119 memcpy(
out + 2 *
i *
sizeof(
uint), &offsetLen, 2 *
sizeof(
uint));
1124 stringdataOffset +=
size + 1;
1135 int offsetOfStringdataMember = int(m_entries.
size() * 2 *
sizeof(
uint));
1136 int stringdataOffset = 0;
1139 writeString(
out, 0, m_className, offsetOfStringdataMember, stringdataOffset);
1143 const int i =
it.value();
1155 static int aggregateParameterCount(
const std::vector<QMetaMethodBuilderPrivate> &methods)
1158 for (
const auto &
method : methods)
1181 bool hasRevisionedMethods =
d->hasRevisionedMethods();
1200 int methodParametersDataSize =
1201 ((aggregateParameterCount(
d->methods)
1202 + aggregateParameterCount(
d->constructors)) * 2)
1203 - int(
d->methods.size())
1204 - int(
d->constructors.size());
1208 pmeta->
flags =
d->flags.toInt();
1214 dataIndex += 2 *
d->classInfoNames.size();
1219 if (hasRevisionedMethods)
1220 dataIndex += int(
d->methods.size());
1221 paramsIndex = dataIndex;
1222 dataIndex += methodParametersDataSize;
1236 dataIndex += 2 * int(
d->classInfoNames.size());
1238 if (hasRevisionedMethods)
1239 dataIndex += int(
d->methods.size());
1240 paramsIndex = dataIndex;
1241 dataIndex += methodParametersDataSize;
1248 enumIndex = dataIndex;
1249 for (
const auto &enumerator :
d->enumerators)
1250 dataIndex += 2 * enumerator.keys.size();
1256 int *
data =
reinterpret_cast<int *
>(pmeta);
1257 size += dataIndex *
sizeof(int);
1259 [[maybe_unused]]
char *
str =
reinterpret_cast<char *
>(
buf +
size);
1285 int parameterMetaTypesIndex = int(
d->properties.size()) + 1;
1286 for (
const auto &
method :
d->methods) {
1288 int argc =
method.parameterCount();
1290 [[maybe_unused]]
int attrs =
method.attributes;
1293 data[dataIndex + 1] = argc;
1294 data[dataIndex + 2] = paramsIndex;
1296 data[dataIndex + 4] = attrs;
1297 data[dataIndex + 5] = parameterMetaTypesIndex;
1302 paramsIndex += 1 + argc * 2;
1303 parameterMetaTypesIndex += 1 + argc;
1305 if (hasRevisionedMethods) {
1306 for (
const auto &
method :
d->methods) {
1315 + (hasRevisionedMethods ?
int(
d->methods.size()) : 0));
1316 for (
int x = 0;
x < 2; ++
x) {
1317 const std::vector<QMetaMethodBuilderPrivate> &methods = (
x == 0) ?
d->methods :
d->constructors;
1320 int paramCount = paramTypeNames.
size();
1321 for (
int i = -1;
i < paramCount; ++
i) {
1323 [[maybe_unused]]
int typeInfo;
1329 data[dataIndex] = typeInfo;
1334 while (paramNames.
size() < paramCount)
1336 for (
int i = 0;
i < paramCount; ++
i) {
1337 [[maybe_unused]]
int stringIndex =
strings.enter(paramNames.
at(
i));
1339 data[dataIndex] = stringIndex;
1364 data[dataIndex + 1] = typeInfo;
1374 for (
const auto &enumerator :
d->enumerators) {
1375 [[maybe_unused]]
int name =
strings.enter(enumerator.name);
1376 [[maybe_unused]]
int enumName =
strings.enter(enumerator.enumName);
1377 [[maybe_unused]]
int isFlag = enumerator.isFlag ?
EnumIsFlag : 0;
1378 [[maybe_unused]]
int isScoped = enumerator.isScoped ?
EnumIsScoped : 0;
1379 int count = enumerator.keys.size();
1380 int enumOffset = enumIndex;
1383 data[dataIndex + 1] = enumName;
1384 data[dataIndex + 2] = isFlag | isScoped;
1386 data[dataIndex + 4] = enumOffset;
1389 [[maybe_unused]]
int keyIndex =
strings.enter(enumerator.keys[
key]);
1391 data[enumOffset++] = keyIndex;
1392 data[enumOffset++] = enumerator.values[
key];
1396 enumIndex += 2 *
count;
1401 for (
const auto &ctor :
d->constructors) {
1402 [[maybe_unused]]
int name =
strings.enter(ctor.name());
1403 int argc = ctor.parameterCount();
1404 [[maybe_unused]]
int tag =
strings.enter(ctor.tag);
1405 [[maybe_unused]]
int attrs = ctor.attributes;
1408 data[dataIndex + 1] = argc;
1409 data[dataIndex + 2] = paramsIndex;
1411 data[dataIndex + 4] = attrs;
1412 data[dataIndex + 5] = parameterMetaTypesIndex;
1415 paramsIndex += 1 + argc * 2;
1416 parameterMetaTypesIndex += argc;
1426 data[enumIndex] = 0;
1429 if (
d->relatedMetaObjects.size() > 0) {
1432 auto objects =
reinterpret_cast<SuperData *
>(
buf +
size);
1437 objects[
index] =
nullptr;
1439 size +=
sizeof(SuperData) * (
d->relatedMetaObjects.size() + 1);
1446 for (
const auto &prop :
d->properties) {
1455 for (
const auto &
method:
d->methods) {
1459 for (
const auto ¶meterType:
method.parameterTypes()) {
1465 for (
const auto &constructor :
d->constructors) {
1466 for (
const auto ¶meterType : constructor.parameterTypes()) {
1494 int size = buildMetaObject<Prepare>(
d,
nullptr, 0);
1495 char *
buf =
reinterpret_cast<char *
>(malloc(
size));
1497 buildMetaObject<Construct>(
d,
buf,
size);
1517 return d->staticMetacallFunction;
1529 d->staticMetacallFunction =
value;
1542 if (_mobj && _index >= 0 && _index <
int(_mobj->d->
methods.size()))
1543 return &(_mobj->d->
methods[_index]);
1544 else if (_mobj && -_index >= 1 && -_index <=
int(_mobj->d->
constructors.size()))
1563 return (-_index) - 1;
1573 return d->methodType();
1587 return d->signature;
1602 return d->returnType;
1630 return d->parameterTypes();
1644 return d->parameterNames;
1658 d->parameterNames =
value;
1726 return (
d->attributes >> 4);
1740 d->attributes = ((
d->attributes & 0x0f) | (
value << 4));
1804 if (_mobj && _index >= 0 && _index <
int(_mobj->d->
properties.size()))
1858 return d->notifySignal != -1;
1871 if (
d &&
d->notifySignal >= 0)
1887 d->notifySignal =
value._index;
1889 d->notifySignal = -1;
1903 d->notifySignal = -1;
2008 return d->flag(
User);
2091 if (
auto d = d_func())
2247 if (
auto d = d_func())
2285 if (_mobj && _index >= 0 && _index <
int(_mobj->d->
enumerators.size()))
2338 d->enumName = alias;
2402 return d->keys.size();
2447 int index =
d->keys.size();
2466 d->values.removeAt(
index);
small capitals from c petite p scientific i
[1]
The QByteArray class provides an array of bytes.
qsizetype indexOf(char c, qsizetype from=0) const
QByteArray left(qsizetype len) const
bool isNull() const noexcept
qsizetype size() const noexcept
const_iterator constEnd() const noexcept
iterator find(const Key &key)
const_iterator constBegin() const noexcept
friend class const_iterator
const_iterator ConstIterator
iterator insert(const Key &key, const T &value)
qsizetype size() const noexcept
void removeAt(qsizetype i)
const_reference at(qsizetype i) const noexcept
void append(parameter_type t)
const QChar * constData() const
for(n=0;n< outline->n_points;n++)
Q_CORE_EXPORT bool isBuiltinType(const QByteArray &type)
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 * method
typedef QByteArray(EGLAPIENTRYP PFNQGSGETDISPLAYSPROC)()
EGLOutputLayerEXT EGLint EGLAttrib value
GLint GLint GLint GLint GLint x
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLsizei GLenum GLenum * types
GLsizei const GLchar ** strings
[1]
GLenum GLenum GLsizei count
GLenum GLuint GLenum GLsizei const GLchar * buf
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLuint GLintptr offset
const char className[16]
[1]
QTextStream out(stdout)
[7]
void writeString(QCborStreamWriter &writer, const QString &str)
[8]
XmlOutput::xml_output tag(const QString &name)