Node of a cluster tree. More...
#include <tree.hh>

Classes | |
| union | CE |
| Data structure to hold a pointer to an element or a child cluster. More... | |
Public Types | |
| typedef F | CF |
| Typedef used for interface (trait) of the cluster tree. | |
Public Member Functions | |
| const concepts::Real3d & | center () const |
| Center of the cluster. | |
| Cluster< F > * | child (uint j) const |
| j-th child of the cluster if the cluster is not a leaf | |
| Cluster< F > * | child () const |
| First child of the cluster if the cluster is not a leaf. | |
| Cluster (uint idx, Cluster< F > &chld, const concepts::Real3d &c, concepts::Real r, uint nlf=0) | |
| Constructor if Cluster is not a leaf in the tree. | |
| Cluster (const concepts::Element< F > &elm, const BBall< F > &ball, Cluster< F > *lnk) | |
| Constructor if Cluster is a leaf in the tree. | |
| const concepts::Element< F > * | element () const |
| Returns element if the cluster is a leaf. | |
| uint | index () const |
| Index (number) of the cluster. | |
| std::ostream & | info (std::ostream &os) const |
| Cluster< F > * | link () const |
| Neighbouring cluster. | |
| Cluster< F > *& | link () |
| uint | nleaf () const |
| Number of leafs of the cluster. | |
| concepts::Real | radius () const |
| Radius of the cluster. | |
Private Attributes | |
| concepts::Real3d | c_ |
| Cluster center. | |
| CE | ce_ |
| Child cluster or element. | |
| uint | idx_ |
| Index (number) | |
| Cluster< F > * | lnk_ |
| Neighbouring cluster. | |
| uint | nlf_ |
| Number of leafs. | |
| concepts::Real | r_ |
| Cluster radius. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Cluster< F > &clst) |
Node of a cluster tree.
| F | Field (Real or Cmplx) |
| typedef F cluster::Cluster< F >::CF |
| cluster::Cluster< F >::Cluster | ( | const concepts::Element< F > & | elm, |
| const BBall< F > & | ball, | ||
| Cluster< F > * | lnk | ||
| ) |
| cluster::Cluster< F >::Cluster | ( | uint | idx, |
| Cluster< F > & | chld, | ||
| const concepts::Real3d & | c, | ||
| concepts::Real | r, | ||
| uint | nlf = 0 |
||
| ) |
| const concepts::Real3d& cluster::Cluster< F >::center | ( | ) | const [inline] |
| Cluster< F > * cluster::Cluster< F >::child | ( | ) | const [inline] |
| Cluster< F > * cluster::Cluster< F >::child | ( | uint | j | ) | const [inline] |
| const concepts::Element< F > * cluster::Cluster< F >::element | ( | ) | const [inline] |
| uint cluster::Cluster< F >::index | ( | ) | const [inline] |
| std::ostream & cluster::Cluster< F >::info | ( | std::ostream & | os | ) | const |
| Cluster<F>* cluster::Cluster< F >::link | ( | ) | const [inline] |
| Cluster<F>*& cluster::Cluster< F >::link | ( | ) | [inline] |
| uint cluster::Cluster< F >::nleaf | ( | ) | const [inline] |
| concepts::Real cluster::Cluster< F >::radius | ( | ) | const [inline] |
| std::ostream& operator<< | ( | std::ostream & | os, |
| const Cluster< F > & | clst | ||
| ) | [friend] |
concepts::Real3d cluster::Cluster< F >::c_ [private] |
CE cluster::Cluster< F >::ce_ [private] |
uint cluster::Cluster< F >::idx_ [private] |
Cluster<F>* cluster::Cluster< F >::lnk_ [private] |
uint cluster::Cluster< F >::nlf_ [private] |
concepts::Real cluster::Cluster< F >::r_ [private] |