![]() |
This is Unofficial EPICS BASE Doxygen Site
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <limits.h>#include <math.h>#include <time.h>#include "epicsAssert.h"#include "freeList.h"#include "bucketLib.h"
Include dependency graph for bucketLib.c:Go to the source code of this file.
Classes | |
| struct | bucketSET |
Macros | |
| #define | BUCKETID_BIT_WIDTH (sizeof(BUCKETID)*CHAR_BIT) |
| #define | BUCKET_MAX_WIDTH 12 |
Typedefs | |
| typedef BUCKETID | bucketHash(BUCKET *pb, const void *pId) |
| typedef ITEM ** | bucketCompare(ITEM **ppi, const void *pId) |
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 | 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 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... | |
| 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 int epicsStdCall | bucketShow (BUCKET *pb) |
| Display information about a hash table. More... | |
| #define BUCKET_MAX_WIDTH 12 |
Definition at line 70 of file bucketLib.c.
| #define BUCKETID_BIT_WIDTH (sizeof(BUCKETID)*CHAR_BIT) |
Definition at line 65 of file bucketLib.c.
Definition at line 35 of file bucketLib.c.
Definition at line 34 of file bucketLib.c.
| 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.