Go to the documentation of this file.
63 #ifndef vtk_m_worklet_contourtree_augmented_contourtree_mesh_inc_find_duplicate_in_other_worklet_h
64 #define vtk_m_worklet_contourtree_augmented_contourtree_mesh_inc_find_duplicate_in_other_worklet_h
74 namespace contourtree_augmented
76 namespace mesh_dem_contourtree_mesh_inc
84 template <
typename InputType,
85 typename InputArrayPortalType,
87 typename OutputArrayPortalType>
90 const InputArrayPortalType& otherArrayPortal,
91 OutputType& isDuplicate,
92 OutputArrayPortalType& otherDuplicatePortal)
const
95 if (posInOther < otherArrayPortal.GetNumberOfValues() &&
96 otherArrayPortal.Get(posInOther) == value)
99 otherDuplicatePortal.Set(posInOther, 1);
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
A control signature tag for output fields.
Definition: WorkletMapField.h:60
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
A control signature tag for input fields.
Definition: WorkletMapField.h:49
VTKM_EXEC void operator()(const InputType &value, const InputArrayPortalType &otherArrayPortal, OutputType &isDuplicate, OutputArrayPortalType &otherDuplicatePortal) const
Definition: FindDuplicateInOtherWorklet.h:89
Definition: FindDuplicateInOtherWorklet.h:79
VTKM_EXEC_CONT IterT LowerBound(IterT first, IterT last, const T &val, Comp comp)
Implementation of std::lower_bound that is appropriate for both control and execution environments.
Definition: LowerBound.h:30
void(FieldIn, WholeArrayIn, FieldOut, WholeArrayOut) ControlSignature
Definition: FindDuplicateInOtherWorklet.h:82
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38