Viskores  1.0
Fetch.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_exec_arg_Fetch_h
19 #define viskores_exec_arg_Fetch_h
20 
21 #include <viskores/Types.h>
22 
23 namespace viskores
24 {
25 namespace exec
26 {
27 namespace arg
28 {
29 
56 template <typename FetchTag, typename AspectTag, typename ExecObjectType>
57 struct Fetch
58 #ifdef VISKORES_DOXYGEN_ONLY
59 {
66  using ValueType = typename ExecObjectType::ValueType;
67 
76  template <typename ThreadIndicesType>
77  VISKORES_EXEC ValueType Load(const ThreadIndicesType& indices,
78  const ExecObjectType& execObject) const;
79 
89  template <typename ThreadIndicesType>
90  VISKORES_EXEC void Store(const ThreadIndicesType& indices,
91  const ExecObjectType& execObject,
92  const ValueType& value) const;
93 };
94 #else // VISKORES_DOXYGEN_ONLY
95  ;
96 #endif // VISKORES_DOXYGEN_ONLY
97 }
98 }
99 } // namespace viskores::exec::arg
100 
101 #endif //viskores_exec_arg_Fetch_h
Types.h
viskores::exec::arg::Fetch::ValueType
typename ExecObjectType::ValueType ValueType
The type of value to load and store.
Definition: Fetch.h:66
viskores::exec::arg::Fetch
Class for loading and storing values in thread instance.
Definition: Fetch.h:57
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::exec::arg::Fetch::Store
void Store(const ThreadIndicesType &indices, const ExecObjectType &execObject, const ValueType &value) const
Store data from a work instance.
viskores::exec::arg::Fetch::Load
ValueType Load(const ThreadIndicesType &indices, const ExecObjectType &execObject) const
Load data for a work instance.
VISKORES_EXEC
#define VISKORES_EXEC
Definition: ExportMacros.h:59