|
Graphviz 14.0.3~dev.20251029.0425
|
#include <common/render.h>#include <stdbool.h>#include <neatogen/hedges.h>#include <neatogen/heap.h>#include <util/alloc.h>Go to the source code of this file.
Data Structures | |
| struct | pq |
Functions | |
| static int | clamp (int lower, double v, int upper) |
| static int | PQbucket (pq_t *pq, Halfedge *he) |
| static bool | gt (double a_y, double a_x, double b_y, double b_x) |
a > b? | |
| void | PQinsert (pq_t *pq, Halfedge *he, Site *v, double offset) |
| void | PQdelete (pq_t *pq, Halfedge *he) |
| bool | PQempty (const pq_t *pq) |
| Point | PQ_min (pq_t *pq) |
| Halfedge * | PQextractmin (pq_t *pq) |
| void | PQcleanup (pq_t *pq) |
| pq_t * | PQinitialize (void) |
|
static |
convert a double to an int, between bounds
| lower | Lower bound to limit to |
| v | Value to convert |
| upper | Upper bound to limit to |
Definition at line 31 of file heap.c.
Referenced by PQbucket().
|
static |
Definition at line 52 of file heap.c.
Referenced by PQinsert().
Definition at line 94 of file heap.c.
References Site::coord, pq::hash, pq::min, NULL, Halfedge::PQnext, Halfedge::vertex, Point::x, Point::y, and Halfedge::ystar.
Referenced by voronoi().
Definition at line 42 of file heap.c.
References clamp(), pq::hashsize, pq::min, ymax, ymin, and Halfedge::ystar.
Referenced by PQdelete(), and PQinsert().
| void PQcleanup | ( | pq_t * | pq | ) |
Definition at line 77 of file heap.c.
References pq::count, pq::hash, last, NULL, PQbucket(), Halfedge::PQnext, and Halfedge::vertex.
Referenced by voronoi().
| bool PQempty | ( | const pq_t * | pq | ) |
| pq_t * PQinitialize | ( | void | ) |
Definition at line 119 of file heap.c.
References gv_alloc(), gv_calloc(), pq::hash, pq::hashsize, and sqrt_nsites.
Referenced by voronoi().
Definition at line 62 of file heap.c.
References Site::coord, pq::count, gt(), pq::hash, last, NULL, PQbucket(), Halfedge::PQnext, Halfedge::vertex, Point::x, Point::y, and Halfedge::ystar.
Referenced by triPath(), and voronoi().