home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
vis-ftp.cs.umass.edu
/
vis-ftp.cs.umass.edu.tar
/
vis-ftp.cs.umass.edu
/
pub
/
Software
/
ASCENDER
/
ascendMar8.tar
/
UMass
/
Triangulate
/
include
/
table.s
< prev
next >
Wrap
Text File
|
1995-04-13
|
3KB
|
112 lines
#ifndef incl_table_s
#define incl_table_s
#include "cvar.h"
FUNCTION_DECL (static TABLEENTRY *tbl_newentry, ());
FUNCTION_DECL (static void tbl_freeentry, (TABLEENTRY *anentry));
FUNCTION_DECL ( BOOLEAN tbl_insert, (
DATA data, /* Data to be entered in the table */
TABLE **table, /* Address of pointer to the table */
FUNCTION_DECL (int (*compare), (DATA, DATA))
/* Function for comparing data */
));
FUNCTION_DECL ( TABLEENTRY *tbl_findentry, (
DATA data,
TABLE **ptable,
int (*compare)(DATA, DATA)));
FUNCTION_DECL ( TABLEENTRY *tbl_nextentry, (
TABLEENTRY *anentry));
FUNCTION_DECL ( TABLEENTRY *tbl_preventry, (
TABLEENTRY *anentry));
FUNCTION_DECL ( TABLEENTRY *tbl_firstentry, (
TABLE *atable));
FUNCTION_DECL ( TABLEENTRY *tbl_lastentry, (
TABLE *atable));
FUNCTION_DECL ( DATA tbl_first, (
TABLE *atable));
FUNCTION_DECL ( DATA tbl_last, (
TABLE *atable));
FUNCTION_DECL ( DATA tbl_find, (
DATA data,
TABLE **ptable,
FUNCTION_DECL (int (*compare), (DATA, DATA))
));
FUNCTION_DECL ( TABLEENTRY *tbl_nextpreorder, (
TABLEENTRY *entry));
FUNCTION_DECL ( int tbl_balance, (
TABLE **F));
FUNCTION_DECL ( int tbl_depth, (
TABLE *table));
FUNCTION_DECL ( BOOLEAN tbl_delete, (
DATA data,
TABLE **table,
FUNCTION_DECL (int (*compare), (DATA, DATA))
));
FUNCTION_DECL ( TABLEENTRY *tbl_firstentryafter, (
DATA data,
TABLE **ptable,
FUNCTION_DECL (int (*compare), (DATA, DATA))
));
FUNCTION_DECL ( TABLEENTRY *tbl_lastentrybefore, (
DATA data,
TABLE **ptable,
FUNCTION_DECL (int (*compare), (DATA, DATA))
));
FUNCTION_DECL ( DATA tbl_firstafter, (
DATA data,
TABLE **ptable,
FUNCTION_DECL (int (*compare), (DATA, DATA))
));
FUNCTION_DECL ( DATA tbl_lastbefore, (
DATA data,
TABLE **ptable,
FUNCTION_DECL (int (*compare), (DATA, DATA))
));
FUNCTION_DECL ( int tbl_check, (
FILE *afile, /* File for output */
TABLE *table, /* The table to be checked */
FUNCTION_DECL (int (*compare), (DATA, DATA)),
/* Function used for comparison */
FUNCTION_DECL (char *(*idfn), (TABLE *))
/* Function used to identify a node */
));
FUNCTION_DECL ( int tbl_dumppreorder, (
FILE *afile, /* File for output */
TABLE *table, /* The table to be checked */
FUNCTION_DECL (char *(*idfn), (TABLE *))
/* Function used to identify a node */
));
FUNCTION_DECL ( int tbl_dumpinorder, (
FILE *afile, /* File for output */
TABLE *table, /* The table to be checked */
FUNCTION_DECL (char *(*idfn), (TABLE *))
/* Function used to identify a node */
));
FUNCTION_DECL ( int tbl_freetable, (
TABLE *atable));
#endif