/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/common/pointset.c File Reference

#include "pointset.h"

Include dependency graph for pointset.c:

Go to the source code of this file.

Data Structures

struct  pair
struct  mpair
struct  MPairDisc

Functions

PointSetnewPS (void)
void freePS (PointSet *ps)
void insertPS (PointSet *ps, point pt)
void addPS (PointSet *ps, int x, int y)
int inPS (PointSet *ps, point pt)
int isInPS (PointSet *ps, int x, int y)
int sizeOf (PointSet *ps)
pointpointsOf (PointSet *ps)
PointMapnewPM (void)
void clearPM (PointMap *ps)
void freePM (PointMap *ps)
int insertPM (PointMap *pm, int x, int y, int v)


Function Documentation

void addPS ( PointSet ps,
int  x,
int  y 
)

Definition at line 80 of file pointset.c.

References dtinsert, point::x, and point::y.

Referenced by fillLine().

void clearPM ( PointMap ps  ) 

Definition at line 177 of file pointset.c.

References dtclear.

void freePM ( PointMap ps  ) 

Definition at line 182 of file pointset.c.

References _dt_s::disc, dtclose(), MPairDisc::flist, free(), mpair::link, and _dtlink_s::right.

void freePS ( PointSet ps  ) 

Definition at line 70 of file pointset.c.

References dtclose().

Referenced by putGraphs().

int inPS ( PointSet ps,
point  pt 
)

Definition at line 89 of file pointset.c.

References dtsearch, and pair::id.

int insertPM ( PointMap pm,
int  x,
int  y,
int  v 
)

Definition at line 196 of file pointset.c.

References dtinsert, mpair::id, mpair::v, point::x, and point::y.

void insertPS ( PointSet ps,
point  pt 
)

Definition at line 75 of file pointset.c.

References dtinsert.

int isInPS ( PointSet ps,
int  x,
int  y 
)

Definition at line 96 of file pointset.c.

References dtsearch, pair::id, point::x, and point::y.

PointMap* newPM ( void   ) 

Definition at line 167 of file pointset.c.

References MPairDisc::disc, dtopen(), Dtoset, MPairDisc::flist, and GNEW.

PointSet* newPS ( void   ) 

Definition at line 65 of file pointset.c.

References dtopen(), and Dtoset.

Referenced by putGraphs().

point* pointsOf ( PointSet ps  ) 

Definition at line 109 of file pointset.c.

References dtflatten(), dtlink, dtsize(), and N_NEW.

int sizeOf ( PointSet ps  ) 

Definition at line 104 of file pointset.c.

References dtsize().


Generated on Mon Mar 31 19:04:50 2008 for Graphviz by  doxygen 1.5.1