source: branches/profile/CONSENSUS_TREE/CT_ntree.hxx

Last change on this file was 8488, checked in by westram, 12 years ago
  • move globals from CT_part.cxx into class PartitionSize
  • class PART
    • private member variables
    • moved many global methods into
    • stores und updates member-count
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.2 KB
Line 
1// ============================================================= //
2//                                                               //
3//   File      : CT_ntree.hxx                                    //
4//   Purpose   :                                                 //
5//                                                               //
6//   Institute of Microbiology (Technical University Munich)     //
7//   http://www.arb-home.de/                                     //
8//                                                               //
9// ============================================================= //
10
11#ifndef CT_NTREE_HXX
12#define CT_NTREE_HXX
13
14#ifndef CT_PART_HXX
15#include "CT_part.hxx"
16#endif
17
18struct NSONS;
19
20struct NT_NODE {
21    PART  *part;
22    NSONS *son_list;
23};
24
25
26struct NSONS {
27    NT_NODE *node;
28    NSONS   *prev, *next;
29};
30
31
32void ntree_init(const PartitionSize *size);
33void ntree_cleanup();
34
35int ntree_count_sons(const NT_NODE *tree);
36
37void insert_ntree(PART*& part);
38const NT_NODE *ntree_get();
39
40#if defined(NTREE_DEBUG_FUNCTIONS)
41void print_ntree(NT_NODE *tree, int indent);
42bool is_well_formed(const NT_NODE *tree);
43#endif
44
45
46#else
47#error CT_ntree.hxx included twice
48#endif // CT_NTREE_HXX
Note: See TracBrowser for help on using the repository browser.