VTK-m  2.2
Public Types | Public Member Functions | List of all members
vtkm::worklet::ScatterUniform< NumOutputsPerInput > Struct Template Reference

A scatter that maps input to some constant numbers of output. More...

#include <ScatterUniform.h>

Inheritance diagram for vtkm::worklet::ScatterUniform< NumOutputsPerInput >:

Public Types

using OutputToInputMapType = vtkm::cont::ArrayHandleImplicit< detail::FunctorDiv< NumOutputsPerInput > >
 
using VisitArrayType = vtkm::cont::ArrayHandleImplicit< detail::FunctorModulus< NumOutputsPerInput > >
 

Public Member Functions

 ScatterUniform ()=default
 
vtkm::Id GetOutputRange (vtkm::Id inputRange) const
 
vtkm::Id GetOutputRange (vtkm::Id3 inputRange) const
 
template<typename RangeType >
OutputToInputMapType GetOutputToInputMap (RangeType inputRange) const
 
template<typename RangeType >
VisitArrayType GetVisitArray (RangeType inputRange) const
 

Detailed Description

template<vtkm::IdComponent NumOutputsPerInput>
struct vtkm::worklet::ScatterUniform< NumOutputsPerInput >

A scatter that maps input to some constant numbers of output.

The Scatter classes are responsible for defining how much output is generated based on some sized input. ScatterUniform establishes a 1 to N mapping from input to output. That is, every input element generates N elements associated with it where N is the same for every input. The output elements are grouped by the input associated.

Member Typedef Documentation

◆ OutputToInputMapType

template<vtkm::IdComponent NumOutputsPerInput>
using vtkm::worklet::ScatterUniform< NumOutputsPerInput >::OutputToInputMapType = vtkm::cont::ArrayHandleImplicit<detail::FunctorDiv<NumOutputsPerInput> >

◆ VisitArrayType

template<vtkm::IdComponent NumOutputsPerInput>
using vtkm::worklet::ScatterUniform< NumOutputsPerInput >::VisitArrayType = vtkm::cont::ArrayHandleImplicit<detail::FunctorModulus<NumOutputsPerInput> >

Constructor & Destructor Documentation

◆ ScatterUniform()

template<vtkm::IdComponent NumOutputsPerInput>
vtkm::worklet::ScatterUniform< NumOutputsPerInput >::ScatterUniform ( )
default

Member Function Documentation

◆ GetOutputRange() [1/2]

template<vtkm::IdComponent NumOutputsPerInput>
vtkm::Id vtkm::worklet::ScatterUniform< NumOutputsPerInput >::GetOutputRange ( vtkm::Id  inputRange) const
inline

◆ GetOutputRange() [2/2]

template<vtkm::IdComponent NumOutputsPerInput>
vtkm::Id vtkm::worklet::ScatterUniform< NumOutputsPerInput >::GetOutputRange ( vtkm::Id3  inputRange) const
inline

◆ GetOutputToInputMap()

template<vtkm::IdComponent NumOutputsPerInput>
template<typename RangeType >
OutputToInputMapType vtkm::worklet::ScatterUniform< NumOutputsPerInput >::GetOutputToInputMap ( RangeType  inputRange) const
inline

◆ GetVisitArray()

template<vtkm::IdComponent NumOutputsPerInput>
template<typename RangeType >
VisitArrayType vtkm::worklet::ScatterUniform< NumOutputsPerInput >::GetVisitArray ( RangeType  inputRange) const
inline

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