Last change
on this file was
8488,
checked in by westram, 13 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 | |
---|
18 | struct NSONS; |
---|
19 | |
---|
20 | struct NT_NODE { |
---|
21 | PART *part; |
---|
22 | NSONS *son_list; |
---|
23 | }; |
---|
24 | |
---|
25 | |
---|
26 | struct NSONS { |
---|
27 | NT_NODE *node; |
---|
28 | NSONS *prev, *next; |
---|
29 | }; |
---|
30 | |
---|
31 | |
---|
32 | void ntree_init(const PartitionSize *size); |
---|
33 | void ntree_cleanup(); |
---|
34 | |
---|
35 | int ntree_count_sons(const NT_NODE *tree); |
---|
36 | |
---|
37 | void insert_ntree(PART*& part); |
---|
38 | const NT_NODE *ntree_get(); |
---|
39 | |
---|
40 | #if defined(NTREE_DEBUG_FUNCTIONS) |
---|
41 | void print_ntree(NT_NODE *tree, int indent); |
---|
42 | bool 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.