VTK-m
2.0
|
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 |
Implementation of the comparator used initial sort of data values in ContourTreeMesh<FieldType>::MergeWith.
using vtkm::worklet::contourtree_augmented::mesh_dem_contourtree_mesh_inc::CombinedSimulatedSimplicityIndexComparatorImpl< FieldType >::IdPortalType = typename vtkm::cont::ArrayHandle<vtkm::Id>::ReadPortalType |
using vtkm::worklet::contourtree_augmented::mesh_dem_contourtree_mesh_inc::CombinedSimulatedSimplicityIndexComparatorImpl< FieldType >::ValuePortalType = typename vtkm::cont::ArrayHandle<FieldType>::ReadPortalType |
|
inline |
|
inline |
|
inline |
|
inline |
//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()
|
private |
|
private |
|
private |
|
private |