Graphviz 13.1.3~dev.20250815.1023
Loading...
Searching...
No Matches
heap.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 <neatogen/hedges.h>
18#include <stdbool.h>
19
20#if !defined(__CYGWIN__) && defined(__GNUC__) && !defined(__MINGW32__)
21#define INTERNAL __attribute__((visibility("hidden")))
22#else
23#define INTERNAL /* nothing */
24#endif
25
27typedef struct pq pq_t;
28
33INTERNAL bool PQempty(const pq_t *pq);
35INTERNAL void PQinsert(pq_t *pq, Halfedge *, Site *, double);
36
37#undef INTERNAL
38
39#ifdef __cplusplus
40}
41#endif
#define INTERNAL
Definition heap.h:23
INTERNAL pq_t * PQinitialize(void)
Definition heap.c:122
INTERNAL void PQcleanup(pq_t *pq)
Definition heap.c:115
INTERNAL void PQinsert(pq_t *pq, Halfedge *, Site *, double)
Definition heap.c:63
INTERNAL Halfedge * PQextractmin(pq_t *pq)
Definition heap.c:108
INTERNAL void PQdelete(pq_t *pq, Halfedge *)
Definition heap.c:79
INTERNAL Point PQ_min(pq_t *pq)
Definition heap.c:97
INTERNAL bool PQempty(const pq_t *pq)
Definition heap.c:93
Definition site.h:28
Definition heap.c:19