VTK-m  2.0
Public Types | Public Member Functions | Private Attributes | List of all members
vtkm::worklet::contourtree_distributed::hierarchical_augmenter::AttachmentAndSupernodeComparatorImpl< FieldType > Class Template Reference

Compartor implementation used in HierarchicalAugmenter<FieldType>::ResizeArrays to sort this->SupernodeSorter A comparator that sorts supernode pairs by: More...

#include <AttachmentAndSupernodeComparator.h>

Public Types

using IdArrayPortalType = typename vtkm::worklet::contourtree_augmented::IdArrayType::ReadPortalType
 
using FieldArrayPortalType = typename vtkm::cont::ArrayHandle< FieldType >::ReadPortalType
 

Public Member Functions

VTKM_CONT AttachmentAndSupernodeComparatorImpl (IdArrayPortalType superparentSetPortal, FieldArrayPortalType dataValueSetPortal, IdArrayPortalType globalRegularIdSetPortal)
 
VTKM_EXEC bool operator() (const vtkm::Id &left, const vtkm::Id &right) const
 

Private Attributes

IdArrayPortalType SuperparentSetPortal
 
FieldArrayPortalType DataValueSetPortal
 
IdArrayPortalType GlobalRegularIdSetPortal
 

Detailed Description

template<typename FieldType>
class vtkm::worklet::contourtree_distributed::hierarchical_augmenter::AttachmentAndSupernodeComparatorImpl< FieldType >

Compartor implementation used in HierarchicalAugmenter<FieldType>::ResizeArrays to sort this->SupernodeSorter A comparator that sorts supernode pairs by:

  1. the superparent (ie the superarc into which an attachment point inserts) note that this implicitly sorts on round of insertion as well
  2. data value
  3. global regular ID

The superparent is assumed to have a flag indicating ascending/descending, and this needs to be used to get the correct inwards ordering along each superarc

Member Typedef Documentation

◆ FieldArrayPortalType

◆ IdArrayPortalType

Constructor & Destructor Documentation

◆ AttachmentAndSupernodeComparatorImpl()

template<typename FieldType >
VTKM_CONT vtkm::worklet::contourtree_distributed::hierarchical_augmenter::AttachmentAndSupernodeComparatorImpl< FieldType >::AttachmentAndSupernodeComparatorImpl ( IdArrayPortalType  superparentSetPortal,
FieldArrayPortalType  dataValueSetPortal,
IdArrayPortalType  globalRegularIdSetPortal 
)
inline

Member Function Documentation

◆ operator()()

template<typename FieldType >
VTKM_EXEC bool vtkm::worklet::contourtree_distributed::hierarchical_augmenter::AttachmentAndSupernodeComparatorImpl< FieldType >::operator() ( const vtkm::Id left,
const vtkm::Id right 
) const
inline

Member Data Documentation

◆ DataValueSetPortal

◆ GlobalRegularIdSetPortal

template<typename FieldType >
IdArrayPortalType vtkm::worklet::contourtree_distributed::hierarchical_augmenter::AttachmentAndSupernodeComparatorImpl< FieldType >::GlobalRegularIdSetPortal
private

◆ SuperparentSetPortal


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