2024-08-25 16:08:24 +12:00
|
|
|
#include <QHashData>
|
2024-08-29 19:01:51 +12:00
|
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QHashData__Node
|
2024-08-25 16:08:24 +12:00
|
|
|
#include <QHashDummyValue>
|
2024-10-16 18:07:56 +13:00
|
|
|
#include <qhash.h>
|
2024-08-29 19:01:51 +12:00
|
|
|
#include "gen_qhash.h"
|
2024-09-15 10:29:05 +12:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 16:08:24 +12:00
|
|
|
|
2024-09-21 10:32:57 +12:00
|
|
|
void* QHashData_AllocateNode(QHashData* self, int nodeAlign) {
|
|
|
|
return self->allocateNode(static_cast<int>(nodeAlign));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QHashData_FreeNode(QHashData* self, void* node) {
|
|
|
|
self->freeNode(node);
|
|
|
|
}
|
|
|
|
|
2024-08-25 16:08:24 +12:00
|
|
|
bool QHashData_WillGrow(QHashData* self) {
|
|
|
|
return self->willGrow();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QHashData_HasShrunk(QHashData* self) {
|
|
|
|
self->hasShrunk();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QHashData_Rehash(QHashData* self, int hint) {
|
|
|
|
self->rehash(static_cast<int>(hint));
|
|
|
|
}
|
|
|
|
|
2024-08-29 19:01:51 +12:00
|
|
|
QHashData__Node* QHashData_FirstNode(QHashData* self) {
|
|
|
|
return self->firstNode();
|
|
|
|
}
|
|
|
|
|
|
|
|
QHashData__Node* QHashData_NextNode(QHashData__Node* node) {
|
|
|
|
return QHashData::nextNode(node);
|
|
|
|
}
|
|
|
|
|
|
|
|
QHashData__Node* QHashData_PreviousNode(QHashData__Node* node) {
|
|
|
|
return QHashData::previousNode(node);
|
|
|
|
}
|
|
|
|
|
2024-08-25 16:08:24 +12:00
|
|
|
void QHashData_Delete(QHashData* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QHashDummyValue* QHashDummyValue_new() {
|
|
|
|
return new QHashDummyValue();
|
|
|
|
}
|
|
|
|
|
|
|
|
QHashDummyValue* QHashDummyValue_new2(QHashDummyValue* param1) {
|
|
|
|
return new QHashDummyValue(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QHashDummyValue_Delete(QHashDummyValue* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
2024-08-29 19:01:51 +12:00
|
|
|
void QHashData__Node_Delete(QHashData__Node* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|