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

Implementation of the comparator used initial sort of data values in ContourTreeMesh<FieldType>::MergeWith. More...

#include <CombinedSimulatedSimplicityIndexComparator.h>

Public Types

using IdPortalType = typename vtkm::cont::ArrayHandle< vtkm::Id >::ReadPortalType
 
using ValuePortalType = typename vtkm::cont::ArrayHandle< FieldType >::ReadPortalType
 

Public Member Functions

VTKM_CONT CombinedSimulatedSimplicityIndexComparatorImpl (const IdArrayType &thisGlobalMeshIndex, const IdArrayType &otherGlobalMeshIndex, const vtkm::cont::ArrayHandle< FieldType > &thisSortedValues, const vtkm::cont::ArrayHandle< FieldType > &otherSortedValues, vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token)
 
VTKM_EXEC_CONT vtkm::Id GetGlobalMeshIndex (vtkm::Id idx) const
 
VTKM_EXEC_CONT FieldType GetSortedValue (vtkm::Id idx) const
 
VTKM_EXEC_CONT bool operator() (vtkm::Id i, vtkm::Id j) const
 

Private Attributes

IdPortalType ThisGlobalMeshIndex
 
IdPortalType OtherGlobalMeshIndex
 
ValuePortalType ThisSortedValues
 
ValuePortalType OtherSortedValues
 

Detailed Description

template<typename FieldType>
class vtkm::worklet::contourtree_augmented::mesh_dem_contourtree_mesh_inc::CombinedSimulatedSimplicityIndexComparatorImpl< FieldType >

Implementation of the comparator used initial sort of data values in ContourTreeMesh<FieldType>::MergeWith.

Member Typedef Documentation

◆ IdPortalType

◆ ValuePortalType

Constructor & Destructor Documentation

◆ CombinedSimulatedSimplicityIndexComparatorImpl()

template<typename FieldType >
VTKM_CONT vtkm::worklet::contourtree_augmented::mesh_dem_contourtree_mesh_inc::CombinedSimulatedSimplicityIndexComparatorImpl< FieldType >::CombinedSimulatedSimplicityIndexComparatorImpl ( const IdArrayType thisGlobalMeshIndex,
const IdArrayType otherGlobalMeshIndex,
const vtkm::cont::ArrayHandle< FieldType > &  thisSortedValues,
const vtkm::cont::ArrayHandle< FieldType > &  otherSortedValues,
vtkm::cont::DeviceAdapterId  device,
vtkm::cont::Token token 
)
inline

Member Function Documentation

◆ GetGlobalMeshIndex()

◆ GetSortedValue()

template<typename FieldType >
VTKM_EXEC_CONT FieldType vtkm::worklet::contourtree_augmented::mesh_dem_contourtree_mesh_inc::CombinedSimulatedSimplicityIndexComparatorImpl< FieldType >::GetSortedValue ( vtkm::Id  idx) const
inline

◆ operator()()

//Original code { // operator() get Values dataType val_i = Values[i]; dataType val_j = Values[j];

value comparison if (val_i < val_j) return true; if (val_j < val_i) return false;

get Indices indexType idx_i = Indices[i]; indexType idx_j = Indices[j]; index comparison for simulated simplicity if (idx_i < idx_j) return true; if (idx_j < idx_i) return false;

fallback - always false return false; } // operator()

Member Data Documentation

◆ OtherGlobalMeshIndex

◆ OtherSortedValues

◆ ThisGlobalMeshIndex

◆ ThisSortedValues


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