![]() |
This is Unofficial EPICS BASE Doxygen Site
|
A hash table. Do not use for new code. More...
Go to the source code of this file.
Classes | |
struct | item |
Internal: bucket item structure. More... | |
struct | bucket |
Internal: Hash table structure. More... | |
Macros | |
Status values returned by some bucketLib functions | |
#define | BUCKET_SUCCESS S_bucket_success |
A synonym for S_bucket_success. More... | |
#define | S_bucket_success 0 |
Success, must be 0. More... | |
#define | S_bucket_noMemory (M_bucket | 1) /*Memory allocation failed*/ |
Memory allocation failed. More... | |
#define | S_bucket_idInUse (M_bucket | 2) /*Identifier already in use*/ |
Identifier already in use. More... | |
#define | S_bucket_uknId (M_bucket | 3) /*Unknown identifier*/ |
Unknown identifier. More... | |
Typedefs | |
typedef unsigned | BUCKETID |
Internal: bucket identifier. More... | |
typedef struct item | ITEM |
Internal: bucket item structure. More... | |
typedef struct bucket | BUCKET |
Internal: Hash table structure. More... | |
Enumerations | |
enum | buckTypeOfId { bidtUnsigned, bidtPointer, bidtString } |
Internal: bucket key type. More... | |
Functions | |
LIBCOM_API BUCKET *epicsStdCall | bucketCreate (unsigned nHashTableEntries) |
Creates a new hash table. More... | |
LIBCOM_API int epicsStdCall | bucketFree (BUCKET *prb) |
Release memory used by a hash table. More... | |
LIBCOM_API int epicsStdCall | bucketShow (BUCKET *prb) |
Display information about a hash table. More... | |
LIBCOM_API int epicsStdCall | bucketAddItemUnsignedId (BUCKET *prb, const unsigned *pId, const void *pApp) |
Add an item identified by an unsigned int to the table. More... | |
LIBCOM_API int epicsStdCall | bucketAddItemPointerId (BUCKET *prb, void *const *pId, const void *pApp) |
Add an item identified by a pointer to the table. More... | |
LIBCOM_API int epicsStdCall | bucketAddItemStringId (BUCKET *prb, const char *pId, const void *pApp) |
Add an item identified by a string to the table. More... | |
LIBCOM_API int epicsStdCall | bucketRemoveItemUnsignedId (BUCKET *prb, const unsigned *pId) |
Remove an item identified by a string from the table. More... | |
LIBCOM_API int epicsStdCall | bucketRemoveItemPointerId (BUCKET *prb, void *const *pId) |
Remove an item identified by a pointer from the table. More... | |
LIBCOM_API int epicsStdCall | bucketRemoveItemStringId (BUCKET *prb, const char *pId) |
Remove an item identified by a string from the table. More... | |
LIBCOM_API void *epicsStdCall | bucketLookupItemUnsignedId (BUCKET *prb, const unsigned *pId) |
Find an item identified by an unsigned int in the table. More... | |
LIBCOM_API void *epicsStdCall | bucketLookupItemPointerId (BUCKET *prb, void *const *pId) |
Find an item identified by a pointer in the table. More... | |
LIBCOM_API void *epicsStdCall | bucketLookupItemStringId (BUCKET *prb, const char *pId) |
Find an item identified by a string in the table. More... | |
LIBCOM_API void *epicsStdCall | bucketLookupAndRemoveItemUnsignedId (BUCKET *prb, const unsigned *pId) |
Find and delete an item identified by an unsigned int from the table. More... | |
LIBCOM_API void *epicsStdCall | bucketLookupAndRemoveItemPointerId (BUCKET *prb, void *const *pId) |
Find and delete an item identified by a pointer from the table. More... | |
LIBCOM_API void *epicsStdCall | bucketLookupAndRemoveItemStringId (BUCKET *prb, const char *pId) |
Find and delete an item identified by a string from the table. More... | |
A hash table. Do not use for new code.
A hash table for which keys may be unsigned integers, pointers, or strings. This API is used by the IOC's Channel Access Server, but it should not be used by other code.
Definition in file bucketLib.h.
#define BUCKET_SUCCESS S_bucket_success |
A synonym for S_bucket_success.
Definition at line 175 of file bucketLib.h.
#define S_bucket_idInUse (M_bucket | 2) /*Identifier already in use*/ |
Identifier already in use.
Definition at line 187 of file bucketLib.h.
#define S_bucket_noMemory (M_bucket | 1) /*Memory allocation failed*/ |
Memory allocation failed.
Definition at line 183 of file bucketLib.h.
#define S_bucket_success 0 |
Success, must be 0.
Definition at line 179 of file bucketLib.h.
#define S_bucket_uknId (M_bucket | 3) /*Unknown identifier*/ |
Unknown identifier.
Definition at line 191 of file bucketLib.h.
typedef unsigned BUCKETID |
Internal: bucket identifier.
Definition at line 34 of file bucketLib.h.
enum buckTypeOfId |
Internal: bucket key type.
Enumerator | |
---|---|
bidtUnsigned | |
bidtPointer | |
bidtString |
Definition at line 37 of file bucketLib.h.
LIBCOM_API int epicsStdCall bucketAddItemPointerId | ( | BUCKET * | prb, |
void *const * | pId, | ||
const void * | pApp | ||
) |
Add an item identified by a pointer to the table.
*prb | Pointer to the hash table |
*pId | Pointer to the identifier |
*pApp | Pointer to the payload |
Definition at line 313 of file bucketLib.c.
LIBCOM_API int epicsStdCall bucketAddItemStringId | ( | BUCKET * | prb, |
const char * | pId, | ||
const void * | pApp | ||
) |
Add an item identified by a string to the table.
*prb | Pointer to the hash table |
*pId | Pointer to the identifier |
*pApp | Pointer to the payload |
Definition at line 318 of file bucketLib.c.
LIBCOM_API int epicsStdCall bucketAddItemUnsignedId | ( | BUCKET * | prb, |
const unsigned * | pId, | ||
const void * | pApp | ||
) |
Add an item identified by an unsigned int to the table.
*prb | Pointer to the hash table |
*pId | Pointer to the identifier |
*pApp | Pointer to the payload |
Definition at line 308 of file bucketLib.c.
LIBCOM_API BUCKET* epicsStdCall bucketCreate | ( | unsigned | nHashTableEntries | ) |
Creates a new hash table.
nHashTableEntries | Table size |
Definition at line 218 of file bucketLib.c.
LIBCOM_API int epicsStdCall bucketFree | ( | BUCKET * | prb | ) |
Release memory used by a hash table.
*prb | Pointer to the hash table |
Definition at line 285 of file bucketLib.c.
LIBCOM_API void* epicsStdCall bucketLookupAndRemoveItemPointerId | ( | BUCKET * | prb, |
void *const * | pId | ||
) |
Find and delete an item identified by a pointer from the table.
*prb | Pointer to the hash table |
*pId | Pointer to the identifier |
Definition at line 401 of file bucketLib.c.
LIBCOM_API void* epicsStdCall bucketLookupAndRemoveItemStringId | ( | BUCKET * | prb, |
const char * | pId | ||
) |
Find and delete an item identified by a string from the table.
*prb | Pointer to the hash table |
*pId | Pointer to the identifier |
Definition at line 405 of file bucketLib.c.
LIBCOM_API void* epicsStdCall bucketLookupAndRemoveItemUnsignedId | ( | BUCKET * | prb, |
const unsigned * | pId | ||
) |
Find and delete an item identified by an unsigned int from the table.
*prb | Pointer to the hash table |
*pId | Pointer to the identifier |
Definition at line 397 of file bucketLib.c.
LIBCOM_API void* epicsStdCall bucketLookupItemPointerId | ( | BUCKET * | prb, |
void *const * | pId | ||
) |
Find an item identified by a pointer in the table.
*prb | Pointer to the hash table |
*pId | Pointer to the identifier |
Definition at line 440 of file bucketLib.c.
LIBCOM_API void* epicsStdCall bucketLookupItemStringId | ( | BUCKET * | prb, |
const char * | pId | ||
) |
Find an item identified by a string in the table.
*prb | Pointer to the hash table |
*pId | Pointer to the identifier |
Definition at line 445 of file bucketLib.c.
LIBCOM_API void* epicsStdCall bucketLookupItemUnsignedId | ( | BUCKET * | prb, |
const unsigned * | pId | ||
) |
Find an item identified by an unsigned int in the table.
*prb | Pointer to the hash table |
*pId | Pointer to the identifier |
Definition at line 435 of file bucketLib.c.
LIBCOM_API int epicsStdCall bucketRemoveItemPointerId | ( | BUCKET * | prb, |
void *const * | pId | ||
) |
Remove an item identified by a pointer from the table.
*prb | Pointer to the hash table |
*pId | Pointer to the identifier |
Definition at line 420 of file bucketLib.c.
LIBCOM_API int epicsStdCall bucketRemoveItemStringId | ( | BUCKET * | prb, |
const char * | pId | ||
) |
Remove an item identified by a string from the table.
*prb | Pointer to the hash table |
*pId | Pointer to the identifier |
Definition at line 425 of file bucketLib.c.
LIBCOM_API int epicsStdCall bucketRemoveItemUnsignedId | ( | BUCKET * | prb, |
const unsigned * | pId | ||
) |
Remove an item identified by a string from the table.
*prb | Pointer to the hash table |
*pId | Pointer to the identifier |
Definition at line 415 of file bucketLib.c.
LIBCOM_API int epicsStdCall bucketShow | ( | BUCKET * | prb | ) |
Display information about a hash table.
*prb | Pointer to the hash table |
Definition at line 476 of file bucketLib.c.