|
LAR Library
1.14
|
tab.h File Reference
Table management. More...
#include <larlib/base.h>
Go to the source code of this file.
Typedefs | |
| typedef struct table_t | table_t |
| Opaque type of a table instance. | |
Enumerations | |
| enum | tabErrors_t { TAB_ERR_DELETED = 1 } |
| Return codes specific to this module. More... | |
Functions | |
| int | tabOpen (const char *fname, table_t **t) |
| Open an existing table. More... | |
| int | tabCreate (const char *fname, int recSize, table_t **t) |
| Create a new table or reset an existing one. More... | |
| void | tabClose (table_t *t) |
| Close a table_t instance. More... | |
| int | tabFlush (table_t *t) |
| Force an update of the table file. More... | |
| int | tabRecSize (table_t *t) |
| Return the record size for a table. More... | |
| int | tabGetStamp (table_t *t, uint32_t *stamp) |
| Return the stamp value of the table. More... | |
| int | tabSetStamp (table_t *t, uint32_t stamp) |
| Modify the stamp value of the table. More... | |
| int | tabGet (table_t *t, int recn, void *recp) |
| Read an entry from the table. More... | |
| int | tabPut (table_t *t, int recn, const void *recp) |
| Write or update an entry on the table. More... | |
| int | tabAppend (table_t *t, const void *recp) |
| Append an entry to the table. More... | |
| int | tabSize (table_t *t) |
| Return the total number of entries on the table. More... | |
| int | tabCount (table_t *t) |
| Return the number of non-deleted entries on the table. More... | |
| int | tabDelete (table_t *t, int recn) |
| Mark an entry as deleted. More... | |
| int | tabUnDelete (table_t *t, int recn) |
| Remove the deleted mark of an entry. More... | |
| int | tabPack (const char *fname) |
| Permanently remove from the table all entries marked as deleted. More... | |
| int | tabGoFirst (table_t *t) |
| Move the current entry marker to the first (zero'th) element on the table. More... | |
| int | tabGetNext (table_t *t, void *recp) |
| Read the current entry and move to the next. More... | |
| int | tabGetPrev (table_t *t, void *recp) |
| Read the previous element. More... | |
| int | tabGoLast (table_t *t) |
| Move to the last element on the table. More... | |
| int | tabFindNext (table_t *t, void *recp, const void *keyp, int(*cmpFn)(const void *recp, const void *keyp)) |
| Search incrementally the table for an entry. More... | |
| int | tabFind (table_t *t, void *recp, const void *keyp, int(*cmpFn)(const void *recp, const void *keyp)) |
| Search the table for an element. More... | |
Detailed Description
Table management.
Generated on Mon Mar 27 2017 15:42:52 for LAR Library by
1.8.9.1