CoMMA 1.3.2
A geometric agglomerator for unstructured meshes
Loading...
Searching...
No Matches
comma::Node< CoMMAIndexType, CoMMAWeightType, CoMMAIntType > Class Template Reference

Node data structure that represent a node of the tree. More...

#include <Tree.h>

Public Member Functions

 Node (CoMMAIndexType index, CoMMAWeightType volume)
 

Public Attributes

CoMMAIndexType _index
 Index of the cell. More...
 
CoMMAWeightType _volume
 Volume. More...
 
CoMMAIntType _sonc = 0
 Number of son. More...
 
std::shared_ptr< Node_father
 Shared pointer to the father node. More...
 
std::shared_ptr< Node_left_idx
 Shared pointer to the left element. More...
 
std::shared_ptr< Node_right_idx
 Shared pointer to the right element. More...
 
std::shared_ptr< Node_left_son_idx
 Shared pointer to the left element. More...
 

Detailed Description

template<typename CoMMAIndexType, typename CoMMAWeightType, typename CoMMAIntType>
class comma::Node< CoMMAIndexType, CoMMAWeightType, CoMMAIntType >

Node data structure that represent a node of the tree.

Template Parameters
CoMMAIndexTypethe CoMMA index type for the global index of the mesh
CoMMAWeightTypethe CoMMA weight type for the weights (volume or area) of the nodes or edges of the Mesh
CoMMAIntTypethe CoMMA type for integers

Constructor & Destructor Documentation

◆ Node()

template<typename CoMMAIndexType , typename CoMMAWeightType , typename CoMMAIntType >
comma::Node< CoMMAIndexType, CoMMAWeightType, CoMMAIntType >::Node ( CoMMAIndexType  index,
CoMMAWeightType  volume 
)
inline

Member Data Documentation

◆ _father

template<typename CoMMAIndexType , typename CoMMAWeightType , typename CoMMAIntType >
std::shared_ptr<Node> comma::Node< CoMMAIndexType, CoMMAWeightType, CoMMAIntType >::_father

Shared pointer to the father node.

◆ _index

template<typename CoMMAIndexType , typename CoMMAWeightType , typename CoMMAIntType >
CoMMAIndexType comma::Node< CoMMAIndexType, CoMMAWeightType, CoMMAIntType >::_index

Index of the cell.

◆ _left_idx

template<typename CoMMAIndexType , typename CoMMAWeightType , typename CoMMAIntType >
std::shared_ptr<Node> comma::Node< CoMMAIndexType, CoMMAWeightType, CoMMAIntType >::_left_idx

Shared pointer to the left element.

◆ _left_son_idx

template<typename CoMMAIndexType , typename CoMMAWeightType , typename CoMMAIntType >
std::shared_ptr<Node> comma::Node< CoMMAIndexType, CoMMAWeightType, CoMMAIntType >::_left_son_idx

Shared pointer to the left element.

◆ _right_idx

template<typename CoMMAIndexType , typename CoMMAWeightType , typename CoMMAIntType >
std::shared_ptr<Node> comma::Node< CoMMAIndexType, CoMMAWeightType, CoMMAIntType >::_right_idx

Shared pointer to the right element.

◆ _sonc

template<typename CoMMAIndexType , typename CoMMAWeightType , typename CoMMAIntType >
CoMMAIntType comma::Node< CoMMAIndexType, CoMMAWeightType, CoMMAIntType >::_sonc = 0

Number of son.

◆ _volume

template<typename CoMMAIndexType , typename CoMMAWeightType , typename CoMMAIntType >
CoMMAWeightType comma::Node< CoMMAIndexType, CoMMAWeightType, CoMMAIntType >::_volume

Volume.


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