2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QHASH_H
|
|
|
|
#define GEN_QHASH_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QHashData;
|
2024-08-29 07:01:51 +00:00
|
|
|
#if defined(WORKAROUND_INNER_CLASS_DEFINITION_QHashData__Node)
|
|
|
|
typedef QHashData::Node QHashData__Node;
|
|
|
|
#else
|
|
|
|
class QHashData__Node;
|
|
|
|
#endif
|
2024-08-25 04:08:24 +00:00
|
|
|
class QHashDummyValue;
|
|
|
|
#else
|
|
|
|
typedef struct QHashData QHashData;
|
2024-08-29 07:01:51 +00:00
|
|
|
typedef struct QHashData__Node QHashData__Node;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QHashDummyValue QHashDummyValue;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
bool QHashData_WillGrow(QHashData* self);
|
|
|
|
void QHashData_HasShrunk(QHashData* self);
|
|
|
|
void QHashData_Rehash(QHashData* self, int hint);
|
2024-08-29 07:01:51 +00:00
|
|
|
QHashData__Node* QHashData_FirstNode(QHashData* self);
|
|
|
|
QHashData__Node* QHashData_NextNode(QHashData__Node* node);
|
|
|
|
QHashData__Node* QHashData_PreviousNode(QHashData__Node* node);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QHashData_Delete(QHashData* self);
|
|
|
|
|
|
|
|
QHashDummyValue* QHashDummyValue_new();
|
|
|
|
QHashDummyValue* QHashDummyValue_new2(QHashDummyValue* param1);
|
|
|
|
void QHashDummyValue_Delete(QHashDummyValue* self);
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QHashData__Node_Delete(QHashData__Node* self);
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|