VTK-m  2.0
Fetch.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_exec_arg_Fetch_h
11 #define vtk_m_exec_arg_Fetch_h
12 
13 #include <vtkm/Types.h>
14 
15 namespace vtkm
16 {
17 namespace exec
18 {
19 namespace arg
20 {
21 
48 template <typename FetchTag, typename AspectTag, typename ExecObjectType>
49 struct Fetch
50 #ifdef VTKM_DOXYGEN_ONLY
51 {
58  using ValueType = typename ExecObjectType::ValueType;
59 
68  template <typename ThreadIndicesType>
69  VTKM_EXEC ValueType Load(const ThreadIndicesType& indices,
70  const ExecObjectType& execObject) const;
71 
81  template <typename ThreadIndicesType>
82  VTKM_EXEC void Store(const ThreadIndicesType& indices,
83  const ExecObjectType& execObject,
84  const ValueType& value) const;
85 };
86 #else // VTKM_DOXYGEN_ONLY
87  ;
88 #endif // VTKM_DOXYGEN_ONLY
89 }
90 }
91 } // namespace vtkm::exec::arg
92 
93 #endif //vtk_m_exec_arg_Fetch_h
VTKM_EXEC
#define VTKM_EXEC
Definition: ExportMacros.h:51
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
Types.h
vtkm::exec::arg::Fetch::Load
VTKM_EXEC ValueType Load(const ThreadIndicesType &indices, const ExecObjectType &execObject) const
Load data for a work instance.
vtkm::exec::arg::Fetch::ValueType
typename ExecObjectType::ValueType ValueType
The type of value to load and store.
Definition: Fetch.h:58
vtkm::exec::arg::Fetch
Class for loading and storing values in thread instance.
Definition: Fetch.h:49
vtkm::exec::arg::Fetch::Store
VTKM_EXEC void Store(const ThreadIndicesType &indices, const ExecObjectType &execObject, const ValueType &value) const
Store data from a work instance.