VTK-m  2.0
Public Types | Public Member Functions | Private Member Functions | List of all members
vtkm::worklet::CellAverage Class Reference

#include <CellAverage.h>

Inheritance diagram for vtkm::worklet::CellAverage:
vtkm::worklet::WorkletVisitCellsWithPoints vtkm::worklet::WorkletMapTopology< vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint > vtkm::exec::FunctorBase

Public Types

using ControlSignature = void(CellSetIn cellset, FieldInPoint inPoints, FieldOutCell outCells)
 
using ExecutionSignature = void(PointCount, _2, _3)
 
using InputDomain = _1
 
- Public Types inherited from vtkm::worklet::WorkletVisitCellsWithPoints
using FieldInPoint = FieldInIncident
 
using FieldInCell = FieldInVisit
 
using FieldOutCell = FieldOut
 
using FieldInOutCell = FieldInOut
 
using PointCount = IncidentElementCount
 
using PointIndices = IncidentElementIndices
 
- Public Types inherited from vtkm::worklet::WorkletMapTopology< vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint >
using VisitTopologyType = vtkm::TopologyElementTagCell
 
using IncidentTopologyType = vtkm::TopologyElementTagPoint
 

Public Member Functions

template<typename PointValueVecType , typename OutType >
VTKM_EXEC void operator() (const vtkm::IdComponent &numPoints, const PointValueVecType &pointValues, OutType &average) const
 
- Public Member Functions inherited from vtkm::worklet::WorkletMapTopology< vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint >
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC vtkm::exec::arg::ThreadIndicesTopologyMap< InputDomainType, vtkm::exec::arg::CustomScatterOrMaskTagGetThreadIndices (vtkm::Id threadIndex, const OutToInArrayType &outToIn, const VisitArrayType &visit, const ThreadToOutArrayType &threadToOut, const InputDomainType &connectivity) const
 Topology map worklets use topology map indices. More...
 
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC EnableFnWhen< S &&M, vtkm::exec::arg::ThreadIndicesTopologyMap< InputDomainType, vtkm::exec::arg::DefaultScatterAndMaskTag > > GetThreadIndices (vtkm::Id threadIndex1D, const vtkm::Id3 &threadIndex3D, const OutToInArrayType &vtkmNotUsed(outToIn), const VisitArrayType &vtkmNotUsed(visit), const ThreadToOutArrayType &vtkmNotUsed(threadToOut), const InputDomainType &connectivity) const
 Optimized for ScatterIdentity and MaskNone. More...
 
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC EnableFnWhen<!(S &&M), vtkm::exec::arg::ThreadIndicesTopologyMap< InputDomainType, vtkm::exec::arg::CustomScatterOrMaskTag > > GetThreadIndices (vtkm::Id threadIndex1D, const vtkm::Id3 &threadIndex3D, const OutToInArrayType &outToIn, const VisitArrayType &visit, const ThreadToOutArrayType &threadToOut, const InputDomainType &connectivity) const
 Default version. More...
 

Private Member Functions

template<typename PointValueVecType , typename OutType >
VTKM_EXEC void DoAverage (const vtkm::IdComponent &numPoints, const PointValueVecType &pointValues, OutType &average, std::true_type) const
 
template<typename PointValueVecType , typename OutType >
VTKM_EXEC void DoAverage (const vtkm::IdComponent &vtkmNotUsed(numPoints), const PointValueVecType &vtkmNotUsed(pointValues), OutType &vtkmNotUsed(average), std::false_type) const
 

Member Typedef Documentation

◆ ControlSignature

using vtkm::worklet::CellAverage::ControlSignature = void(CellSetIn cellset, FieldInPoint inPoints, FieldOutCell outCells)

◆ ExecutionSignature

◆ InputDomain

Member Function Documentation

◆ DoAverage() [1/2]

template<typename PointValueVecType , typename OutType >
VTKM_EXEC void vtkm::worklet::CellAverage::DoAverage ( const vtkm::IdComponent numPoints,
const PointValueVecType &  pointValues,
OutType &  average,
std::true_type   
) const
inlineprivate

◆ DoAverage() [2/2]

template<typename PointValueVecType , typename OutType >
VTKM_EXEC void vtkm::worklet::CellAverage::DoAverage ( const vtkm::IdComponent vtkmNotUsednumPoints,
const PointValueVecType &  vtkmNotUsedpointValues,
OutType &  vtkmNotUsedaverage,
std::false_type   
) const
inlineprivate

◆ operator()()

template<typename PointValueVecType , typename OutType >
VTKM_EXEC void vtkm::worklet::CellAverage::operator() ( const vtkm::IdComponent numPoints,
const PointValueVecType &  pointValues,
OutType &  average 
) const
inline

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