2024-10-20 05:21:03 +00:00
|
|
|
#include <QHashSeed>
|
|
|
|
#include <qhashfunctions.h>
|
|
|
|
#include "gen_qhashfunctions.h"
|
2024-12-11 06:55:47 +00:00
|
|
|
|
|
|
|
#ifndef _Bool
|
|
|
|
#define _Bool bool
|
|
|
|
#endif
|
2024-10-20 05:21:03 +00:00
|
|
|
#include "_cgo_export.h"
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QHashSeed* QHashSeed_new() {
|
|
|
|
return new QHashSeed();
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QHashSeed* QHashSeed_new2(size_t d) {
|
|
|
|
return new QHashSeed(static_cast<size_t>(d));
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QHashSeed* QHashSeed_GlobalSeed() {
|
|
|
|
return new QHashSeed(QHashSeed::globalSeed());
|
|
|
|
}
|
|
|
|
|
|
|
|
void QHashSeed_SetDeterministicGlobalSeed() {
|
|
|
|
QHashSeed::setDeterministicGlobalSeed();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QHashSeed_ResetRandomGlobalSeed() {
|
|
|
|
QHashSeed::resetRandomGlobalSeed();
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QHashSeed_Delete(QHashSeed* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QHashSeed*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-10-20 05:21:03 +00:00
|
|
|
}
|
|
|
|
|