Line | |
---|
1 | // =============================================================== // |
---|
2 | // // |
---|
3 | // File : AP_TreeSet.hxx // |
---|
4 | // Purpose : function for sets of tree nodes // |
---|
5 | // // |
---|
6 | // Coded by Ralf Westram (coder@reallysoft.de) in January 2017 // |
---|
7 | // http://www.arb-home.de/ // |
---|
8 | // // |
---|
9 | // =============================================================== // |
---|
10 | |
---|
11 | #ifndef AP_TREESET_HXX |
---|
12 | #define AP_TREESET_HXX |
---|
13 | |
---|
14 | #ifndef AP_TREE_HXX |
---|
15 | #include "AP_Tree.hxx" |
---|
16 | #endif |
---|
17 | #ifndef _GLIBCXX_SET |
---|
18 | #include <set> |
---|
19 | #endif |
---|
20 | |
---|
21 | typedef std::set<AP_tree*> AP_tree_set; |
---|
22 | typedef AP_tree_set::iterator AP_tree_set_iter; |
---|
23 | typedef AP_tree_set::const_iterator AP_tree_set_citer; |
---|
24 | |
---|
25 | void collect_enclosing_groups(AP_tree *node, AP_tree_set& groups); |
---|
26 | void collect_contained_groups(AP_tree *node, AP_tree_set& groups); |
---|
27 | |
---|
28 | #else |
---|
29 | #error AP_TreeSet.hxx included twice |
---|
30 | #endif // AP_TREESET_HXX |
---|
Note: See
TracBrowser
for help on using the repository browser.