Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Classes | Public Types | Public Member Functions | Private Attributes | Friends
aglowav::BiClNode00< F > Class Template Reference

Binary node for the cluster and Haar wavelet agglomeration algorithm. More...

#include <tree.hh>

Collaboration diagram for aglowav::BiClNode00< F >:
Collaboration graph
[legend]

List of all members.

Classes

union  NE
 Node -> rght, leaf -> elm. More...

Public Types

typedef F CF
 Type of element (Real || Cmplx)

Public Member Functions

 BiClNode00 (const concepts::Element< F > &elm, const cluster::BBall< F > &ball, BiClNode00< F > *lft)
 Constructor 1 (for a list of leafs, next leaf = left child)
 BiClNode00 (uint idx, BiClNode00< F > &lft, BiClNode00< F > &rght, const concepts::Real3d &c, concepts::Real r, uint nleaf=0)
 Constructor 2 (new node, no leaf)
const concepts::Real3dcenter () const
 Cluster center.
BiClNode00< F > * child (uint j) const
 j-th child of the node
const bem::Constant3d001< F > * element () const
 Element of the node.
uint index () const
 Cluster number.
BiClNode00< F > *& lft ()
BiClNode00< F > * lft () const
 Left child of the node.
uint nleaf () const
 Number of leafs in the subtree of the node.
concepts::Real radius () const
 Cluster radius.
BiClNode00< F > * rght () const
 Right child of the node.

Private Attributes

concepts::Real3d c_
 Cluster center.
uint idx_
 Node number.
BiClNode00< F > * lft_
 Left child of the node.
NE ne_
 Right child or element of the node.
uint nlf_
 Number of leafs in the subtree of the node.
concepts::Real r_
 Cluster radius.

Friends

std::ostream & operator<< (std::ostream &os, const BiClNode00< F > &nd)
 Output.

Detailed Description

template<class F>
class aglowav::BiClNode00< F >

Binary node for the cluster and Haar wavelet agglomeration algorithm.

Definition at line 134 of file tree.hh.


Member Typedef Documentation

template<class F>
typedef F aglowav::BiClNode00< F >::CF

Type of element (Real || Cmplx)

Definition at line 141 of file tree.hh.


Constructor & Destructor Documentation

template<class F>
aglowav::BiClNode00< F >::BiClNode00 ( const concepts::Element< F > &  elm,
const cluster::BBall< F > &  ball,
BiClNode00< F > *  lft 
)

Constructor 1 (for a list of leafs, next leaf = left child)

Exceptions:
MissingFeature
Parameters:
elmElement
ballBounding ball for a element
chldlftLeft child (-> degenerate tree, list, only left child used)
template<class F>
aglowav::BiClNode00< F >::BiClNode00 ( uint  idx,
BiClNode00< F > &  lft,
BiClNode00< F > &  rght,
const concepts::Real3d c,
concepts::Real  r,
uint  nleaf = 0 
)

Constructor 2 (new node, no leaf)

Parameters:
idxNode number
chldlftLeft child
chldrghtRight child
cCluster center
rCluster radius
nleafNumber of leafs

Member Function Documentation

template<class F>
const concepts::Real3d& aglowav::BiClNode00< F >::center ( ) const [inline]

Cluster center.

Definition at line 173 of file tree.hh.

template<class F >
BiClNode00< F > * aglowav::BiClNode00< F >::child ( uint  j) const [inline]

j-th child of the node

Definition at line 203 of file tree.hh.

template<class F >
const bem::Constant3d001< F > * aglowav::BiClNode00< F >::element ( ) const [inline]

Element of the node.

Definition at line 208 of file tree.hh.

template<class F>
uint aglowav::BiClNode00< F >::index ( ) const [inline]

Cluster number.

Definition at line 179 of file tree.hh.

template<class F>
BiClNode00<F>* aglowav::BiClNode00< F >::lft ( ) const [inline]

Left child of the node.

Definition at line 166 of file tree.hh.

template<class F>
BiClNode00<F>*& aglowav::BiClNode00< F >::lft ( ) [inline]

Definition at line 167 of file tree.hh.

template<class F>
uint aglowav::BiClNode00< F >::nleaf ( ) const [inline]

Number of leafs in the subtree of the node.

Definition at line 175 of file tree.hh.

template<class F>
concepts::Real aglowav::BiClNode00< F >::radius ( ) const [inline]

Cluster radius.

Definition at line 177 of file tree.hh.

template<class F>
BiClNode00<F>* aglowav::BiClNode00< F >::rght ( ) const [inline]

Right child of the node.

Definition at line 169 of file tree.hh.


Friends And Related Function Documentation

template<class F>
std::ostream& operator<< ( std::ostream &  os,
const BiClNode00< F > &  nd 
) [friend]

Output.

Definition at line 125 of file tree.hh.


Member Data Documentation

template<class F>
concepts::Real3d aglowav::BiClNode00< F >::c_ [private]

Cluster center.

Definition at line 197 of file tree.hh.

template<class F>
uint aglowav::BiClNode00< F >::idx_ [private]

Node number.

Definition at line 193 of file tree.hh.

template<class F>
BiClNode00<F>* aglowav::BiClNode00< F >::lft_ [private]

Left child of the node.

Definition at line 189 of file tree.hh.

template<class F>
NE aglowav::BiClNode00< F >::ne_ [private]

Right child or element of the node.

Definition at line 191 of file tree.hh.

template<class F>
uint aglowav::BiClNode00< F >::nlf_ [private]

Number of leafs in the subtree of the node.

Definition at line 195 of file tree.hh.

template<class F>
concepts::Real aglowav::BiClNode00< F >::r_ [private]

Cluster radius.

Definition at line 199 of file tree.hh.


The documentation for this class was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)