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 / ascender.tar.Z / ascender.tar / Triangulate / include / table.s < prev    next >
Text File  |  1995-04-13  |  3KB  |  112 lines

  1. #ifndef incl_table_s
  2. #define incl_table_s
  3. #include "cvar.h"
  4.  
  5.  
  6. FUNCTION_DECL (static TABLEENTRY *tbl_newentry, ());
  7.  
  8. FUNCTION_DECL (static void tbl_freeentry, (TABLEENTRY *anentry));
  9.  
  10. FUNCTION_DECL ( BOOLEAN tbl_insert, (
  11.     DATA data,        /* Data to be entered in the table */
  12.     TABLE **table,    /* Address of pointer to the table */
  13.     FUNCTION_DECL (int (*compare), (DATA, DATA))
  14.             /* Function for comparing data */
  15.    ));
  16.  
  17. FUNCTION_DECL ( TABLEENTRY *tbl_findentry, (
  18.         DATA data,
  19.         TABLE **ptable,
  20.         int (*compare)(DATA, DATA)));
  21.  
  22. FUNCTION_DECL ( TABLEENTRY *tbl_nextentry, (
  23.         TABLEENTRY *anentry));
  24.  
  25. FUNCTION_DECL ( TABLEENTRY *tbl_preventry, (
  26.         TABLEENTRY *anentry));
  27.  
  28. FUNCTION_DECL ( TABLEENTRY *tbl_firstentry, (
  29.         TABLE *atable));
  30.  
  31. FUNCTION_DECL ( TABLEENTRY *tbl_lastentry, (
  32.         TABLE *atable));
  33.  
  34. FUNCTION_DECL ( DATA tbl_first, (
  35.         TABLE *atable));
  36.  
  37. FUNCTION_DECL ( DATA tbl_last, (
  38.         TABLE *atable));
  39.  
  40. FUNCTION_DECL ( DATA tbl_find, (
  41.         DATA data,
  42.         TABLE **ptable,
  43.         FUNCTION_DECL (int (*compare), (DATA, DATA))
  44.     ));
  45.  
  46. FUNCTION_DECL ( TABLEENTRY *tbl_nextpreorder, (
  47.         TABLEENTRY *entry));
  48.  
  49. FUNCTION_DECL ( int tbl_balance, (
  50.         TABLE **F));
  51.  
  52. FUNCTION_DECL ( int tbl_depth, (
  53.         TABLE *table));
  54.  
  55. FUNCTION_DECL ( BOOLEAN tbl_delete, (
  56.         DATA data,
  57.         TABLE **table,
  58.         FUNCTION_DECL (int (*compare), (DATA, DATA))
  59.     ));
  60.  
  61. FUNCTION_DECL ( TABLEENTRY *tbl_firstentryafter, (
  62.         DATA data,
  63.         TABLE **ptable,
  64.         FUNCTION_DECL (int (*compare), (DATA, DATA))
  65.     ));
  66.  
  67. FUNCTION_DECL ( TABLEENTRY *tbl_lastentrybefore, (
  68.         DATA data,
  69.         TABLE **ptable,
  70.         FUNCTION_DECL (int (*compare), (DATA, DATA))
  71.     ));
  72.  
  73. FUNCTION_DECL ( DATA tbl_firstafter, (
  74.         DATA data,
  75.         TABLE **ptable,
  76.         FUNCTION_DECL (int (*compare), (DATA, DATA))
  77.     ));
  78.  
  79. FUNCTION_DECL ( DATA tbl_lastbefore, (
  80.         DATA data,
  81.         TABLE **ptable,
  82.         FUNCTION_DECL (int (*compare), (DATA, DATA))
  83.     ));
  84.  
  85. FUNCTION_DECL ( int tbl_check, (
  86.    FILE *afile,        /* File for output */
  87.    TABLE *table,    /* The table to be checked */
  88.    FUNCTION_DECL (int (*compare), (DATA, DATA)),
  89.                /* Function used for comparison */
  90.    FUNCTION_DECL (char *(*idfn), (TABLE *))
  91.             /* Function used to identify a node */
  92.    ));
  93.  
  94. FUNCTION_DECL ( int tbl_dumppreorder, (
  95.    FILE *afile,        /* File for output */
  96.    TABLE *table,    /* The table to be checked */
  97.    FUNCTION_DECL (char *(*idfn), (TABLE *))
  98.             /* Function used to identify a node */
  99.    ));
  100.  
  101. FUNCTION_DECL ( int tbl_dumpinorder, (
  102.    FILE *afile,        /* File for output */
  103.    TABLE *table,    /* The table to be checked */
  104.    FUNCTION_DECL (char *(*idfn), (TABLE *))    
  105.             /* Function used to identify a node */
  106.    ));
  107.  
  108. FUNCTION_DECL ( int tbl_freetable, (
  109.         TABLE *atable));
  110.  
  111. #endif
  112.