Graphviz 13.0.0~dev.20250121.0651
|
#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 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) |
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 131 of file id.c.
References AGCLOS, AGDISC, aginternalmapdelete(), and id.
Referenced by agclose(), agdeledge(), agdelnode(), agrelabel_node(), and agrename().
Definition at line 102 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 |
Definition at line 66 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 |