Viskores  1.0
Public Types | Public Member Functions | List of all members
viskores::worklet::ScatterIdentity Struct Reference

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

#include <ScatterIdentity.h>

Inheritance diagram for viskores::worklet::ScatterIdentity:

Public Types

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

Public Member Functions

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

◆ GetOutputToInputMap() [1/2]

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

◆ GetOutputToInputMap() [2/2]

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

◆ GetVisitArray() [1/2]

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

◆ GetVisitArray() [2/2]

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

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