Graphviz  2.41.20170921.2350
Data Structures | Macros | Typedefs | Functions
grid.c File Reference
#include <fdp.h>
#include <grid.h>
#include <macros.h>
Include dependency graph for grid.c:

Go to the source code of this file.

Data Structures

struct  _block
struct  _grid


#define FDP_PRIVATE   1


typedef struct _block block_t
typedef int(* walkfn_t )(Dt_t *, void *, void *)


GridmkGrid (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)(Dt_t *, cell *, Grid *))
cellfindGrid (Grid *g, int i, int j)
int gLength (cell *p)

Macro Definition Documentation

#define FDP_PRIVATE   1

Definition at line 25 of file grid.c.

Typedef Documentation

typedef struct _block block_t
typedef int(* walkfn_t)(Dt_t *, void *, void *)

Definition at line 235 of file grid.c.

Function Documentation

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

Definition at line 221 of file grid.c.

References agnameof(), _grid::data, dtinsert, gridpt::i, gridpt::j, cell::nodes, cell::p, and Verbose.

void adjustGrid ( Grid g,
int  nnodes 

Definition at line 182 of file grid.c.

References _grid::listMem, _grid::listSize, MAX, and N_GNEW.

Referenced by fdp_tLayout().

void clearGrid ( Grid g)

Definition at line 199 of file grid.c.

References _grid::cellCur, _grid::cellMem, _grid::data, dtclear, _grid::listCur, and _grid::listMem.

void delGrid ( Grid g)

Definition at line 210 of file grid.c.

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

Referenced by fdp_tLayout().

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

Definition at line 252 of file grid.c.

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

int gLength ( cell p)

Definition at line 264 of file grid.c.

References _node_list::next, and cell::nodes.

Grid* mkGrid ( int  cellHint)

Definition at line 163 of file grid.c.

References _grid::cellMem, _grid::data, dtopen(), Dtoset, GNEW, _grid::listMem, and _grid::listSize.

Referenced by fdp_tLayout().

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

Definition at line 243 of file grid.c.

References _grid::data, and dtwalk().