Graphviz 12.0.1~dev.20240716.0800
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
14extern "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 {
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
container data types API
struct _node_list node_list
void adjustGrid(Grid *g, int nnodes)
Definition grid.c:178
int gLength(cell *p)
Definition grid.c:259
cell * findGrid(Grid *, int, int)
Definition grid.c:247
void clearGrid(Grid *)
Definition grid.c:195
void delGrid(Grid *)
Definition grid.c:206
void addGrid(Grid *, int, int, Agnode_t *)
Definition grid.c:216
Grid * mkGrid(int)
Definition grid.c:163
void walkGrid(Grid *, int(*)(cell *, Grid *))
Definition grid.c:238
Definition grid.c:67
Agnode_t * node
Definition grid.h:25
struct _node_list * next
Definition grid.h:26
result of partitioning available space, part of maze
Definition grid.h:33
node_list * nodes
Definition grid.h:35
Dtlink_t link
Definition grid.h:36
gridpt p
Definition grid.h:34
Definition grid.h:29
int i
Definition grid.h:30