Graphviz 13.0.0~dev.20241222.1117
|
#include <fdpgen/fdp.h>
#include <fdpgen/grid.h>
#include <common/macros.h>
#include <stddef.h>
#include <string.h>
#include <util/alloc.h>
Go to the source code of this file.
Data Structures | |
struct | _block |
struct | _grid |
Macros | |
#define | FDP_PRIVATE 1 |
Typedefs | |
typedef struct _block | block_t |
typedef int(* | walkfn_t) (void *, void *) |
Functions | |
static block_t * | newBlock (int size) |
static void | freeBlock (block_t *b) |
static cell * | getCell (Grid *g) |
static int | ijcmpf (void *point1, void *point2) |
static void * | newCell (void *obj, Dtdisc_t *disc) |
static node_list * | newNode (Grid *g, Agnode_t *n, node_list *nxt) |
Grid * | mkGrid (int cellHint) |
void | adjustGrid (Grid *g, int nnodes) |
void | clearGrid (Grid *g) |
void | delGrid (Grid *g) |
void | addGrid (Grid *g, int i, int j, Agnode_t *n) |
void | walkGrid (Grid *g, int(*walkf)(cell *, Grid *)) |
cell * | findGrid (Grid *g, int i, int j) |
int | gLength (cell *p) |
Variables | |
static Grid | _grid |
static Dtdisc_t | gridDisc |
Definition at line 216 of file grid.c.
References agnameof(), _grid::data, dtinsert, gridpt::i, gridpt::j, newNode(), cell::nodes, cell::p, and Verbose.
Referenced by gAdjust().
void adjustGrid | ( | Grid * | g, |
int | nnodes | ||
) |
Definition at line 178 of file grid.c.
References free(), gv_calloc(), _grid::listMem, _grid::listSize, and MAX.
Referenced by fdp_tLayout().
void clearGrid | ( | Grid * | g | ) |
Definition at line 195 of file grid.c.
References _grid::cellCur, _grid::cellMem, _block::cur, _grid::data, dtclear, _grid::listCur, _grid::listMem, and _block::mem.
void delGrid | ( | Grid * | g | ) |
Definition at line 206 of file grid.c.
References _grid::cellMem, _grid::data, dtclose(), free(), freeBlock(), and _grid::listMem.
Referenced by fdp_tLayout().
Definition at line 247 of file grid.c.
References _grid::data, dtsearch, gridpt::i, gridpt::j, and cell::p.
Referenced by doNeighbor().
|
static |
Definition at line 57 of file grid.c.
References free(), freeBlock(), block::next, and _block::next.
Referenced by delGrid(), and freeBlock().
Definition at line 79 of file grid.c.
References _grid::cellCur, newBlock(), and block::next.
Referenced by newCell().
int gLength | ( | cell * | p | ) |
Definition at line 259 of file grid.c.
References len(), _node_list::next, and cell::nodes.
Referenced by doNeighbor(), and gridRepulse().
|
static |
Grid * mkGrid | ( | int | cellHint | ) |
Definition at line 163 of file grid.c.
References _grid::cellMem, _grid::data, dtopen(), Dtoset, gridDisc, and newBlock().
Referenced by fdp_tLayout().
|
static |
Definition at line 42 of file grid.c.
References gv_alloc(), gv_calloc(), and block::next.
Referenced by getCell(), and mkGrid().
|
static |
Definition at line 138 of file grid.c.
References _grid::listCur, _node_list::next, and _node_list::node.
Referenced by addGrid(), main(), and RBTreeInsert().
Definition at line 238 of file grid.c.
References _grid::data, and dtwalk().
Referenced by gAdjust().