Viskores  1.0
Public Member Functions | Private Types | Private Attributes | List of all members
viskores::exec::arg::ThreadIndicesReduceByKey Class Reference

Container for thread indices in a reduce by key invocation. More...

#include <ThreadIndicesReduceByKey.h>

Inheritance diagram for viskores::exec::arg::ThreadIndicesReduceByKey:
viskores::exec::arg::ThreadIndicesBasic

Public Member Functions

template<typename P1 , typename P2 >
 ThreadIndicesReduceByKey (viskores::Id threadIndex, viskores::Id inIndex, viskores::IdComponent visitIndex, viskores::Id outIndex, const viskores::exec::internal::ReduceByKeyLookupBase< P1, P2 > &keyLookup)
 
viskores::Id GetValueOffset () const
 
viskores::IdComponent GetNumberOfValues () const
 
- Public Member Functions inherited from viskores::exec::arg::ThreadIndicesBasic
 ThreadIndicesBasic (viskores::Id threadIndex, viskores::Id inIndex, viskores::IdComponent visitIndex, viskores::Id outIndex)
 
viskores::Id GetThreadIndex () const
 The index of the thread or work invocation. More...
 
viskores::Id GetInputIndex () const
 The index into the input domain. More...
 
viskores::Id3 GetInputIndex3D () const
 The 3D index into the input domain. More...
 
viskores::Id GetOutputIndex () const
 The index into the output domain. More...
 
viskores::IdComponent GetVisitIndex () const
 The visit index. More...
 

Private Types

using Superclass = viskores::exec::arg::ThreadIndicesBasic
 

Private Attributes

viskores::Id ValueOffset
 
viskores::IdComponent NumberOfValues
 

Detailed Description

Container for thread indices in a reduce by key invocation.

This specialization of ThreadIndices adds extra indices that deal with a reduce by key. In particular, it save the indices used to map from a unique key index to the group of input values that has that key associated with it.

Member Typedef Documentation

◆ Superclass

Constructor & Destructor Documentation

◆ ThreadIndicesReduceByKey()

template<typename P1 , typename P2 >
viskores::exec::arg::ThreadIndicesReduceByKey::ThreadIndicesReduceByKey ( viskores::Id  threadIndex,
viskores::Id  inIndex,
viskores::IdComponent  visitIndex,
viskores::Id  outIndex,
const viskores::exec::internal::ReduceByKeyLookupBase< P1, P2 > &  keyLookup 
)
inline

Member Function Documentation

◆ GetNumberOfValues()

viskores::IdComponent viskores::exec::arg::ThreadIndicesReduceByKey::GetNumberOfValues ( ) const
inline

◆ GetValueOffset()

viskores::Id viskores::exec::arg::ThreadIndicesReduceByKey::GetValueOffset ( ) const
inline

Member Data Documentation

◆ NumberOfValues

viskores::IdComponent viskores::exec::arg::ThreadIndicesReduceByKey::NumberOfValues
private

◆ ValueOffset

viskores::Id viskores::exec::arg::ThreadIndicesReduceByKey::ValueOffset
private

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