PostgreSQL Source Code git master
|
#include "port/pg_bitutils.h"
Go to the source code of this file.
Data Structures | |
struct | SH_TYPE |
struct | SH_ITERATOR |
Typedefs | |
typedef struct SH_TYPE | SH_TYPE |
typedef enum SH_STATUS | SH_STATUS |
typedef struct SH_ITERATOR | SH_ITERATOR |
Enumerations | |
enum | SH_STATUS { SH_STATUS_EMPTY = 0x00 , SH_STATUS_IN_USE = 0x01 } |
Functions | |
SH_SCOPE SH_TYPE * | SH_CREATE (MemoryContext ctx, uint32 nelements, void *private_data) |
SH_SCOPE void | SH_DESTROY (SH_TYPE *tb) |
SH_SCOPE void | SH_RESET (SH_TYPE *tb) |
SH_SCOPE void | SH_GROW (SH_TYPE *tb, uint64 newsize) |
SH_SCOPE SH_ELEMENT_TYPE * | SH_INSERT (SH_TYPE *tb, SH_KEY_TYPE key, bool *found) |
SH_SCOPE SH_ELEMENT_TYPE * | SH_INSERT_HASH (SH_TYPE *tb, SH_KEY_TYPE key, uint32 hash, bool *found) |
SH_SCOPE SH_ELEMENT_TYPE * | SH_LOOKUP (SH_TYPE *tb, SH_KEY_TYPE key) |
SH_SCOPE SH_ELEMENT_TYPE * | SH_LOOKUP_HASH (SH_TYPE *tb, SH_KEY_TYPE key, uint32 hash) |
SH_SCOPE void | SH_DELETE_ITEM (SH_TYPE *tb, SH_ELEMENT_TYPE *entry) |
SH_SCOPE bool | SH_DELETE (SH_TYPE *tb, SH_KEY_TYPE key) |
SH_SCOPE void | SH_START_ITERATE (SH_TYPE *tb, SH_ITERATOR *iter) |
SH_SCOPE void | SH_START_ITERATE_AT (SH_TYPE *tb, SH_ITERATOR *iter, uint32 at) |
SH_SCOPE SH_ELEMENT_TYPE * | SH_ITERATE (SH_TYPE *tb, SH_ITERATOR *iter) |
SH_SCOPE void | SH_STAT (SH_TYPE *tb) |
#define SH_ALLOCATE SH_MAKE_NAME(allocate) |
Definition at line 126 of file simplehash.h.
#define SH_COMPUTE_SIZE SH_MAKE_NAME(compute_size) |
Definition at line 131 of file simplehash.h.
#define SH_CREATE SH_MAKE_NAME(create) |
Definition at line 113 of file simplehash.h.
#define SH_DELETE SH_MAKE_NAME(delete) |
Definition at line 119 of file simplehash.h.
#define SH_DELETE_ITEM SH_MAKE_NAME(delete_item) |
Definition at line 118 of file simplehash.h.
#define SH_DESTROY SH_MAKE_NAME(destroy) |
Definition at line 114 of file simplehash.h.
#define SH_DISTANCE_FROM_OPTIMAL SH_MAKE_NAME(distance) |
Definition at line 135 of file simplehash.h.
#define SH_ENTRY_HASH SH_MAKE_NAME(entry_hash) |
Definition at line 137 of file simplehash.h.
#define SH_FREE SH_MAKE_NAME(free) |
Definition at line 127 of file simplehash.h.
#define SH_GROW SH_MAKE_NAME(grow) |
Definition at line 122 of file simplehash.h.
#define SH_INITIAL_BUCKET SH_MAKE_NAME(initial_bucket) |
Definition at line 136 of file simplehash.h.
#define SH_INSERT SH_MAKE_NAME(insert) |
Definition at line 116 of file simplehash.h.
#define SH_INSERT_HASH SH_MAKE_NAME(insert_hash) |
Definition at line 117 of file simplehash.h.
#define SH_INSERT_HASH_INTERNAL SH_MAKE_NAME(insert_hash_internal) |
Definition at line 138 of file simplehash.h.
#define SH_ITERATE SH_MAKE_NAME(iterate) |
Definition at line 125 of file simplehash.h.
#define SH_ITERATOR SH_MAKE_NAME(iterator) |
Definition at line 110 of file simplehash.h.
#define SH_LOOKUP SH_MAKE_NAME(lookup) |
Definition at line 120 of file simplehash.h.
#define SH_LOOKUP_HASH SH_MAKE_NAME(lookup_hash) |
Definition at line 121 of file simplehash.h.
#define SH_LOOKUP_HASH_INTERNAL SH_MAKE_NAME(lookup_hash_internal) |
Definition at line 139 of file simplehash.h.
#define SH_MAKE_NAME | ( | name | ) | SH_MAKE_NAME_(SH_MAKE_PREFIX(SH_PREFIX),name) |
Definition at line 100 of file simplehash.h.
#define SH_NEXT SH_MAKE_NAME(next) |
Definition at line 133 of file simplehash.h.
#define SH_PREV SH_MAKE_NAME(prev) |
Definition at line 134 of file simplehash.h.
#define SH_RESET SH_MAKE_NAME(reset) |
Definition at line 115 of file simplehash.h.
#define SH_START_ITERATE SH_MAKE_NAME(start_iterate) |
Definition at line 123 of file simplehash.h.
#define SH_START_ITERATE_AT SH_MAKE_NAME(start_iterate_at) |
Definition at line 124 of file simplehash.h.
#define SH_STAT SH_MAKE_NAME(stat) |
Definition at line 128 of file simplehash.h.
#define SH_STATUS SH_MAKE_NAME(status) |
Definition at line 107 of file simplehash.h.
#define SH_STATUS_EMPTY SH_MAKE_NAME(SH_EMPTY) |
Definition at line 108 of file simplehash.h.
#define SH_STATUS_IN_USE SH_MAKE_NAME(SH_IN_USE) |
Definition at line 109 of file simplehash.h.
#define SH_TYPE SH_MAKE_NAME(hash) |
Definition at line 106 of file simplehash.h.
#define SH_UPDATE_PARAMETERS SH_MAKE_NAME(update_parameters) |
Definition at line 132 of file simplehash.h.
typedef struct SH_ITERATOR SH_ITERATOR |
enum SH_STATUS |
Enumerator | |
---|---|
SH_STATUS_EMPTY | |
SH_STATUS_IN_USE |
Definition at line 175 of file simplehash.h.
SH_SCOPE SH_TYPE * SH_CREATE | ( | MemoryContext | ctx, |
uint32 | nelements, | ||
void * | private_data | ||
) |
SH_SCOPE bool SH_DELETE | ( | SH_TYPE * | tb, |
SH_KEY_TYPE | key | ||
) |
SH_SCOPE void SH_DELETE_ITEM | ( | SH_TYPE * | tb, |
SH_ELEMENT_TYPE * | entry | ||
) |
SH_SCOPE SH_ELEMENT_TYPE * SH_INSERT | ( | SH_TYPE * | tb, |
SH_KEY_TYPE | key, | ||
bool * | found | ||
) |
SH_SCOPE SH_ELEMENT_TYPE * SH_INSERT_HASH | ( | SH_TYPE * | tb, |
SH_KEY_TYPE | key, | ||
uint32 | hash, | ||
bool * | found | ||
) |
SH_SCOPE SH_ELEMENT_TYPE * SH_ITERATE | ( | SH_TYPE * | tb, |
SH_ITERATOR * | iter | ||
) |
SH_SCOPE SH_ELEMENT_TYPE * SH_LOOKUP | ( | SH_TYPE * | tb, |
SH_KEY_TYPE | key | ||
) |
SH_SCOPE SH_ELEMENT_TYPE * SH_LOOKUP_HASH | ( | SH_TYPE * | tb, |
SH_KEY_TYPE | key, | ||
uint32 | hash | ||
) |
SH_SCOPE void SH_START_ITERATE | ( | SH_TYPE * | tb, |
SH_ITERATOR * | iter | ||
) |
SH_SCOPE void SH_START_ITERATE_AT | ( | SH_TYPE * | tb, |
SH_ITERATOR * | iter, | ||
uint32 | at | ||
) |