Graphviz 13.0.0~dev.20241222.1117
Loading...
Searching...
No Matches
grid.h File Reference
#include "config.h"
#include <common/render.h>
#include <cdt/cdt.h>
Include dependency graph for grid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _node_list
 
struct  gridpt
 
struct  cell
 result of partitioning available space, part of maze More...
 

Typedefs

typedef struct _grid Grid
 
typedef struct _node_list node_list
 

Functions

GridmkGrid (int)
 
void adjustGrid (Grid *g, int nnodes)
 
void clearGrid (Grid *)
 
void addGrid (Grid *, int, int, Agnode_t *)
 
void walkGrid (Grid *, int(*)(cell *, Grid *))
 
cellfindGrid (Grid *, int, int)
 
void delGrid (Grid *)
 
int gLength (cell *p)
 

Typedef Documentation

◆ Grid

typedef struct _grid Grid

Definition at line 22 of file grid.h.

◆ node_list

typedef struct _node_list node_list

Function Documentation

◆ addGrid()

void addGrid ( Grid g,
int  i,
int  j,
Agnode_t n 
)
extern

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ adjustGrid()

void adjustGrid ( Grid g,
int  nnodes 
)
extern

Definition at line 178 of file grid.c.

References free(), gv_calloc(), _grid::listMem, _grid::listSize, and MAX.

Referenced by fdp_tLayout().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearGrid()

void clearGrid ( Grid g)
extern

◆ delGrid()

void delGrid ( Grid g)
extern

Definition at line 206 of file grid.c.

References _grid::cellMem, _grid::data, dtclose(), free(), freeBlock(), and _grid::listMem.

Referenced by fdp_tLayout().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findGrid()

cell * findGrid ( Grid g,
int  i,
int  j 
)
extern

Definition at line 247 of file grid.c.

References _grid::data, dtsearch, gridpt::i, gridpt::j, and cell::p.

Referenced by doNeighbor().

Here is the caller graph for this function:

◆ gLength()

int gLength ( cell p)
extern

Definition at line 259 of file grid.c.

References len(), _node_list::next, and cell::nodes.

Referenced by doNeighbor(), and gridRepulse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mkGrid()

Grid * mkGrid ( int  cellHint)
extern

Definition at line 163 of file grid.c.

References _grid::cellMem, _grid::data, dtopen(), Dtoset, gridDisc, and newBlock().

Referenced by fdp_tLayout().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ walkGrid()

void walkGrid ( Grid g,
int(*)(cell *, Grid *)  walkf 
)
extern

Definition at line 238 of file grid.c.

References _grid::data, and dtwalk().

Referenced by gAdjust().

Here is the call graph for this function:
Here is the caller graph for this function: