mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
96 lines
2.3 KiB
C++
96 lines
2.3 KiB
C++
#include <QMapDataBase>
|
|
#include <QMapNodeBase>
|
|
#include "qmap.h"
|
|
|
|
#include "gen_qmap.h"
|
|
|
|
extern "C" {
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
}
|
|
|
|
QMapNodeBase* QMapNodeBase_new(QMapNodeBase* param1) {
|
|
return new QMapNodeBase(*param1);
|
|
}
|
|
|
|
QMapNodeBase* QMapNodeBase_NextNode(const QMapNodeBase* self) {
|
|
return (QMapNodeBase*) self->nextNode();
|
|
}
|
|
|
|
QMapNodeBase* QMapNodeBase_NextNode2(QMapNodeBase* self) {
|
|
return self->nextNode();
|
|
}
|
|
|
|
QMapNodeBase* QMapNodeBase_PreviousNode(const QMapNodeBase* self) {
|
|
return (QMapNodeBase*) self->previousNode();
|
|
}
|
|
|
|
QMapNodeBase* QMapNodeBase_PreviousNode2(QMapNodeBase* self) {
|
|
return self->previousNode();
|
|
}
|
|
|
|
uintptr_t QMapNodeBase_Color(const QMapNodeBase* self) {
|
|
QMapNodeBase::Color ret = self->color();
|
|
return static_cast<uintptr_t>(ret);
|
|
}
|
|
|
|
void QMapNodeBase_SetColor(QMapNodeBase* self, uintptr_t c) {
|
|
self->setColor(static_cast<QMapNodeBase::Color>(c));
|
|
}
|
|
|
|
QMapNodeBase* QMapNodeBase_Parent(const QMapNodeBase* self) {
|
|
return self->parent();
|
|
}
|
|
|
|
void QMapNodeBase_SetParent(QMapNodeBase* self, QMapNodeBase* pp) {
|
|
self->setParent(pp);
|
|
}
|
|
|
|
void QMapNodeBase_OperatorAssign(QMapNodeBase* self, QMapNodeBase* param1) {
|
|
self->operator=(*param1);
|
|
}
|
|
|
|
void QMapNodeBase_Delete(QMapNodeBase* self) {
|
|
delete self;
|
|
}
|
|
|
|
void QMapDataBase_RotateLeft(QMapDataBase* self, QMapNodeBase* x) {
|
|
self->rotateLeft(x);
|
|
}
|
|
|
|
void QMapDataBase_RotateRight(QMapDataBase* self, QMapNodeBase* x) {
|
|
self->rotateRight(x);
|
|
}
|
|
|
|
void QMapDataBase_Rebalance(QMapDataBase* self, QMapNodeBase* x) {
|
|
self->rebalance(x);
|
|
}
|
|
|
|
void QMapDataBase_FreeNodeAndRebalance(QMapDataBase* self, QMapNodeBase* z) {
|
|
self->freeNodeAndRebalance(z);
|
|
}
|
|
|
|
void QMapDataBase_RecalcMostLeftNode(QMapDataBase* self) {
|
|
self->recalcMostLeftNode();
|
|
}
|
|
|
|
QMapNodeBase* QMapDataBase_CreateNode(QMapDataBase* self, int size, int alignment, QMapNodeBase* parent, bool left) {
|
|
return self->createNode(static_cast<int>(size), static_cast<int>(alignment), parent, left);
|
|
}
|
|
|
|
void QMapDataBase_FreeTree(QMapDataBase* self, QMapNodeBase* root, int alignment) {
|
|
self->freeTree(root, static_cast<int>(alignment));
|
|
}
|
|
|
|
QMapDataBase* QMapDataBase_CreateData() {
|
|
return QMapDataBase::createData();
|
|
}
|
|
|
|
void QMapDataBase_FreeData(QMapDataBase* d) {
|
|
QMapDataBase::freeData(d);
|
|
}
|
|
|
|
void QMapDataBase_Delete(QMapDataBase* self) {
|
|
delete self;
|
|
}
|
|
|