Classes |
Public Types |
Public Member Functions |
Private Attributes |
Friends |
List of all members
cluster::Cluster< F > Class Template Reference
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. More... | |
Public Member Functions | |
const concepts::Real3d & | center () const |
Center of the cluster. More... | |
Cluster< F > * | child () const |
First child of the cluster if the cluster is not a leaf. More... | |
Cluster< F > * | child (uint j) const |
j-th child of the cluster if the cluster is not a leaf More... | |
Cluster (const concepts::Element< F > &elm, const BBall< F > &ball, Cluster< F > *lnk) | |
Constructor if Cluster is a leaf in the tree. More... | |
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. More... | |
const concepts::Element< F > * | element () const |
Returns element if the cluster is a leaf. More... | |
uint | index () const |
Index (number) of the cluster. More... | |
std::ostream & | info (std::ostream &os) const |
Cluster< F > *& | link () |
Cluster< F > * | link () const |
Neighbouring cluster. More... | |
uint | nleaf () const |
Number of leafs of the cluster. More... | |
concepts::Real | radius () const |
Radius of the cluster. More... | |
Private Attributes | |
concepts::Real3d | c_ |
Cluster center. More... | |
CE | ce_ |
Child cluster or element. More... | |
uint | idx_ |
Index (number) More... | |
Cluster< F > * | lnk_ |
Neighbouring cluster. More... | |
uint | nlf_ |
Number of leafs. More... | |
concepts::Real | r_ |
Cluster radius. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Cluster< F > &clst) |
Detailed Description
template<class F>
class cluster::Cluster< F >
Node of a cluster tree.
- Parameters
-
F Field (Real or Cmplx)
Member Typedef Documentation
◆ CF
template<class F >
typedef F cluster::Cluster< F >::CF |
Constructor & Destructor Documentation
◆ Cluster() [1/2]
template<class F >
cluster::Cluster< F >::Cluster | ( | const concepts::Element< F > & | elm, |
const BBall< F > & | ball, | ||
Cluster< F > * | lnk | ||
) |
◆ Cluster() [2/2]
template<class F >
cluster::Cluster< F >::Cluster | ( | uint | idx, |
Cluster< F > & | chld, | ||
const concepts::Real3d & | c, | ||
concepts::Real | r, | ||
uint | nlf = 0 |
||
) |
Member Function Documentation
◆ center()
template<class F >
|
inline |
◆ child() [1/2]
template<class F >
|
inline |
◆ child() [2/2]
template<class F >
|
inline |
◆ element()
template<class F >
|
inline |
◆ index()
template<class F >
|
inline |
◆ info()
template<class F >
std::ostream & cluster::Cluster< F >::info | ( | std::ostream & | os | ) | const |
◆ link() [1/2]
template<class F >
|
inline |
◆ link() [2/2]
template<class F >
|
inline |
◆ nleaf()
template<class F >
|
inline |
◆ radius()
template<class F >
|
inline |
Friends And Related Function Documentation
◆ operator<<
template<class F >
|
friend |
Member Data Documentation
◆ c_
template<class F >
|
private |
◆ ce_
template<class F >
|
private |
◆ idx_
template<class F >
|
private |
◆ lnk_
template<class F >
|
private |
◆ nlf_
template<class F >
|
private |
◆ r_
template<class F >
|
private |
The documentation for this class was generated from the following file:
- cluster/tree.hh