Graphviz
2.41.20171026.1811
Main Page
Data Structures
Files
File List
Globals
lib
neatogen
site.h
Go to the documentation of this file.
1
/* $Id$ $Revision$ */
2
/* vim:set shiftwidth=4 ts=8: */
3
4
/*************************************************************************
5
* Copyright (c) 2011 AT&T Intellectual Property
6
* All rights reserved. This program and the accompanying materials
7
* are made available under the terms of the Eclipse Public License v1.0
8
* which accompanies this distribution, and is available at
9
* http://www.eclipse.org/legal/epl-v10.html
10
*
11
* Contributors: See CVS logs. Details at http://www.graphviz.org/
12
*************************************************************************/
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
18
19
20
#ifndef SITE_H
21
#define SITE_H
22
23
#include "
geometry.h
"
24
25
/* Sites are also used as vertices on line segments */
26
typedef
struct
Site
{
27
Point
coord
;
28
int
sitenbr
;
29
int
refcnt
;
30
}
Site
;
31
32
extern
int
siteidx
;
33
extern
Site
*
bottomsite
;
34
35
extern
void
siteinit
(
void
);
36
extern
Site
*
getsite
(
void
);
37
extern
double
dist
(
Site
*,
Site
*);
/* Distance between two sites */
38
extern
void
deref
(
Site
*);
/* Increment refcnt of site */
39
extern
void
ref
(
Site
*);
/* Decrement refcnt of site */
40
extern
void
makevertex
(
Site
*);
/* Transform a site into a vertex */
41
#endif
42
43
#ifdef __cplusplus
44
}
45
#endif
Site::refcnt
int refcnt
Definition:
site.h:29
bottomsite
Site * bottomsite
Definition:
site.c:20
getsite
Site * getsite()
Definition:
site.c:36
siteinit
void siteinit()
Definition:
site.c:25
Site
Definition:
site.h:26
siteidx
int siteidx
Definition:
site.c:19
deref
void deref(Site *v)
Definition:
site.c:63
ref
void ref(Site *v)
Definition:
site.c:70
Point
Definition:
geometry.h:26
Site
struct Site Site
geometry.h
dist
double dist(Site *s, Site *t)
Definition:
site.c:41
Site::coord
Point coord
Definition:
site.h:27
Site::sitenbr
int sitenbr
Definition:
site.h:28
makevertex
void makevertex(Site *v)
Definition:
site.c:53
Generated by
1.8.5