/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/fdpgen/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

Defines

#define FDP_PRIVATE   1
#define offsetof(typ, fld)   ((int)(&(((typ*)0)->fld)))

Typedefs

typedef _block block_t
typedef int(*) walkfn_t (Dt_t *, Void_t *, Void_t *)

Functions

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)


Define Documentation

#define FDP_PRIVATE   1

Definition at line 28 of file grid.c.

#define offsetof ( typ,
fld   )     ((int)(&(((typ*)0)->fld)))

Definition at line 101 of file grid.c.

Referenced by aghtmlstr(), agNEWdict(), agstrdup(), agstrdup_html(), and agstrfree().


Typedef Documentation

typedef struct _block block_t

typedef int(*) walkfn_t(Dt_t *, Void_t *, Void_t *)

Definition at line 243 of file grid.c.


Function Documentation

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

Definition at line 229 of file grid.c.

References _grid::data, dtinsert, gridpt::i, gridpt::j, Agnode_t::name, cell::nodes, cell::p, and Verbose.

void adjustGrid ( Grid g,
int  nnodes 
)

Definition at line 190 of file grid.c.

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

Referenced by fdp_tLayout().

void clearGrid ( Grid g  ) 

Definition at line 207 of file grid.c.

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

void delGrid ( Grid g  ) 

Definition at line 218 of file grid.c.

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

Referenced by fdp_tLayout().

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

Definition at line 260 of file grid.c.

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

int gLength ( cell p  ) 

Definition at line 272 of file grid.c.

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

Grid* mkGrid ( int  cellHint  ) 

Definition at line 171 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 251 of file grid.c.

References _grid::data, and dtwalk().


Generated on Mon Mar 31 19:05:37 2008 for Graphviz by  doxygen 1.5.1