Class documentation of Concepts

Loading...
Searching...
No Matches
tree01.hh
Go to the documentation of this file.
1
6#ifndef aglowavTree01_hh
7#define aglowavTree01_hh
8
9#include "aglowav/tree.hh"
10
11namespace aglowav {
12
13 // **************************************************************** Tree01 **
14
18 template<class BiClNode>
19 class Tree01 : public BiTree<BiClNode>, public cluster::Tree<BiClNode> {
20
21 public:
24 typedef typename Traits::F F;
25
31
33 virtual inline ~Tree01() {destructor_(root_); delete root_;}
34
36 inline uint nclst() const {return nclst_;}
38 inline uint nleaf() const {return nlf_;}
40 inline const BiClNode* root() const {return root_;}
41
42 private:
44 uint nlf_;
46 uint nclst_;
48 BiClNode* root_;
49
51 BiClNode* constructor_(BiClNode* lfset);
53 void destructor_(BiClNode* clst);
54 };
55
56} // namespace aglowav
57
58#endif // aglowavTree01_hh
cluster::TreeTraits< BiClNode >::F F
Type of element (Real || Cmplx)
Definition tree.hh:106
uint nclst() const
Number of clusters.
Definition tree01.hh:36
ClstBiTreeTraits< BiClNode > Traits
How a node has to behave.
Definition tree01.hh:23
Tree01(const concepts::Space< F > &spc, const cluster::BBall< F > &ball)
uint nleaf() const
Number of leafs.
Definition tree01.hh:38
const BiClNode * root() const
Root of the tree.
Definition tree01.hh:40
virtual ~Tree01()
Destructor.
Definition tree01.hh:33