Graphviz 13.0.0~dev.20241220.2304
|
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <cgraph/cghdr.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdlib.h>
#include <util/alloc.h>
Go to the source code of this file.
Data Structures | |
struct | state_t |
information the ID allocator needs to do its job More... | |
Functions | |
static void * | idopen (Agraph_t *g, Agdisc_t *disc) |
static long | idmap (void *state, int objtype, char *str, IDTYPE *id, int createflag) |
static long | idalloc (void *state, int objtype, IDTYPE request) |
static void | idfree (void *state, int objtype, IDTYPE id) |
static char * | idprint (void *state, int objtype, IDTYPE id) |
static void | idregister (void *state, int objtype, void *obj) |
int | agmapnametoid (Agraph_t *g, int objtype, char *str, IDTYPE *result, bool createflag) |
int | agallocid (Agraph_t *g, int objtype, IDTYPE request) |
void | agfreeid (Agraph_t *g, int objtype, IDTYPE id) |
char * | agnameof (void *obj) |
returns a string descriptor for the object. | |
void | agregister (Agraph_t *g, int objtype, void *obj) |
Variables | |
Agiddisc_t | AgIdDisc |
Definition at line 141 of file id.c.
References AGCLOS, and AGDISC.
Referenced by agidedge(), agidnode(), and agidsubg().
Definition at line 146 of file id.c.
References AGCLOS, AGDISC, aginternalmapdelete(), and id.
Referenced by agclose(), agdeledge(), agdelnode(), agrelabel_node(), and agrename().
Definition at line 112 of file id.c.
References AGCLOS, AGDISC, aginternalmapinsert(), aginternalmaplookup(), LOCALNAMEPREFIX, Agiddisc_s::map, NULL, and str.
Referenced by agedge(), agfindnode_by_name(), agnode(), agopen(), agrelabel_node(), agrename(), and agsubg().
void agregister | ( | Agraph_t * | g, |
int | objtype, | ||
void * | obj | ||
) |
|
static |
|
static |
Definition at line 75 of file id.c.
References agstrfree(), and state_t::g.
|
static |
Definition at line 41 of file id.c.
References agstrbind(), agstrdup(), state_t::counter, state_t::g, and str.
Definition at line 32 of file id.c.
References disc, and gv_alloc().
|
static |