1 | #ifndef arbdbt_h_included |
---|
2 | #define arbdbt_h_included |
---|
3 | |
---|
4 | #define GBT_SPECIES_INDEX_SIZE 10000 |
---|
5 | #define GBT_SAI_INDEX_SIZE 1000 |
---|
6 | |
---|
7 | typedef float GBT_LEN; |
---|
8 | |
---|
9 | #define GBT_TREE_ELEMENTS(type) \ |
---|
10 | GB_BOOL is_leaf; \ |
---|
11 | GB_BOOL tree_is_one_piece_of_memory; \ |
---|
12 | type *father,*leftson,*rightson; \ |
---|
13 | GBT_LEN leftlen,rightlen; \ |
---|
14 | GBDATA *gb_node; \ |
---|
15 | char *name; \ |
---|
16 | char *remark_branch |
---|
17 | |
---|
18 | #define CLEAR_GBT_TREE_ELEMENTS(tree_obj_ptr) \ |
---|
19 | (tree_obj_ptr)->is_leaf = GB_FALSE; \ |
---|
20 | (tree_obj_ptr)->tree_is_one_piece_of_memory = GB_FALSE; \ |
---|
21 | (tree_obj_ptr)->father = 0; \ |
---|
22 | (tree_obj_ptr)->leftson = 0; \ |
---|
23 | (tree_obj_ptr)->rightson = 0; \ |
---|
24 | (tree_obj_ptr)->leftlen = 0; \ |
---|
25 | (tree_obj_ptr)->rightlen = 0; \ |
---|
26 | (tree_obj_ptr)->gb_node = 0; \ |
---|
27 | (tree_obj_ptr)->name = 0; \ |
---|
28 | (tree_obj_ptr)->remark_branch = 0 |
---|
29 | |
---|
30 | #define AWAR_SPECIES_DATA "species_data" |
---|
31 | #define AWAR_SPECIES "species" |
---|
32 | |
---|
33 | #define AWAR_SAI_DATA "extended_data" |
---|
34 | #define AWAR_SAI "extended" |
---|
35 | |
---|
36 | #define AWAR_CONFIG_DATA "configuration_data" |
---|
37 | #define AWAR_CONFIG "configuration" |
---|
38 | |
---|
39 | #define AWAR_TREE_DATA "tree_data" |
---|
40 | |
---|
41 | #ifdef FAKE_VIRTUAL_TABLE_POINTER |
---|
42 | typedef FAKE_VIRTUAL_TABLE_POINTER virtualTable; |
---|
43 | #endif |
---|
44 | |
---|
45 | typedef struct gbt_tree_struct { |
---|
46 | #ifdef FAKE_VIRTUAL_TABLE_POINTER |
---|
47 | virtualTable *dummy_virtual; /* simulate pointer to virtual-table used in AP_tree */ |
---|
48 | #endif |
---|
49 | GBT_TREE_ELEMENTS(struct gbt_tree_struct); |
---|
50 | } GBT_TREE; |
---|
51 | |
---|
52 | typedef struct gb_seq_compr_tree { |
---|
53 | #ifdef FAKE_VIRTUAL_TABLE_POINTER |
---|
54 | virtualTable *dummy_virtual; /* simulate pointer to virtual-table used in AP_tree */ |
---|
55 | #endif |
---|
56 | GBT_TREE_ELEMENTS(struct gb_seq_compr_tree); |
---|
57 | int index; /* either master/sequence index */ |
---|
58 | } GB_CTREE; /* @@@ OLI */ |
---|
59 | |
---|
60 | #define GBT_TREE_AWAR_SRT " =:\n=:*=tree_*1:tree_tree_*=tree_*1" |
---|
61 | #define GBT_ALI_AWAR_SRT " =:\n=:*=ali_*1:ali_ali_*=ali_*1" |
---|
62 | |
---|
63 | #define P_(s) s |
---|
64 | |
---|
65 | #if defined(__GNUG__) || defined(__cplusplus) |
---|
66 | extern "C" { |
---|
67 | # include <ad_t_prot.h> |
---|
68 | # ifdef GBL_INCLUDED |
---|
69 | # include <ad_t_lpro.h> |
---|
70 | # endif |
---|
71 | } |
---|
72 | #else |
---|
73 | # include <ad_t_prot.h> |
---|
74 | # ifdef GBL_INCLUDED |
---|
75 | # include <ad_t_lpro.h> |
---|
76 | # endif /* GBL_INCLUDED */ |
---|
77 | #endif /* defined(__GNUG__) || defined(__cplusplus) */ |
---|
78 | |
---|
79 | #undef P_ |
---|
80 | #endif /*arbdbt_h_included*/ |
---|