VTK-m  2.2
Public Types | Public Member Functions | List of all members
vtkm::worklet::ScatterIdentity Struct Reference

A scatter that maps input directly to output. More...

#include <ScatterIdentity.h>

Inheritance diagram for vtkm::worklet::ScatterIdentity:

Public Types

using OutputToInputMapType = vtkm::cont::ArrayHandleIndex
 
using VisitArrayType = vtkm::cont::ArrayHandleConstant< vtkm::IdComponent >
 

Public Member Functions

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

Detailed Description

A scatter that maps input directly to output.

The Scatter classes are responsible for defining how much output is generated based on some sized input. ScatterIdentity establishes a 1 to 1 mapping from input to output (and vice versa). That is, every input element generates one output element associated with it. This is the default for basic maps.

Member Typedef Documentation

◆ OutputToInputMapType

◆ VisitArrayType

Member Function Documentation

◆ GetOutputRange()

template<typename RangeType >
RangeType vtkm::worklet::ScatterIdentity::GetOutputRange ( RangeType  inputRange) const
inline

◆ GetOutputToInputMap() [1/2]

OutputToInputMapType vtkm::worklet::ScatterIdentity::GetOutputToInputMap ( vtkm::Id  inputRange) const
inline

◆ GetOutputToInputMap() [2/2]

OutputToInputMapType vtkm::worklet::ScatterIdentity::GetOutputToInputMap ( vtkm::Id3  inputRange) const
inline

◆ GetVisitArray() [1/2]

VisitArrayType vtkm::worklet::ScatterIdentity::GetVisitArray ( vtkm::Id  inputRange) const
inline

◆ GetVisitArray() [2/2]

VisitArrayType vtkm::worklet::ScatterIdentity::GetVisitArray ( vtkm::Id3  inputRange) const
inline

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