VTK-m  2.0
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

VTKM_CONT OutputToInputMapType GetOutputToInputMap (vtkm::Id inputRange) const
 
VTKM_CONT OutputToInputMapType GetOutputToInputMap (vtkm::Id3 inputRange) const
 
VTKM_CONT VisitArrayType GetVisitArray (vtkm::Id inputRange) const
 
VTKM_CONT VisitArrayType GetVisitArray (vtkm::Id3 inputRange) const
 
template<typename RangeType >
VTKM_CONT 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 >
VTKM_CONT RangeType vtkm::worklet::ScatterIdentity::GetOutputRange ( RangeType  inputRange) const
inline

◆ GetOutputToInputMap() [1/2]

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

◆ GetOutputToInputMap() [2/2]

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

◆ GetVisitArray() [1/2]

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

◆ GetVisitArray() [2/2]

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

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