"Fossies" - the Fresh Open Source Software Archive

Member "wp2latex-3.82/sources.cc/word/bintree.h" (19 Apr 2003, 798 Bytes) of package /linux/misc/wp2latex-3.82.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "bintree.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef BinTree
    2 #define BinTree
    3 /* Caolan.McNamara@ul.ie */
    4 
    5 /* modify these lines to establish data type */
    6 
    7 #ifdef __cplusplus
    8 extern "C" {
    9 #endif
   10 
   11 typedef struct Node_ {
   12     struct Node_ *Left;     /* left child */
   13     struct Node_ *Right;    /* right child */
   14     struct Node_ *Parent;   /* parent */
   15     void *Data;         /* data stored in node */
   16 } Node;
   17 
   18 
   19 
   20 typedef struct BintreeInfo_ {
   21     Node *Root;
   22     int (*CompLT) (void *, void *);
   23     int (*CompEQ) (void *, void *);
   24     int no_in_tree;
   25 } BintreeInfo;
   26 
   27 
   28 void InitBintree (BintreeInfo *, int (*)(void *, void *),
   29           int (*)(void *, void *));
   30 Node *InsertNode (BintreeInfo *, void *);
   31 void wvDeleteNode (BintreeInfo *, Node *);
   32 Node *FindNode (BintreeInfo *, void *);
   33 Node *NextNode (BintreeInfo *, Node *);
   34 
   35 
   36 #ifdef __cplusplus
   37 }
   38 #endif
   39 
   40 #endif