Graphviz
13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
grid.h
Go to the documentation of this file.
1
/*************************************************************************
2
* Copyright (c) 2011 AT&T Intellectual Property
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* https://www.eclipse.org/legal/epl-v10.html
7
*
8
* Contributors: Details at https://graphviz.org
9
*************************************************************************/
10
11
#pragma once
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
#include "config.h"
18
19
#include <
common/render.h
>
20
#include <
cdt/cdt.h
>
21
22
typedef
struct
_grid
Grid
;
23
24
typedef
struct
_node_list
{
25
Agnode_t
*
node
;
26
struct
_node_list
*
next
;
27
}
node_list
;
28
29
typedef
struct
{
30
int
i
, j;
31
}
gridpt
;
32
33
typedef
struct
{
34
gridpt
p
;
/* index of cell */
35
node_list
*
nodes
;
/* nodes in cell */
36
Dtlink_t
link
;
/* cdt data */
37
}
cell
;
38
39
extern
Grid
*
mkGrid
(
int
);
40
extern
void
adjustGrid
(
Grid
* g,
int
nnodes);
41
extern
void
clearGrid
(
Grid
*);
42
extern
void
addGrid
(
Grid
*,
int
,
int
,
Agnode_t
*);
43
extern
void
walkGrid
(
Grid
*,
int
(*)(
cell
*,
Grid
*));
44
extern
cell
*
findGrid
(
Grid
*,
int
,
int
);
45
extern
void
delGrid
(
Grid
*);
46
extern
int
gLength
(
cell
* p);
47
48
#ifdef __cplusplus
49
}
50
#endif
cdt.h
container data types API
node_list
struct _node_list node_list
adjustGrid
void adjustGrid(Grid *g, int nnodes)
Definition
grid.c:178
gLength
int gLength(cell *p)
Definition
grid.c:259
findGrid
cell * findGrid(Grid *, int, int)
Definition
grid.c:247
clearGrid
void clearGrid(Grid *)
Definition
grid.c:195
delGrid
void delGrid(Grid *)
Definition
grid.c:206
addGrid
void addGrid(Grid *, int, int, Agnode_t *)
Definition
grid.c:216
mkGrid
Grid * mkGrid(int)
Definition
grid.c:163
walkGrid
void walkGrid(Grid *, int(*)(cell *, Grid *))
Definition
grid.c:238
render.h
Agnode_s
Definition
cgraph.h:259
_grid
Definition
grid.c:67
_node_list
Definition
grid.h:24
_node_list::node
Agnode_t * node
Definition
grid.h:25
_node_list::next
struct _node_list * next
Definition
grid.h:26
cell
result of partitioning available space, part of maze
Definition
grid.h:33
cell::nodes
node_list * nodes
Definition
grid.h:35
cell::link
Dtlink_t link
Definition
grid.h:36
cell::p
gridpt p
Definition
grid.h:34
dtlink_s_
Definition
cdt.h:51
gridpt
Definition
grid.h:29
gridpt::i
int i
Definition
grid.h:30
lib
fdpgen
grid.h
Generated by
1.9.8