.TH "ttypt/idm.h" 3 "corm" \" -*- nroff -*- .ad l .nh .SH NAME ttypt/idm.h \- ID and index management utilities for Corm\&. .SH SYNOPSIS .br .PP \fR#include '\&./queue\&.h'\fP .br \fR#include \fP .br \fR#include \fP .br .SS "Data Structures" .in +1c .ti -1c .RI "struct \fBids_item\fP" .br .RI "Node representing a stored integer ID\&. " .ti -1c .RI "struct \fBidm_t\fP" .br .RI "Index/ID manager with a free-list and counter\&. " .in -1c .SS "Macros" .in +1c .ti -1c .RI "#define \fBIDM_MISS\fP ((uint32_t)\-1)" .br .RI "Value representing an invalid or missing ID\&. " .in -1c .SS "Typedefs" .in +1c .ti -1c .RI "typedef struct \fBids_item\fP \fBidsi_t\fP" .br .RI "Node representing a stored integer ID\&. " .in -1c .SS "Functions" .in +1c .ti -1c .RI "void \fBids_push\fP (ids_t *list, uint32_t id)" .br .RI "Push an ID into the free list\&. " .ti -1c .RI "uint32_t \fBids_pop\fP (ids_t *list)" .br .RI "Pop an ID from the free list\&. " .ti -1c .RI "void \fBids_drop\fP (ids_t *list)" .br .RI "Free all IDs in the list\&. " .ti -1c .RI "void \fBids_remove\fP (ids_t *list, uint32_t id)" .br .RI "Remove a specific ID from the list\&. " .ti -1c .RI "void \fBids_free\fP (ids_t *list, uint32_t id)" .br .RI "Free a specific ID node\&. " .ti -1c .RI "void \fBidm_drop\fP (\fBidm_t\fP *idm)" .br .RI "Drop all IDs managed by an ID manager\&. " .ti -1c .RI "uint32_t \fBidm_push\fP (\fBidm_t\fP *idm, uint32_t n)" .br .RI "Push IDs up to a given value\&. " .ti -1c .RI "int \fBidm_del\fP (\fBidm_t\fP *idm, uint32_t id)" .br .RI "Delete a specific ID from manager\&. " .ti -1c .RI "uint32_t \fBidm_new\fP (\fBidm_t\fP *idm)" .br .RI "Allocate a new unique ID\&. " .in -1c .SH "Detailed Description" .PP ID and index management utilities for Corm\&. Provides linked-list–based tracking of reusable integer IDs and index allocation routines used internally by Corm\&. .PP License: BSD-2-Clause .SH "Author" .PP Generated automatically by Doxygen for corm from the source code\&.