You are here:
Concepts
>
Concepts Web
>
Class documentation
Class documentation of Concepts
Loading...
Searching...
No Matches
aglowav
tree02.hh
Go to the documentation of this file.
1
6
#ifndef aglowavTree02_hh
7
#define aglowavTree02_hh
8
9
#include "
basics/exceptions.hh
"
10
#include "
cluster/tree03.hh
"
11
#include "
aglowav/tree.hh
"
12
13
namespace
aglowav
{
14
15
// **************************************************************** Tree02 **
16
20
template
<
class
BiClNode>
21
class
Tree02
:
public
BiTree
<BiClNode>,
public
cluster::Tree
<BiClNode> {
22
23
public
:
25
typedef
ClstBiTreeTraits<BiClNode>
Traits
;
26
typedef
typename
Traits::F
F;
27
32
Tree02
(
const
concepts::Space<F>
& spc,
const
cluster::BBall<F>
& ball);
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,
47
cluster::CebyCenter<BiClNode>
& cby);
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
tree.hh
exceptions.hh
aglowav::BiTree
Definition
tree.hh:88
aglowav::ClstBiTreeTraits
Definition
tree.hh:103
aglowav::ClstBiTreeTraits::F
cluster::TreeTraits< BiClNode >::F F
Type of element (Real || Cmplx)
Definition
tree.hh:106
aglowav::Tree02
Definition
tree02.hh:21
aglowav::Tree02::~Tree02
~Tree02()
Destructor.
Definition
tree02.hh:35
aglowav::Tree02::Tree02
Tree02(const concepts::Space< F > &spc, const cluster::BBall< F > &ball)
aglowav::Tree02::Traits
ClstBiTreeTraits< BiClNode > Traits
How a node has to behave.
Definition
tree02.hh:25
aglowav::Tree02::root
const BiClNode * root() const
Root of the tree.
Definition
tree02.hh:42
aglowav::Tree02::nleaf
uint nleaf() const
Number of leafs.
Definition
tree02.hh:40
aglowav::Tree02::nclst
uint nclst() const
Number of clusters.
Definition
tree02.hh:38
cluster::BBall
Definition
tree.hh:36
cluster::CebyCenter
Definition
tree03.hh:44
cluster::Tree
Definition
tree.hh:285
concepts::Space
Definition
space.hh:44
aglowav
Definition
aglowav.hh:18
tree03.hh
Generated on Wed Sep 13 2023 21:06:18 for Concepts by
1.9.8