STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::project_cells< Dim, Precision > Struct Template Reference

Functor to project a cell centroid on an axis. More...

Public Member Functions

 project_cells (geom_vector< Dim, Precision > const &axis)
 
template<typename Cell , typename Proj >
void operator() (Cell cell, Proj proj) const
 

Public Types

typedef void result_type
 

Detailed Description

template<int Dim, typename Precision = double>
struct stapl::project_cells< Dim, Precision >

Functor to project a cell centroid on an axis.

Template Parameters
Dimdimension of the mesh.
Precisiontype of centroid coordinates.

Constructor & Destructor Documentation

◆ project_cells()

template<int Dim, typename Precision = double>
stapl::project_cells< Dim, Precision >::project_cells ( geom_vector< Dim, Precision > const &  axis)
Parameters
axisaxis used in the projection.

Member Function Documentation

◆ operator()()

template<int Dim, typename Precision = double>
template<typename Cell , typename Proj >
void stapl::project_cells< Dim, Precision >::operator() ( Cell  cell,
Proj  proj 
) const
Parameters
cellmesh cell.
projpair storing the computed projection and the associated cell id.

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