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

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

#include <AttachmentAndSupernodeComparator.h>

Inheritance diagram for vtkm::worklet::contourtree_distributed::hierarchical_augmenter::AttachmentAndSupernodeComparator< FieldType >:
vtkm::cont::ExecutionObjectBase

Public Member Functions

VTKM_CONT AttachmentAndSupernodeComparator (const vtkm::worklet::contourtree_augmented::IdArrayType &superparentSet, const vtkm::cont::ArrayHandle< FieldType > &dataValueSet, const vtkm::worklet::contourtree_augmented::IdArrayType &globalRegularIdSet)
 
VTKM_CONT AttachmentAndSupernodeComparatorImpl< FieldType > PrepareForExecution (vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
 Create a AttachmentAndSupernodeComparatorImpl object for use in the sort or worklet. More...
 

Private Attributes

vtkm::worklet::contourtree_augmented::IdArrayType SuperparentSet
 the superparent Id More...
 
vtkm::cont::ArrayHandle< FieldType > DataValueSet
 the global rergular Id for tiebreak More...
 
vtkm::worklet::contourtree_augmented::IdArrayType GlobalRegularIdSet
 the supernode Id for tiebreak More...
 

Detailed Description

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

Execution object for Compartor 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

Constructor & Destructor Documentation

◆ AttachmentAndSupernodeComparator()

Member Function Documentation

◆ PrepareForExecution()

Create a AttachmentAndSupernodeComparatorImpl object for use in the sort or worklet.

Member Data Documentation

◆ DataValueSet

the global rergular Id for tiebreak

◆ GlobalRegularIdSet

the supernode Id for tiebreak

◆ SuperparentSet

the superparent Id


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