Class documentation of Concepts

Loading...
Searching...
No Matches
tree02.hh
Go to the documentation of this file.
1
6#ifndef aglowavTree02_hh
7#define aglowavTree02_hh
8
10#include "cluster/tree03.hh"
11#include "aglowav/tree.hh"
12
13namespace aglowav {
14
15 // **************************************************************** Tree02 **
16
20 template<class BiClNode>
21 class Tree02 : public BiTree<BiClNode>, public cluster::Tree<BiClNode> {
22
23 public:
26 typedef typename Traits::F F;
27
33
35 ~Tree02() {destructor_(root_); delete root_;}
36
38 inline uint nclst() const {return nclst_;}
40 inline uint nleaf() const {return nlf_;}
42 inline const BiClNode* root() const {return root_;}
43
44 private:
46 BiClNode* constructor_(BiClNode* lfset,
49 void destructor_(BiClNode* nd);
50
52 uint nlf_;
54 uint nclst_;
56 BiClNode* root_;
57 };
58
59} // namespace aglowav
60
61#endif // aglowavTree02_hh
cluster::TreeTraits< BiClNode >::F F
Type of element (Real || Cmplx)
Definition tree.hh:106
~Tree02()
Destructor.
Definition tree02.hh:35
Tree02(const concepts::Space< F > &spc, const cluster::BBall< F > &ball)
ClstBiTreeTraits< BiClNode > Traits
How a node has to behave.
Definition tree02.hh:25
const BiClNode * root() const
Root of the tree.
Definition tree02.hh:42
uint nleaf() const
Number of leafs.
Definition tree02.hh:40
uint nclst() const
Number of clusters.
Definition tree02.hh:38