CoMMA 1.3.2
A geometric agglomerator for unstructured meshes
|
Pure abstract class for a creator of Neighbourhood objects. It can create from scratch or by copy. More...
#include <Neighbourhood.h>
Public Types | |
using | NeighbourhoodBaseType = Neighbourhood< CoMMAIndexType, CoMMAWeightType, CoMMAIntType > |
Shortcut for the Neighborhood object type. More... | |
Public Member Functions | |
NeighbourhoodCreator ()=default | |
Constructor. More... | |
virtual | ~NeighbourhoodCreator ()=default |
Destructor. More... | |
virtual std::shared_ptr< NeighbourhoodBaseType > | create (const std::unordered_set< CoMMAIndexType > &s_neighbours_of_seed, const std::vector< CoMMAWeightType > &priority_weights, const CoMMAIntType dimension) const =0 |
Create a new Neighbourhood object from scratch using the given arguments. More... | |
virtual std::shared_ptr< NeighbourhoodBaseType > | clone (std::shared_ptr< NeighbourhoodBaseType > other) const =0 |
Create a new Neighbourhood object by copy. More... | |
Pure abstract class for a creator of Neighbourhood objects. It can create from scratch or by copy.
CoMMAIndexType | the CoMMA index type for the global index of the mesh |
CoMMAWeightType | the CoMMA weight type for the weights (volume or area) of the nodes or edges of the Mesh |
CoMMAIntType | the CoMMA type for integers |
using comma::NeighbourhoodCreator< CoMMAIndexType, CoMMAWeightType, CoMMAIntType >::NeighbourhoodBaseType = Neighbourhood<CoMMAIndexType, CoMMAWeightType, CoMMAIntType> |
Shortcut for the Neighborhood object type.
|
default |
Constructor.
|
virtualdefault |
Destructor.
|
pure virtual |
Create a new Neighbourhood object by copy.
[in] | other | Shared pointer to an existing Neighbourhood object |
Implemented in comma::NeighbourhoodExtendedCreator< CoMMAIndexType, CoMMAWeightType, CoMMAIntType >, and comma::NeighbourhoodPureFrontCreator< CoMMAIndexType, CoMMAWeightType, CoMMAIntType >.
|
pure virtual |
Create a new Neighbourhood object from scratch using the given arguments.
[in] | s_neighbours_of_seed | Set of the neighbours of the given cell chosen as seed |
[in] | priority_weights | Weights used to set up the order of the neighbours to visit |
[in] | dimension | Dimension of the problem |
Implemented in comma::NeighbourhoodExtendedCreator< CoMMAIndexType, CoMMAWeightType, CoMMAIntType >, and comma::NeighbourhoodPureFrontCreator< CoMMAIndexType, CoMMAWeightType, CoMMAIntType >.