mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
88 lines
2.0 KiB
C++
88 lines
2.0 KiB
C++
|
#include "gen_qmap.h"
|
||
|
#include "qmap.h"
|
||
|
|
||
|
#include <QMapDataBase>
|
||
|
#include <QMapNodeBase>
|
||
|
|
||
|
|
||
|
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(QMapNodeBase* self) {
|
||
|
return (QMapNodeBase*) self->nextNode();
|
||
|
}
|
||
|
|
||
|
QMapNodeBase* QMapNodeBase_NextNode2(QMapNodeBase* self) {
|
||
|
return self->nextNode();
|
||
|
}
|
||
|
|
||
|
QMapNodeBase* QMapNodeBase_PreviousNode(QMapNodeBase* self) {
|
||
|
return (QMapNodeBase*) self->previousNode();
|
||
|
}
|
||
|
|
||
|
QMapNodeBase* QMapNodeBase_PreviousNode2(QMapNodeBase* self) {
|
||
|
return self->previousNode();
|
||
|
}
|
||
|
|
||
|
QMapNodeBase* QMapNodeBase_Parent(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;
|
||
|
}
|
||
|
|