Home
last modified time | relevance | path

Searched defs:TemplatedTests (Results 1 – 11 of 11) sorted by relevance

/dports/math/vtk8/VTK-8.2.0/ThirdParty/vtkm/vtk-m/vtkm/cont/internal/testing/
H A DUnitTestArrayManagerExecutionShareWithControl.cxx37 struct TemplatedTests struct
39 using ArrayManagerType =
41 using ValueType = typename ArrayManagerType::ValueType;
44 void SetStorage(StorageType& array, const ValueType& value) in SetStorage()
52 bool CheckPortal(const PortalType& portal, const ValueType& value) in CheckPortal()
64 bool CheckStorage(StorageType& array, const ValueType& value) in CheckStorage()
69 bool CheckManager(ArrayManagerType& manager, const ValueType& value) in CheckManager()
74 void InputData() in InputData()
94 void InPlaceData() in InPlaceData()
119 void OutputData() in OutputData()
[all …]
H A DUnitTestIteratorFromArrayPortal.cxx32 struct TemplatedTests struct
34 static constexpr vtkm::Id ARRAY_SIZE = 10;
36 using ValueType = T;
37 using ComponentType = typename vtkm::VecTraits<ValueType>::ComponentType;
39 ValueType ExpectedValue(vtkm::Id index, ComponentType value) in ExpectedValue()
45 void FillIterator(IteratorType begin, IteratorType end, ComponentType value) in FillIterator()
71 bool CheckPortal(const PortalType& portal, const ComponentType& value) in CheckPortal()
77 ComponentType ORIGINAL_VALUE() { return 39; } in ORIGINAL_VALUE()
80 void TestIteratorRead(ArrayPortalType portal) in TestIteratorRead()
111 void TestIteratorWrite(ArrayPortalType portal) in TestIteratorWrite()
[all …]
H A DUnitTestArrayPortalFromIterators.cxx30 struct TemplatedTests struct
32 static constexpr vtkm::Id ARRAY_SIZE = 10;
34 using ValueType = T;
35 using ComponentType = typename vtkm::VecTraits<ValueType>::ComponentType;
37 ValueType ExpectedValue(vtkm::Id index, ComponentType value) in ExpectedValue()
43 void FillIterator(IteratorType begin, IteratorType end, ComponentType value) in FillIterator()
54 bool CheckIterator(IteratorType begin, IteratorType end, ComponentType value) in CheckIterator()
69 bool CheckPortal(const PortalType& portal, ComponentType value) in CheckPortal()
75 void operator()() in operator ()()
/dports/math/vtk9/VTK-9.1.0/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/cont/internal/testing/
H A DUnitTestIteratorFromArrayPortal.cxx22 struct TemplatedTests struct
24 static constexpr vtkm::Id ARRAY_SIZE = 10;
26 using ValueType = T;
27 using ComponentType = typename vtkm::VecTraits<ValueType>::ComponentType;
29 ValueType ExpectedValue(vtkm::Id index, ComponentType value) in ExpectedValue()
35 void FillIterator(IteratorType begin, IteratorType end, ComponentType value) in FillIterator()
61 bool CheckPortal(const PortalType& portal, const ComponentType& value) in CheckPortal()
67 ComponentType ORIGINAL_VALUE() { return 39; } in ORIGINAL_VALUE()
70 void TestIteratorRead(ArrayPortalType portal) in TestIteratorRead()
101 void TestIteratorWrite(ArrayPortalType portal) in TestIteratorWrite()
[all …]
H A DUnitTestArrayPortalFromIterators.cxx20 struct TemplatedTests struct
22 static constexpr vtkm::Id ARRAY_SIZE = 10;
24 using ValueType = T;
25 using ComponentType = typename vtkm::VecTraits<ValueType>::ComponentType;
27 ValueType ExpectedValue(vtkm::Id index, ComponentType value) in ExpectedValue()
33 void FillIterator(IteratorType begin, IteratorType end, ComponentType value) in FillIterator()
44 bool CheckIterator(IteratorType begin, IteratorType end, ComponentType value) in CheckIterator()
59 bool CheckPortal(const PortalType& portal, ComponentType value) in CheckPortal()
65 void operator()() in operator ()()
/dports/math/vtk8/VTK-8.2.0/ThirdParty/vtkm/vtk-m/vtkm/cont/testing/
H A DUnitTestStorageBasic.cxx39 struct TemplatedTests struct
41 using StorageType = vtkm::cont::internal::Storage<T, vtkm::cont::StorageTagBasic>;
42 using ValueType = typename StorageType::ValueType;
43 using PortalType = typename StorageType::PortalType;
45 void SetStorage(StorageType& array, const ValueType& value) in SetStorage()
54 bool CheckStorage(StorageType& array, const ValueType& value) in CheckStorage()
72 ValueType* StealArray1() in StealArray1()
93 void StealArray2(ValueType* stolenArray) in StealArray2()
106 void BasicAllocation() in BasicAllocation()
142 void UserFreeFunction() in UserFreeFunction()
[all …]
H A DUnitTestArrayPortalToIterators.cxx31 struct TemplatedTests struct
33 static constexpr vtkm::Id ARRAY_SIZE = 10;
35 using ValueType = T;
36 using ComponentType = typename vtkm::VecTraits<ValueType>::ComponentType;
38 static ValueType ExpectedValue(vtkm::Id index, ComponentType value) in ExpectedValue()
43 class ReadOnlyArrayPortal
64 class WriteOnlyArrayPortal
90 void FillIterator(IteratorType begin, IteratorType end, ComponentType value) in FillIterator()
123 void TestIteratorRead() in TestIteratorRead()
141 void TestIteratorWrite() in TestIteratorWrite()
[all …]
H A DUnitTestStorageImplicit.cxx62 struct TemplatedTests struct
64 using StorageTagType = vtkm::cont::StorageTagImplicit<TestImplicitStorage<T>>;
65 using StorageType = vtkm::cont::internal::Storage<T, StorageTagType>;
67 using ValueType = typename StorageType::ValueType;
68 using PortalType = typename StorageType::PortalType;
69 using IteratorType = typename PortalType::IteratorType;
71 void BasicAllocation() in BasicAllocation()
110 void BasicAccess() in BasicAccess()
119 void operator()() in operator ()()
H A DUnitTestArrayHandleCounting.cxx89 struct TemplatedTests struct
91 using ArrayHandleType = vtkm::cont::ArrayHandleCounting<ValueType>;
93 using ArrayHandleType2 = vtkm::cont::ArrayHandle<
97 using PortalType = typename ArrayHandleType::PortalConstControl;
99 void operator()(const ValueType& startingValue, const ValueType& step) in operator ()()
/dports/math/vtk9/VTK-9.1.0/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/cont/testing/
H A DUnitTestArrayPortalToIterators.cxx24 struct TemplatedTests struct
26 static constexpr vtkm::Id ARRAY_SIZE = 10;
28 using ValueType = T;
29 using ComponentType = typename vtkm::VecTraits<ValueType>::ComponentType;
31 static ValueType ExpectedValue(vtkm::Id index, ComponentType value) in ExpectedValue()
36 class ReadOnlyArrayPortal
57 class WriteOnlyArrayPortal
116 void TestIteratorRead() in TestIteratorRead()
134 void TestIteratorWrite() in TestIteratorWrite()
152 void TestSimpleIterators() in TestSimpleIterators()
[all …]
H A DUnitTestArrayHandleCounting.cxx27 struct TemplatedTests struct
29 using ArrayHandleType = vtkm::cont::ArrayHandleCounting<ValueType>;
31 using ArrayHandleType2 = vtkm::cont::ArrayHandle<ValueType, vtkm::cont::StorageTagCounting>;
33 using PortalType =
37 void operator()(const ValueType& startingValue, const ValueType& step) in operator ()()