Viskores  1.0
Public Types | Public Member Functions | Private Attributes | List of all members
viskores::worklet::AveragePointNeighborhood Class Reference

#include <AveragePointNeighborhood.h>

Inheritance diagram for viskores::worklet::AveragePointNeighborhood:
viskores::worklet::WorkletPointNeighborhood viskores::worklet::WorkletNeighborhood viskores::exec::FunctorBase

Public Types

using ControlSignature = void(CellSetIn cellSet, FieldInNeighborhood inputField, FieldOut outputField)
 
using ExecutionSignature = _3(_2, Boundary)
 
using InputDomain = _1
 
- Public Types inherited from viskores::worklet::WorkletPointNeighborhood
template<typename Worklet >
using Dispatcher = viskores::worklet::DispatcherPointNeighborhood< Worklet >
 
template<bool Cond, typename ReturnType >
using EnableFnWhen = typename std::enable_if< Cond, ReturnType >::type
 
- Public Types inherited from viskores::worklet::WorkletNeighborhood
using ScatterType = viskores::worklet::ScatterIdentity
 All worklets must define their scatter operation. More...
 
using BoundaryType = viskores::worklet::BoundaryClamp
 All neighborhood worklets must define their boundary type operation. More...
 

Public Member Functions

 AveragePointNeighborhood (viskores::IdComponent radius)
 
template<typename InputFieldPortalType >
InputFieldPortalType::ValueType operator() (const viskores::exec::FieldNeighborhood< InputFieldPortalType > &inputField, const viskores::exec::BoundaryState &boundary) const
 
- Public Member Functions inherited from viskores::worklet::WorkletPointNeighborhood
template<typename OutToInArrayType , typename VisitArrayType , typename ThreadToOutArrayType , viskores::IdComponent Dimension>
viskores::exec::arg::ThreadIndicesPointNeighborhood GetThreadIndices (viskores::Id threadIndex, const OutToInArrayType &outToIn, const VisitArrayType &visit, const ThreadToOutArrayType &threadToOut, const viskores::exec::ConnectivityStructured< viskores::TopologyElementTagPoint, viskores::TopologyElementTagCell, Dimension > &inputDomain) const
 Point neighborhood worklets use the related thread indices class. More...
 
template<typename OutToInArrayType , typename VisitArrayType , typename ThreadToOutArrayType , typename InputDomainType , bool S = IsScatterIdentity, bool M = IsMaskNone>
EnableFnWhen< S &&M, viskores::exec::arg::ThreadIndicesPointNeighborhoodGetThreadIndices (viskores::Id threadIndex1D, const viskores::Id3 &threadIndex3D, const OutToInArrayType &, const VisitArrayType &, const ThreadToOutArrayType &, const InputDomainType &connectivity) const
 
template<typename OutToInArrayType , typename VisitArrayType , typename ThreadToOutArrayType , typename InputDomainType , bool S = IsScatterIdentity, bool M = IsMaskNone>
EnableFnWhen<!(S &&M), viskores::exec::arg::ThreadIndicesPointNeighborhoodGetThreadIndices (viskores::Id threadIndex1D, const viskores::Id3 &threadIndex3D, const OutToInArrayType &outToIn, const VisitArrayType &visit, const ThreadToOutArrayType &threadToOut, const InputDomainType &connectivity) const
 
- Public Member Functions inherited from viskores::worklet::WorkletNeighborhood
BoundaryType GetBoundaryCondition () const
 In addition to defining the boundary type, the worklet must produce the boundary condition. More...
 

Private Attributes

viskores::IdComponent BoundaryRadius
 

Member Typedef Documentation

◆ ControlSignature

◆ ExecutionSignature

◆ InputDomain

Constructor & Destructor Documentation

◆ AveragePointNeighborhood()

viskores::worklet::AveragePointNeighborhood::AveragePointNeighborhood ( viskores::IdComponent  radius)
inline

Member Function Documentation

◆ operator()()

template<typename InputFieldPortalType >
InputFieldPortalType::ValueType viskores::worklet::AveragePointNeighborhood::operator() ( const viskores::exec::FieldNeighborhood< InputFieldPortalType > &  inputField,
const viskores::exec::BoundaryState boundary 
) const
inline

Member Data Documentation

◆ BoundaryRadius

viskores::IdComponent viskores::worklet::AveragePointNeighborhood::BoundaryRadius
private

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